/*
 * OPUS Design System — Base CSS
 * Premium SaaS-grade design with glassmorphism, smooth gradients, and modern aesthetics
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Brand Colors */
    --primary: #0F172A;
    --primary-light: #1E293B;
    --primary-lighter: #334155;
    --secondary: #1E293B;
    --accent: #00E676;
    --accent-hover: #00C853;
    --accent-glow: rgba(0, 230, 118, 0.3);

    /* Semantic Colors */
    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Backgrounds */
    --bg-body: #F8FAFC;
    --bg-sidebar: #0F172A;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-input: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    --text-sidebar: #CBD5E1;
    --text-sidebar-active: #FFFFFF;

    /* Borders */
    --border-color: #E2E8F0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 4px 14px rgba(0, 230, 118, 0.25);

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Dark Mode Tokens
   ============================================ */
[data-theme="dark"] {
    --bg-body: #0B0F1A;
    --bg-sidebar: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --bg-input: #1E293B;
    --bg-glass: rgba(30, 41, 59, 0.8);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Reset & Global Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

::selection {
    background: var(--accent);
    color: var(--primary);
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   Layout
   ============================================ */
.opus-layout {
    display: flex;
    min-height: 100vh;
}

.opus-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .opus-main {
    margin-left: var(--sidebar-collapsed);
}

.opus-content {
    padding: 24px 32px;
    flex: 1;
}

/* ============================================
   Sidebar
   ============================================ */
.opus-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0F172A 0%, #1a2744 100%);
    z-index: 1000;
    transition: width var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .opus-sidebar {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 64px;
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #00B8D4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
    white-space: nowrap;
}

.sidebar-collapsed .brand-text {
    display: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 16px 0;
    flex: 1;
}

.nav-section-title {
    padding: 12px 24px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.sidebar-collapsed .nav-section-title {
    text-align: center;
    padding: 12px 8px 8px;
    font-size: 9px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    color: var(--text-sidebar);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(0, 230, 118, 0.3);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(0, 230, 118, 0.08);
    border-left-color: var(--accent);
}

.nav-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-collapsed .nav-link {
    padding: 12px 0;
    justify-content: center;
}

.sidebar-collapsed .nav-link span {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #00B8D4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.sidebar-collapsed .sidebar-user-info {
    display: none;
}

/* ============================================
   Topbar
   ============================================ */
.opus-topbar {
    height: var(--topbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.topbar-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Bar */
.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 280px;
    padding: 8px 16px 8px 36px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    width: 320px;
}

.topbar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Topbar Icons */
.topbar-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topbar-icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.topbar-icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--warning);
}

/* ============================================
   Cards
   ============================================ */
.opus-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.opus-card:hover {
    box-shadow: var(--shadow-md);
}

.opus-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opus-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.opus-card-body {
    padding: 24px;
}

.opus-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-input);
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-glass);
}

/* ============================================
   Metric Cards
   ============================================ */
.metric-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.metric-card.accent::before { background: var(--accent); }
.metric-card.info::before { background: var(--info); }
.metric-card.warning::before { background: var(--warning); }
.metric-card.danger::before { background: var(--danger); }
.metric-card.success::before { background: var(--success); }

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.metric-icon.accent { background: rgba(0, 230, 118, 0.12); color: var(--accent); }
.metric-icon.info { background: var(--info-bg); color: var(--info); }
.metric-icon.warning { background: var(--warning-bg); color: var(--warning); }
.metric-icon.danger { background: var(--danger-bg); color: var(--danger); }
.metric-icon.success { background: var(--success-bg); color: var(--success); }

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.metric-change.positive { color: var(--success); }
.metric-change.negative { color: var(--danger); }

/* ============================================
   Buttons
   ============================================ */
.btn-opus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #00C853);
    color: var(--primary);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
    color: var(--primary);
}

.btn-primary-opus {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary-opus:hover {
    background: var(--primary-lighter);
    color: var(--text-white);
}

.btn-outline-opus {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline-opus:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger-opus {
    background: var(--danger);
    color: white;
}

.btn-danger-opus:hover {
    background: #DC2626;
    color: white;
}

.btn-sm-opus {
    padding: 6px 14px;
    font-size: 12px;
}

/* ============================================
   Tables
   ============================================ */
.opus-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.opus-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.opus-table thead {
    background: var(--bg-input);
}

.opus-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.opus-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.opus-table tbody tr {
    transition: background var(--transition-fast);
}

.opus-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.opus-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Status Badges
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active, .status-paid, .status-approved, .status-available {
    background: var(--success-bg);
    color: var(--success);
}
.status-active::before, .status-paid::before, .status-approved::before, .status-available::before {
    background: var(--success);
}

.status-pending, .status-pending_verification {
    background: var(--warning-bg);
    color: var(--warning);
}
.status-pending::before, .status-pending_verification::before {
    background: var(--warning);
}

.status-overdue, .status-suspended, .status-blacklisted, .status-rejected, .status-damaged {
    background: var(--danger-bg);
    color: var(--danger);
}
.status-overdue::before, .status-suspended::before, .status-blacklisted::before, .status-rejected::before, .status-damaged::before {
    background: var(--danger);
}

.status-completed, .status-returned, .status-resolved, .status-closed {
    background: var(--info-bg);
    color: var(--info);
}
.status-completed::before, .status-returned::before, .status-resolved::before, .status-closed::before {
    background: var(--info);
}

.status-assigned, .status-service, .status-in_progress, .status-open {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}
.status-assigned::before, .status-service::before, .status-in_progress::before, .status-open::before {
    background: #8B5CF6;
}

.status-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: #64748B;
}
.status-inactive::before {
    background: #64748B;
}

/* ============================================
   Forms
   ============================================ */
.opus-form .form-control,
.opus-form .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all var(--transition-fast);
}

.opus-form .form-control:focus,
.opus-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.opus-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.opus-form .form-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Pagination
   ============================================ */
.opus-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.opus-pagination .page-link {
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.opus-pagination .page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.opus-pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   Messages / Alerts
   ============================================ */
.opus-alert {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    animation: slideInDown 0.3s ease;
}

.opus-alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.opus-alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.opus-alert-danger, .opus-alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.opus-alert-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-in {
    animation: scaleIn 0.4s ease forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .opus-sidebar {
        transform: translateX(-100%);
    }

    .sidebar-open .opus-sidebar {
        transform: translateX(0);
    }

    .opus-main {
        margin-left: 0 !important;
    }

    .opus-content {
        padding: 16px;
    }

    .topbar-search input {
        width: 180px;
    }

    .topbar-search input:focus {
        width: 220px;
    }
}

@media (max-width: 576px) {
    .metric-value {
        font-size: 22px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-search {
        display: none;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-accent { color: var(--accent) !important; }
.text-muted-opus { color: var(--text-muted) !important; }
.bg-accent { background-color: var(--accent) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }

/* Loading Spinner */
.opus-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Receipt Styles */
.receipt-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: white;
    font-family: var(--font-family);
}

@media print {
    .opus-sidebar, .opus-topbar, .page-header .btn-opus {
        display: none !important;
    }
    .opus-main {
        margin-left: 0 !important;
    }
    .opus-content {
        padding: 0 !important;
    }
}

/* ============================================
   CSS Entrance Animations
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.metric-card {
    animation: fadeSlideUp 0.5s ease-out forwards;
}
.metric-card:nth-child(1) { animation-delay: 0.05s; }
.metric-card:nth-child(2) { animation-delay: 0.1s; }
.metric-card:nth-child(3) { animation-delay: 0.15s; }
.metric-card:nth-child(4) { animation-delay: 0.2s; }
.metric-card:nth-child(5) { animation-delay: 0.25s; }
.metric-card:nth-child(6) { animation-delay: 0.3s; }
.metric-card:nth-child(7) { animation-delay: 0.35s; }
.metric-card:nth-child(8) { animation-delay: 0.4s; }

.opus-card {
    animation: fadeSlideUp 0.4s ease-out forwards;
}
.opus-card:nth-child(1) { animation-delay: 0.1s; }
.opus-card:nth-child(2) { animation-delay: 0.18s; }
.opus-card:nth-child(3) { animation-delay: 0.26s; }
.opus-card:nth-child(4) { animation-delay: 0.34s; }

.opus-table tbody tr {
    animation: fadeSlideRight 0.3s ease-out forwards;
}
.opus-table tbody tr:nth-child(1)  { animation-delay: 0.05s; }
.opus-table tbody tr:nth-child(2)  { animation-delay: 0.08s; }
.opus-table tbody tr:nth-child(3)  { animation-delay: 0.11s; }
.opus-table tbody tr:nth-child(4)  { animation-delay: 0.14s; }
.opus-table tbody tr:nth-child(5)  { animation-delay: 0.17s; }
.opus-table tbody tr:nth-child(6)  { animation-delay: 0.20s; }
.opus-table tbody tr:nth-child(7)  { animation-delay: 0.23s; }
.opus-table tbody tr:nth-child(8)  { animation-delay: 0.26s; }
.opus-table tbody tr:nth-child(9)  { animation-delay: 0.29s; }
.opus-table tbody tr:nth-child(10) { animation-delay: 0.32s; }
.opus-table tbody tr:nth-child(n+11) { animation-delay: 0.35s; }
