/* css/styles.css */

/* Light theme (default) color variables */
:root {
    --color-base: #ffffff;
    --color-base-50: #f9fafb;
    --color-base-100: #f3f4f6;
    --color-base-200: #e5e7eb;
    --color-base-300: #d1d5db;
    --color-base-400: #9ca3af;
    --color-base-500: #6b7280;
    --color-base-600: #4b5563;  
    --color-base-700: #374151;
    --color-base-800: #1f2937;  
    --color-base-900: #111827;
    --color-base-content: #1f2937; /* Default text color for light theme */

    --color-primary: #5E7CA1;
    --color-primary-50: #f0f4f8;
    --color-primary-100: #e1e9f2;
    --color-primary-200: #c3d3e5;
    --color-primary-300: #a5bdd8;
    --color-primary-400: #87a7cb;
    --color-primary-500: #5E7CA1;
    --color-primary-600: #4a6382;
    --color-primary-700: #364a63;
    --color-primary-800: #233144;
    --color-primary-900: #1a2533;
    --color-primary-focus: #4a6382;
    --color-primary-content: #ffffff;

    --color-secondary: #8b5cf6;
    --color-secondary-50: #f5f3ff;
    --color-secondary-100: #ede9fe;
    --color-secondary-200: #ddd6fe;
    --color-secondary-300: #c4b5fd;
    --color-secondary-400: #a78bfa;
    --color-secondary-500: #8b5cf6;
    --color-secondary-600: #7c3aed;
    --color-secondary-700: #6d28d9;
    --color-secondary-800: #5b21b6;
    --color-secondary-900: #4c1d95;
    --color-secondary-focus: #7c3aed;
    --color-secondary-content: #ffffff;

    --color-accent: #f472b6;
    --color-accent-50: #fdf2f8;
    --color-accent-100: #fce7f3;
    --color-accent-200: #fbcfe8;
    --color-accent-300: #f9a8d4;
    --color-accent-400: #f472b6;
    --color-accent-500: #ec4899;
    --color-accent-600: #db2777;
    --color-accent-700: #be185d;
    --color-accent-800: #9d174d;
    --color-accent-900: #831843;
    --color-accent-focus: #db2777;
    --color-accent-content: #ffffff;

    --color-neutral: #6b7280;
    --color-neutral-50: #f9fafb;
    --color-neutral-100: #f3f4f6;
    --color-neutral-200: #e5e7eb;
    --color-neutral-300: #d1d5db;
    --color-neutral-400: #9ca3af;
    --color-neutral-500: #6b7280;
    --color-neutral-600: #4b5563;
    --color-neutral-700: #374151;
    --color-neutral-800: #1f2937;
    --color-neutral-900: #111827;
    --color-neutral-focus: #4b5563;
    --color-neutral-content: #ffffff;

    --color-info: #3b82f6; /* Reusing primary for info */
    --color-info-50: #eff6ff;
    --color-info-100: #dbeafe;
    --color-info-200: #bfdbfe;
    --color-info-300: #93c5fd;
    --color-info-400: #60a5fa;
    --color-info-500: #3b82f6;
    --color-info-600: #2563eb;
    --color-info-700: #1d4ed8;
    --color-info-800: #1e40af;
    --color-info-900: #1e3a8a;
    --color-info-focus: #2563eb;
    --color-info-content: #ffffff;

    --color-success: #10b981;
    --color-success-50: #ecfdf5;
    --color-success-100: #d1fae5;
    --color-success-200: #a7f3d0;
    --color-success-300: #6ee7b7;
    --color-success-400: #34d399;
    --color-success-500: #10b981;
    --color-success-600: #059669;
    --color-success-700: #047857;
    --color-success-800: #065f46;
    --color-success-900: #064e3b;
    --color-success-focus: #059669;
    --color-success-content: #ffffff;

    --color-warning: #f59e0b;
    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-200: #fde68a;
    --color-warning-300: #fcd34d;
    --color-warning-400: #fbbf24;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;
    --color-warning-800: #92400e;
    --color-warning-900: #78350f;
    --color-warning-focus: #d97706;
    --color-warning-content: #1f2937; /* Darker text on yellow for accessibility */

    --color-error: #ef4444;
    --color-error-50: #fef2f2;
    --color-error-100: #fee2e2;
    --color-error-200: #fecaca;
    --color-error-300: #fca5a5;
    --color-error-400: #f87171;
    --color-error-500: #ef4444;
    --color-error-600: #dc2626;
    --color-error-700: #b91c1c;
    --color-error-800: #991b1b;
    --color-error-900: #7f1d1d;
    --color-error-focus: #dc2626;
    --color-error-content: #ffffff;

    /* Custom brand color */
    --musicbox-red: #E60000;
}

/* Dark theme color variables */
.dark {
    --color-base: #1f2937; /* Dark background */
    --color-base-50: #111827;
    --color-base-100: #1f2937;
    --color-base-200: #374151;
    --color-base-300: #4b5563;
    --color-base-400: #6b7280;
    --color-base-500: #9ca3af;
    --color-base-600: #d1d5db;
    --color-base-700: #e5e7eb;
    --color-base-800: #f3f4f6;
    --color-base-900: #f9fafb;
    --color-base-content: #f3f4f6; /* Light text color for dark theme */

    /* Primary colors for dark mode */
    --color-primary: #87a7cb;
    --color-primary-50: #1a2533;
    --color-primary-100: #233144;
    --color-primary-200: #364a63;
    --color-primary-300: #4a6382;
    --color-primary-400: #5E7CA1;
    --color-primary-500: #87a7cb;
    --color-primary-600: #a5bdd8;
    --color-primary-700: #c3d3e5;
    --color-primary-800: #e1e9f2;
    --color-primary-900: #f0f4f8;
    --color-primary-focus: #5E7CA1;
    --color-primary-content: #1f2937; /* Dark text on light primary for dark mode */

    /* Secondary colors for dark mode */
    --color-secondary: #a78bfa;
    --color-secondary-50: #4c1d95;
    --color-secondary-100: #5b21b6;
    --color-secondary-200: #6d28d9;
    --color-secondary-300: #7c3aed;
    --color-secondary-400: #8b5cf6;
    --color-secondary-500: #a78bfa;
    --color-secondary-600: #c4b5fd;
    --color-secondary-700: #ddd6fe;
    --color-secondary-800: #ede9fe;
    --color-secondary-900: #f5f3ff;
    --color-secondary-focus: #8b5cf6;
    --color-secondary-content: #1f2937;

    /* Accent colors for dark mode */
    --color-accent: #f472b6; /* May need adjustment for contrast */
    --color-accent-50: #831843;
    --color-accent-100: #9d174d;
    --color-accent-200: #be185d;
    --color-accent-300: #db2777;
    --color-accent-400: #ec4899;
    --color-accent-500: #f472b6;
    --color-accent-600: #f9a8d4;
    --color-accent-700: #fbcfe8;
    --color-accent-800: #fce7f3;
    --color-accent-900: #fdf2f8;
    --color-accent-focus: #ec4899;
    --color-accent-content: #1f2937;

    /* Info colors for dark mode */
    --color-info: #60a5fa;
    --color-info-content: #1f2937;

    /* Success colors for dark mode */
    --color-success: #34d399;
    --color-success-content: #1f2937;

    /* Warning colors for dark mode */
    --color-warning: #fbbf24;
    --color-warning-content: #1f2937;

    /* Error colors for dark mode */
    --color-error: #f87171;
    --color-error-content: #1f2937;
}

/* Global styles */
body {
    font-family: 'Inter', sans-serif; /* Ensure Inter is the base font */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-base);
    color: var(--color-base-content);
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Styles for highlighted sections or edit buttons (if used by external tools) */
.highlighted-section {
    outline: 2px solid #3F20FB; /* Example highlight color */
    background-color: rgba(63, 32, 251, 0.1);
}

.edit-button {
    position: absolute;
    z-index: 1000; /* Ensure it's on top */
}

/* Preserve Font Awesome icon font family if other global styles interfere */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

/* Menu icon animation */
#menuToggle i {
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

#menuToggle i.fa-times {
    transform: rotate(180deg);
}
