@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    html {
        scroll-behavior: smooth;
    }

    img {
        content-visibility: auto;
    }

    /* COMPLETAMENTE REMOVIDO - Esta era la causa principal del flickering
    [style*="backdrop-filter"],
    [class*="backdrop-"] {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    */
}

body,
.main-bg {
    background: linear-gradient(135deg, #0f1113 0%, #20222a 100%);
}

/* CORREGIDO: Optimizaciones añadidas */
.solid-box {
    background: #191b20;
    border-radius: 1.5rem;
    border: 1.5px solid #23242b;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
    transition: box-shadow 0.18s, border 0.18s, background 0.18s;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* CORREGIDO: Optimizaciones añadidas */
.stats-box {
    background: #181a1e;
    border-radius: 1.5rem;
    border: 1.5px solid #23242b;
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.11);
    transition: box-shadow 0.18s, border 0.18s, background 0.18s;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.anime-card {
    min-height: 420px;
    content-visibility: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes apple-pop {
    0% {
        transform: scale(1) translateZ(0);
        box-shadow: 0 0 0 rgba(0,0,0,0.05);
    }
    45% {
        transform: scale(1.12) translateZ(0);
        box-shadow: 0 8px 24px rgba(59,130,246,0.25);
    }
    100% {
        transform: scale(1) translateZ(0);
        box-shadow: 0 0 0 rgba(0,0,0,0.05);
    }
}

.animate-apple-pop {
    animation: apple-pop 0.35s cubic-bezier(.59,.24,.11,1.02);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.animate-apple-pop:not(:hover) {
    will-change: auto;
}

@font-face {
    font-family: 'Minecraftia';
    src: url('/fonts/Minecraftia.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'MinecraftRegular';
    src: url('/fonts/MinecraftRegular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'MinecraftBold';
    src: url('/fonts/MinecraftBold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'MinecraftItalic';
    src: url('/fonts/MinecraftItalic.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'MinecraftBoldItalic';
    src: url('../fonts/MinecraftBoldItalic.woff') format('woff');
    font-display: swap;
}

.font-minecraft {
    font-family: 'Minecraftia', 'monospace';
    letter-spacing: 0.03em;
}

.font-inter {
    font-family: 'Inter', 'sans-serif';
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(40px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes fadein-large {
    from {
        opacity: 0;
        transform: scale(0.95) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

.animate-fadein {
    animation: fadein 0.7s cubic-bezier(.61,.11,.91,.65) both;
    animation-fill-mode: forwards;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: opacity, transform;
}

.animate-fadein-large {
    animation: fadein-large 0.95s cubic-bezier(.61,.11,.91,.65) both;
    animation-fill-mode: forwards;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: opacity, transform;
}

.animate-fadein.animation-complete,
.animate-fadein-large.animation-complete {
    will-change: auto;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
    /* Prevenir flickering en backdrop-filter */
    -webkit-font-smoothing: subpixel-antialiased;
    perspective: 1000px;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) translateZ(0);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateZ(0);
    }
    100% {
        transform: translateX(100%) translateZ(0);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
    backface-visibility: hidden;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background 0.2s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 640px) {
    .glass-panel {
        border-radius: 1rem;
    }

    .glass-hero {
        margin-bottom: 1.5rem;
    }
}

@media (hover: hover) {
    .glass-panel:hover {
        transform: translateY(-1px) translateZ(0);
    }
}

@media (hover: none) {
    .glass-panel:active {
        transform: scale(0.98) translateZ(0);
    }
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

[class*="glass"],
[class*="backdrop"] {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    perspective: 1000px;
}

[class*="animate-"] {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   ESTILOS CALENDARIO DE ACTIVIDAD - APPLE STYLE
   ======================================== */

/* Grid del calendario */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.calendar-header {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.calendar-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15),
                0 0 0 1px rgba(59, 130, 246, 0.1);
}

.calendar-day.is-today {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                0 4px 12px rgba(59, 130, 246, 0.2);
    animation: today-pulse 2s ease-in-out infinite;
}

@keyframes today-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                    0 4px 12px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15),
                    0 6px 16px rgba(59, 130, 246, 0.3);
    }
}

.calendar-day.is-today .day-number {
    color: #60A5FA;
    font-weight: 800;
}

.calendar-day.has-incidents {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.calendar-day.has-incidents:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.6);
/* Modal - Apple Style */
                0 0 0 1px rgba(239, 68, 68, 0.2);
}

.calendar-day.has-incidents.is-today {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 2px solid rgba(147, 51, 234, 0.6);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
.day-number {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    animation: fadeIn 0.25s ease-out;
}

.incident-badge {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 1.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 540px;
    border-radius: 9999px;
    font-size: 0.625rem;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: badge-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
        transform: translateY(30px) scale(0.95);
.badge-count {
    font-weight: 800;
    font-size: 0.75rem;
        transform: translateY(0) scale(1);

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    background: rgba(239, 68, 68, 0.15);
    overflow-y: auto;
/* Formulario - Apple Style */
    transform: scale(1.05);
    margin-bottom: 1.5rem;

.close-button:active {
    transform: scale(0.95);
}
    margin-bottom: 0.625rem;
@keyframes fadeIn {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    overflow-y: auto;
        opacity: 0;
    }
    to {
        opacity: 1;
    margin-left: 0.375rem;
    font-weight: 700;
}

@keyframes slideUp {
    from {
    padding: 0.875rem 1.125rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
        opacity: 1;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.form-input:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
                0 2px 8px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    color: rgba(255, 255, 255, 0.95);
/* Botones - Apple Style */
    cursor: pointer;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    transition: all 0.2s;
    border: none;

.close-button:hover {
    font-size: 0.9375rem;
    margin-top: 2rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #ef4444;
}
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3),
                0 2px 4px rgba(59, 130, 246, 0.2);

.modal-body {
    padding: 1.5rem;
}
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
.form-group {
    margin-bottom: 1.25rem;
}
    opacity: 0.5;
.form-label {
    transform: none;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    content: '*';
    font-size: 0.9375rem;
    margin-left: 0.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

.form-input {
    width: 100%;
    letter-spacing: -0.01em;
    padding: 0.75rem 1rem;
/* Lista de incidencias - Apple Style */
    background: rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    font-size: 0.875rem;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}
    opacity: 0.5;
.form-input:focus {
    transform: none;
    outline: none;
    padding: 1.25rem 1.5rem;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    gap: 1.125rem;

.date-display {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.form-actions {
    font-size: 1.125rem;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Botones */
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-icon-danger:active:not(:disabled) {
    transform: scale(0.95);
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    opacity: 0.5;

    transform: none;
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    padding: 0 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
    padding-top: 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Lista de incidencias */
.incident-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.incident-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.incident-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.incident-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.incident-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon-danger {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.btn-icon-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.incident-body {
    padding: 1rem;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
}

/* Responsive - Apple Style */
@media (max-width: 640px) {
    .calendar-grid {
        gap: 0.125rem;
        padding: 0.25rem;
    }

    .calendar-day {
        min-height: 60px;
        padding: 0.5rem 0.25rem;
        border-radius: 0.75rem;
    }

    .day-number {
        font-size: 0.875rem;
    }

    .incident-badge {
        font-size: 0.5rem;
        padding: 0.125rem 0.375rem;
    }

    .badge-count {
        font-size: 0.625rem;
    }

    .modal-content {
        max-width: calc(100% - 2rem);
        margin: 1rem;
        border-radius: 1.5rem;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .incident-header {
        padding: 1rem;
    }

    .incident-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .glass-panel {
        padding: 1.5rem !important;
    }
}

@media (max-width: 380px) {
    .calendar-day {
        min-height: 50px;
        padding: 0.375rem 0.125rem;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .calendar-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.625rem;
    }
}

/* ========================================
   CUSTOM SELECT - APPLE STYLE
   ======================================== */

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.custom-select-trigger:focus,
.custom-select-trigger:active {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
                0 2px 8px rgba(59, 130, 246, 0.15);
}

.custom-select-value {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
}

.custom-select-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-arrow.rotate {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98) 0%, rgba(20, 20, 25, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 0.875rem;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-align: left;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #60A5FA;
    font-weight: 600;
}

.custom-select-option.selected:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

