/**
 * Color Scheme Switcher Styles
 *
 * @package Smart_Directory_Pro
 */

/* Base styles for color scheme switcher */
#color-scheme-switcher {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 999;
}

.color-scheme-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    min-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.color-scheme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary));
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
}

.color-scheme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.color-scheme-toggle:active {
    transform: scale(0.98);
}

.color-option {
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-radius: 0.375rem;
}

.color-option:hover {
    background-color: #f5f5f5;
    transform: translateX(2px);
}

.color-option:active {
    transform: translateX(1px) scale(0.98);
}

.bg-muted {
    background-color: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Smooth color transitions for the entire site */
.color-scheme-transitioning * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

/* Save status indicator */
.save-status {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 60;
}

.save-status.show {
    opacity: 1;
    transform: translateY(0);
}

.save-status-success {
    background: rgba(34, 197, 94, 0.9) !important;
}

.save-status-error {
    background: rgba(239, 68, 68, 0.9) !important;
}

/* Enhanced animations */
.animate-fade-in {
    animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(10px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.animate-pulse-subtle {
    animation: pulseSubtle 3s infinite;
}

@keyframes pulseSubtle {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Improved color preview bars */
.color-option .flex.space-x-1 > div {
    transition: transform 0.2s ease;
}

.color-option:hover .flex.space-x-1 > div {
    transform: scaleY(1.1);
}

/* Enhanced focus states for accessibility */
.color-scheme-toggle:focus,
.color-option:focus,
#close-color-scheme:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Layout classes */
.fixed {
    position: fixed;
}

.bottom-6 {
    bottom: 1.5rem;
}

.right-6 {
    right: 1.5rem;
}

.z-50 {
    z-index: 50;
}

.hidden {
    display: none;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-4 {
    padding: 1rem;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.btn-ghost {
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.h-7 {
    height: 1.75rem;
}

.w-7 {
    width: 1.75rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.h-6 {
    height: 1.5rem;
}

.rounded-l-sm {
    border-top-left-radius: 0.125rem;
    border-bottom-left-radius: 0.125rem;
}

.rounded-r-sm {
    border-top-right-radius: 0.125rem;
    border-bottom-right-radius: 0.125rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-0 {
    padding: 0;
}

.close-icon, .paintbrush-icon {
    color: currentColor;
}

/* Mobile styles */
@media (max-width: 640px) {
    #color-scheme-switcher {
        bottom: 1rem !important;
        right: 1rem !important;
    }

    .color-scheme-card {
        position: fixed;
        bottom: 4.5rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
        margin-bottom: 0;
    }

    .save-status {
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
} 