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

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

html {
    scrollbar-gutter: stable;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9eff5 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    line-height: 1.6;
}

.prose {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInSafe {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideInSafe 0.5s ease-out forwards;
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite ease-in-out;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Refined Dashboard Styles */
.stats {
    background: transparent !important;
}

.stat {
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.05);
}

.tab-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 0.8rem !important;
    letter-spacing: 0.05em;
    border-radius: 14px !important;
    height: 2.8rem !important;
    padding: 0 1.5rem !important;
    color: #64748b;
    border: 1px solid transparent;
}

.tab-btn:hover:not(.tab-active) {
    background-color: rgba(255, 255, 255, 0.6);
    color: #1e293b;
    transform: translateY(-1px);
}

.tab-active {
    background-color: white !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05) !important;
    transform: scale(1.03);
}

.tabs-boxed {
    display: flex !important;
    gap: 6px !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    padding: 6px !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tab Content Entrance */
[role="tabpanel"]:not(.hidden) {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Badge Refinement */
.badge {
    border-width: 1.5px;
    padding: 0.75rem 1rem;
    height: auto;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
