:root {
    --bg-main: #070b17;
    --bg-panel: rgba(15, 19, 38, 0.88);
    --bg-panel-solid: #10162c;
    --bg-soft: #161d36;
    --bg-elevated: #1b2342;
    --text-main: #f4f7ff;
    --text-muted: #9aa6c6;
    --border-soft: rgba(255, 255, 255, 0.08);
    --primary: #4f7cff;
    --primary-strong: #6a5cff;
    --violet: #8b5cf6;
    --cyan: #3db8ff;
    --danger: #ff5d7d;
    --success: #24d38a;
    --warning: #ffb84d;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(79, 124, 255, 0.24), transparent 28%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 24%),
        linear-gradient(180deg, #050811 0%, #0a1020 100%);
    min-height: 100vh;
}

a {
    color: #92b2ff;
}

label,
.form-label,
.form-check-label {
    color: #e6edff;
}

.text-secondary,
.page-header p,
.section-title,
.detail-grid span,
.verification-meta span,
.form-text,
.brand-copy span {
    color: var(--text-muted) !important;
}

.landing-hero,
.auth-shell,
.verification-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.landing-hero::before,
.verification-shell::before,
.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(61, 184, 255, 0.12), transparent 20%),
        radial-gradient(circle at 80% 15%, rgba(139, 92, 246, 0.16), transparent 18%);
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: rgba(79, 124, 255, 0.16);
    color: #bed0ff;
    border: 1px solid rgba(146, 178, 255, 0.16);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    max-width: 12ch;
}

.hero-title-compact {
    max-width: 10ch;
}

.hero-panel,
.auth-card,
.verification-card,
.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-panel {
    padding: 1.5rem;
}

.hero-panel-dark {
    position: relative;
    overflow: hidden;
}

.hero-panel-dark::after {
    content: "";
    position: absolute;
    inset: auto -50px -60px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.25), transparent 65%);
}

.hero-panel-grid {
    display: grid;
    gap: 1rem;
}

.metric-card,
.stat-card {
    border-radius: 20px;
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.metric-card strong,
.stat-card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 2rem;
}

.metric-ink,
.amber {
    background: linear-gradient(135deg, #10162b, #1d2a4b);
}

.metric-violet,
.green {
    background: linear-gradient(135deg, #3a2b76, #6b47dc);
}

.metric-blue,
.blue {
    background: linear-gradient(135deg, #10345e, #2c74ff);
}

.red {
    background: linear-gradient(135deg, #5c1731, #d6477a);
}

.hero-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.home-support-copy {
    max-width: 56ch;
    font-size: 1.02rem;
}

.home-info-panel {
    padding: 1.75rem;
}

.home-panel-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0.35rem 0 1rem;
}

.home-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.home-contact-list li {
    color: #dde7ff;
    line-height: 1.6;
}

.home-contact-list strong {
    color: #ffffff;
}

.home-verification-note {
    margin-top: 1.35rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
}

.home-verification-note h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.feature-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dde7ff;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

.brand-identity,
.brand-block,
.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-logo-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.admin-panel-logo {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
}

.home-page-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 1.05rem;
    color: #fff;
}

.admin-profile h2,
.brand-block h1 {
    font-size: 1rem;
    margin: 0;
}

.admin-profile p {
    margin: 0;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 310px;
    padding: 1.5rem;
    background: rgba(9, 13, 28, 0.92);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    backdrop-filter: blur(22px);
}

.avatar-badge {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--violet));
}

.admin-profile {
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 1.25rem;
}

.dashboard-nav .nav-link {
    color: #c8d3f3;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    transition: all 0.2s ease;
}

.dashboard-nav .nav-link.active,
.dashboard-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.18), rgba(139, 92, 246, 0.18));
    color: #fff;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
}

.card-body {
    padding: 1.5rem;
}

.table {
    color: #e7edff;
}

.table > :not(caption) > * > * {
    background: transparent;
    color: inherit;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.table thead th {
    color: #aab7d8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-student-name,
.table-registration,
.table-date {
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 600;
}

.table-student-name {
    max-width: 150px;
}

.truncate-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.table-actions-cell {
    min-width: 260px;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.btn {
    border-radius: 16px;
    font-weight: 700;
    padding: 0.8rem 1.1rem;
}

.btn-xs {
    padding: 0.45rem 0.68rem;
    border-radius: 13px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
}

.table thead th {
    color: #aab7d8;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5b85ff, #765fff);
}

.btn-outline-primary,
.btn-ghost {
    border: 1px solid rgba(146, 178, 255, 0.2);
    color: #dce7ff;
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline-primary:hover,
.btn-ghost:hover {
    color: #fff;
    background: rgba(79, 124, 255, 0.16);
    border-color: rgba(146, 178, 255, 0.32);
}

.btn-outline-success {
    border-color: rgba(36, 211, 138, 0.34);
    color: #8cf2c8;
}

.btn-outline-dark,
.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    color: #d8e2ff;
}

.btn-outline-danger {
    border-color: rgba(255, 93, 125, 0.36);
    color: #ff9ab1;
}

.btn-disabled,
.btn:disabled {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #7582a4 !important;
    opacity: 1;
    cursor: not-allowed;
}

.status-badge {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-active {
    background: rgba(36, 211, 138, 0.14);
    color: #8cf2c8;
}

.status-inactive {
    background: rgba(255, 93, 125, 0.14);
    color: #ff9ab1;
}

.qr-thumb,
.qr-detail {
    border-radius: 18px;
    background: #fff;
    padding: 0.35rem;
}

.qr-thumb {
    width: 54px;
    height: 54px;
    cursor: pointer;
}

.qr-thumb-static {
    cursor: default;
}

.qr-detail {
    max-width: 220px;
}

.detail-grid,
.verification-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.detail-grid strong,
.verification-meta strong {
    display: block;
    font-size: 1rem;
    margin-top: 0.25rem;
    color: #fff;
}

.copy-url-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.copy-url-text {
    word-break: break-all;
}

.copy-url-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(79, 124, 255, 0.26);
    background: rgba(79, 124, 255, 0.12);
    color: #9fc1ff;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-url-btn:hover {
    background: rgba(79, 124, 255, 0.2);
    color: #ffffff;
}

.full-width {
    grid-column: 1 / -1;
}

.verification-card {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-shell {
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    max-width: 520px;
    width: 100%;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 16px;
    padding: 0.95rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 124, 255, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(79, 124, 255, 0.16);
    color: #fff;
}

.date-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.date-input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    min-width: 52px;
}

.form-control::file-selector-button {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.18), rgba(139, 92, 246, 0.16));
    color: #dfe8ff;
    border: none;
    padding: 0.85rem 1rem;
    margin-right: 1rem;
}

.form-control::placeholder {
    color: #9cabd4;
    opacity: 1;
}

.was-validated .form-control:invalid,
.was-validated .form-control:invalid:focus {
    border-color: rgba(255, 93, 125, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(255, 93, 125, 0.12);
}

.invalid-feedback {
    color: #ff9ab1;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.file-state-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
}

.file-state-copy {
    min-width: 0;
    flex: 1;
}

.file-state-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.file-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: #dce7ff;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.delete-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 93, 125, 0.24);
    background: rgba(255, 93, 125, 0.1);
    color: #ffacc0;
    border-radius: 999px;
    padding: 0.7rem 0.9rem;
    transition: all 0.2s ease;
    overflow: hidden;
    min-width: 56px;
    min-height: 56px;
}

.delete-pill:hover {
    background: rgba(255, 93, 125, 0.18);
    color: #fff;
}

.delete-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

.delete-pill-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.delete-pill:hover .delete-pill-text,
.delete-pill:focus .delete-pill-text {
    max-width: 80px;
    opacity: 1;
}

.toast-stack {
    z-index: 1060;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border-color: transparent;
}


@media (max-width: 992px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header,
    .detail-grid,
    .verification-meta,
    .file-state-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-header {
        justify-content: start;
    }

    .table-actions-cell {
        min-width: 220px;
    }

    .hero-title {
        max-width: none;
    }
}
