@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.glass {
    background: #0f172a; /* Solid background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none; /* ESTRICTO: Sin sombras en ningún componente */
}

.glass-dark {
    background: #070a12;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

nav.glass {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0 !important;
}

.animate-in {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Time Picker Styles */
.time-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
    gap: 4px;
}

.time-column {
    display: flex;
    flex-direction: column;
    max-height: 180px;
    overflow-y: auto;
}

.time-option {
    padding: 8px 4px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.time-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.time-option.selected {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.time-column::-webkit-scrollbar { width: 4px; }
.time-column::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

/* Table Enhancements */
.table-right-actions {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.search-input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Sorting */
.sort-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.sort-header:hover {
    color: var(--primary);
}

.badge-validated {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Button & UI Enhancements */
.btn-primary {
    background: #4f46e5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(120deg);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.modal-glass {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.input-glass:focus {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* --- Global Elegant Scrollbars --- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 1px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.5);
    background-clip: content-box;
}

/* --- Mobile-First Layout Enhancements --- */
@media (max-width: 640px) {
    .glass {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
    }

    }
    
    .btn-primary {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Hide heavy analysis on tiny screens if requested */
    .mobile-hide {
        display: none !important;
    }

    /* Mobile Activity Card */
    .mobile-card {
        background: rgba(30, 41, 59, 0.4);
        border-radius: 1.25rem;
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Ensure horizontal scroll containers look good */
.overflow-x-auto {
    padding-bottom: 8px;
}
