/* Palette Tools Styles */

.palette-container {
    max-width: 520px;
    margin: 32px auto 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.125);
    padding: 32px 28px 24px 28px;
}

.palette-form-group {
    margin-bottom: 18px;
}

.palette-label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.palette-color-input {
    width: 60px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.palette-color-input:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.palette-button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.palette-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.palette-btn-primary {
    background: #1976d2;
    color: #fff;
}

.palette-btn-primary:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.palette-btn-secondary {
    background: #e53935;
    color: #fff;
}

.palette-btn-secondary:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.palette-btn:active {
    transform: translateY(0);
}

.palette-result {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.palette-color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.palette-color-swatch:hover {
    transform: scale(1.1);
    border-color: #333;
    z-index: 10;
}

.palette-color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.palette-color-swatch:hover::after {
    opacity: 1;
}

/* Enhanced styling */
.tool-header h1 i {
    color: #1976d2 !important;
}

.palette-schemes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.palette-scheme {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.palette-scheme h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.palette-scheme-type {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .palette-container {
        margin: 16px;
        padding: 20px 16px;
    }
    
    .palette-color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .palette-result {
        gap: 6px;
    }
    
    .palette-schemes {
        grid-template-columns: 1fr;
    }
}
