/* Color Extractor Tool Styles */

.image-preview {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.color-swatch {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: translateY(-2px);
}

.color-preview {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.color-info {
    text-align: center;
}

.color-hex {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.color-rgb, .color-hsl {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;
}

.color-actions {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-mini {
    padding: 4px 8px;
    font-size: 0.8em;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.history-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-filename {
    font-weight: 500;
}

.history-date {
    color: #666;
    font-size: 0.9em;
}

.history-colors {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mini-swatch {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.more-colors {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .color-palette {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .color-swatch {
        padding: 10px;
    }
    
    .color-preview {
        height: 60px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .history-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .color-actions {
        flex-wrap: wrap;
    }
}
