:root {
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    --brand-primary: #4f46e5;
    --brand-dark: #312e81;
    --surface: #f5f6fa;
}

body {
    background: var(--surface);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-navbar {
    background: var(--brand-gradient);
    box-shadow: 0 4px 18px rgba(79, 70, 229, .35);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: #fde047;
    font-size: 1.05rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, .15);
}

.hero {
    background:
        radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .25) 0%, transparent 45%),
        radial-gradient(circle at -10% 120%, rgba(253, 224, 71, .28) 0%, transparent 40%),
        var(--brand-gradient);
}

.hero-kicker {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .4px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(4px);
    font-size: .85rem;
    font-weight: 500;
}

.search-input .input-group-text { border-right: 0; }
.search-input .form-control { border-left: 0; }
.search-input:focus-within { box-shadow: 0 0 0 .25rem rgba(79, 70, 229, .12); border-radius: .5rem; }

.meeting-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(49, 46, 129, .16) !important;
}

.badge-session {
    padding: .38rem .8rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.session-morning { background: #fef3c7; color: #b45309; }
.session-afternoon { background: #dbeafe; color: #1d4ed8; }
.session-evening { background: #ede9fe; color: #6d28d9; }

.date-chip {
    font-size: .78rem;
    color: var(--brand-dark);
    background: #eef2ff;
    padding: .3rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.btn-view {
    background: var(--brand-gradient);
    border: 0;
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 999px;
}

.btn-view:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(124, 58, 237, .4);
}

.topic-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6em;
}

.stat-card { transition: transform .15s ease; }
.stat-card:hover { transform: translateY(-3px); }

.stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.modern-table thead th {
    background: #f8f9ff;
    color: var(--brand-dark);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid #eceefe !important;
    padding: .9rem 1rem;
}

.modern-table tbody td {
    padding: .85rem 1rem;
    vertical-align: middle;
}

.modern-table tbody tr { transition: background .12s ease; }
.modern-table tbody tr:hover { background: #f6f7ff; }

.row-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .8rem;
}

.topic-cell { max-width: 340px; font-weight: 500; }

.action-group { box-shadow: 0 2px 8px rgba(0, 0, 0, .06); border-radius: 10px; overflow: hidden; }

.empty-state i { pointer-events: none; }

.pdf-frame {
    height: min(76vh, 720px);
    min-height: 380px;
    border: 0;
    display: block;
    background: #fff;
}

.modal-content.rounded-4 { border: 0; }

.form-control:focus, .form-select:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .15);
}

.text-danger.small, .invalid-feedback { display: block; }

.delete-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.6rem;
}

.login-card { max-width: 420px; margin-inline: auto; }

.login-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 1.5rem;
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.5rem; }
    .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .topic-cell { max-width: 180px; }
}

.step-num,
.venue-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}

.cmrp-block {
    background: #f8f9ff;
    border: 1px dashed #d9ddfb;
}

.cmrp-tag {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
}

.code-box {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: #eef2ff;
    border: 2px dashed #a5b4fc;
    max-width: 420px;
    flex-wrap: wrap;
}

.letter-spacing { letter-spacing: 3px; }

.code-pill {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--brand-dark);
    font-size: .82rem;
    font-weight: 600;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
}

.hero-edit {
    background:
        radial-gradient(circle at 90% -30%, rgba(255,255,255,.22) 0%, transparent 45%),
        linear-gradient(135deg, #0ea5e9, #6366f1);
}

.preview-table thead th {
    border-bottom: 1px solid #eceefe !important;
    color: var(--brand-dark);
}

/* Modern Footer Styles */
.app-footer {
    background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
    position: relative;
    border-top: 3px solid #4f46e5;
    border-image: linear-gradient(90deg, #4f46e5, #7c3aed, #0ea5e9) 1;
}

.tracking-wider {
    letter-spacing: 0.8px;
}

.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #f8fafc !important;
    transform: translateX(4px);
}

.status-indicator-badge {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.back-to-top-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.back-to-top-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
