/* ═══════════════════════════════════════════════════════════════
   Digital Document Verification System — Main Stylesheet
   Premium Government Portal Design
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
    --primary: #0f2557;
    --primary-light: #1a3a7a;
    --primary-lighter: #2851a3;
    --primary-rgb: 15, 37, 87;
    --accent: #c9a227;
    --accent-light: #e6bd3a;
    --accent-dark: #a88620;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Base Styles ─── */
* { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

/* ─── Navbar ─── */
.ddvs-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(var(--primary-rgb), 0.3);
    position: sticky;
    top: 0;
    z-index: 1050;
    backdrop-filter: blur(10px);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.brand-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: block;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.ddvs-navbar .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.ddvs-navbar .nav-link:hover,
.ddvs-navbar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

/* ─── Hero Section ─── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0a1a3f 60%, #061230 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201,162,39,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    pointer-events: none;
}

.hero-badge span {
    background: linear-gradient(135deg, rgba(201,162,39,0.2), rgba(201,162,39,0.08));
    border: 1px solid rgba(201,162,39,0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, #d4a826 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 28px;
    box-shadow: 0 4px 15px rgba(201,162,39,0.3);
    transition: var(--transition);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201,162,39,0.4);
}

.hero-actions .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 11px 28px;
}

.hero-stats {
    padding-top: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─── Floating Cards (Hero Illustration) ─── */
.hero-illustration {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.floating-card i { font-size: 1.3rem; }
.floating-card.card-1 { top: 20px; right: 20px; animation-delay: 0s; }
.floating-card.card-2 { top: 130px; left: 10px; animation-delay: 2s; }
.floating-card.card-3 { bottom: 100px; right: 40px; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.doc-preview-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.doc-header { height: 8px; width: 60%; background: rgba(201,162,39,0.4); border-radius: 4px; margin: 0 auto 15px; }
.doc-line { height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; margin-bottom: 8px; }
.doc-line.w-75 { width: 75%; }
.doc-line.w-100 { width: 100%; }
.doc-line.w-60 { width: 60%; }
.doc-line.w-85 { width: 85%; }
.doc-line.w-50 { width: 50%; }
.doc-qr { width: 30px; height: 30px; background: rgba(255,255,255,0.15); border-radius: 4px; margin-left: auto; margin-top: 10px; }

/* ─── Section Styles ─── */
.section-padding { padding: 4rem 0; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ─── Step Cards ─── */
.step-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.05);
    line-height: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.03));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.step-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ─── Template Cards ─── */
.template-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.template-card-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), rgba(var(--primary-rgb), 0.01));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.template-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #dc2626;
}

.template-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16,185,129,0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

.template-card-body {
    padding: 1.2rem 1.5rem;
    flex: 1;
}

.template-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.template-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.template-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.template-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.template-card-footer .btn {
    font-weight: 600;
    padding: 10px;
}

/* ─── Form Cards ─── */
.form-header-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.form-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.form-header-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.form-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(var(--primary-rgb), 0.02);
}

.form-card-header h5 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: var(--primary);
}

.form-card-body { padding: 1.5rem; }

/* ─── Form Inputs ─── */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

/* ─── OTP Boxes ─── */
.otp-boxes {
    max-width: 320px;
}

.otp-digit {
    width: 48px !important;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.otp-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.otp-sent-info {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(16,185,129,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.otp-verified-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-md);
    color: var(--success);
}

.otp-verified-badge i { font-size: 2rem; }

/* ─── Success Card ─── */
.success-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--success);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 0 15px rgba(16,185,129,0); }
}

.verification-id-display {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.02));
    border: 2px dashed rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: inline-block;
}

.verification-id-display small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.verification-id-display strong {
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: 2px;
}

/* ─── Verify Page ─── */
.verify-page-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.03));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.verify-result-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.verify-valid { border: 2px solid rgba(16,185,129,0.3); background: var(--bg-card); }
.verify-invalid { border: 2px solid rgba(239,68,68,0.3); background: var(--bg-card); }

.verify-result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem 1.5rem;
}

.verify-valid .verify-result-header { background: rgba(16,185,129,0.06); }
.verify-invalid .verify-result-header { background: rgba(239,68,68,0.06); }

.verify-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.verify-status-icon.valid { background: rgba(16,185,129,0.15); color: var(--success); }
.verify-status-icon.invalid { background: rgba(239,68,68,0.15); color: var(--danger); }

.verify-result-body { padding: 1.5rem; }

/* ─── Detail Items ─── */
.detail-item { margin-bottom: 0.5rem; }
.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
    display: block;
}
.detail-value {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* ─── Footer ─── */
.ddvs-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    font-weight: 600;
}

.btn { border-radius: var(--radius-sm); font-weight: 500; transition: var(--transition); }

/* ─── Breadcrumb ─── */
.breadcrumb { font-size: 0.88rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Admin Login ─── */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0a1a3f 100%);
}

.login-container { width: 100%; max-width: 420px; padding: 20px; }

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-light);
}

/* ─── Admin Sidebar ─── */
.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary) 0%, #0a1a3f 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

.sidebar-brand i { font-size: 1.3rem; color: var(--accent-light); }

.sidebar-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav { flex: 1; padding: 1rem 0; }

.nav-section { margin-bottom: 1rem; }

.nav-section-title {
    display: block;
    padding: 0.5rem 1.5rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--accent);
}

.sidebar-nav .nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar { font-size: 2rem; color: rgba(255,255,255,0.5); }
.admin-user-info strong { font-size: 0.85rem; display: block; }
.admin-user-info small { font-size: 0.72rem; }

/* ─── Admin Main Content ─── */
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title { font-weight: 700; font-size: 1.15rem; }

.admin-content { padding: 1.5rem; flex: 1; }

/* ─── Admin Cards ─── */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.admin-card-header h5, .admin-card-header h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
}

.admin-card-body { padding: 1.2rem; }

/* ─── Stat Cards ─── */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card-primary .stat-icon { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.stat-card-success .stat-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-card-info .stat-icon { background: rgba(59,130,246,0.1); color: var(--info); }
.stat-card-warning .stat-icon { background: rgba(245,158,11,0.1); color: var(--warning); }

.stat-info h3 { font-weight: 800; font-size: 1.6rem; margin: 0; line-height: 1.2; }
.stat-info span { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

/* ─── Tables ─── */
.table { font-size: 0.88rem; }
.table thead th {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom-width: 1px;
    padding: 0.8rem 1rem;
}

.table tbody td { padding: 0.7rem 1rem; vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(var(--primary-rgb), 0.02); }

/* ─── Activity List ─── */
.activity-list { max-height: 400px; overflow-y: auto; }

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* ─── Template Icon ─── */
.template-icon-sm {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ─── Toast Notifications ─── */
.toast { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: none; }
.toast-header { border-radius: var(--radius-md) var(--radius-md) 0 0; }

/* ─── Loading Spinner ─── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ─── Empty State ─── */
.empty-state { padding: 2rem; }

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main { margin-left: 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 3rem 0 4rem; min-height: auto; }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.5rem; }
    .section-padding { padding: 2.5rem 0; }
    .form-card-body { padding: 1rem; }
    .otp-digit { width: 40px !important; height: 44px; font-size: 1.1rem; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

.min-vh-75 { min-height: 75vh; }
