/* ═══════════════════════════════════════════════════════════════
   DASHBOARD NEUMORPHISM STYLES
   Soft UI / Neumorphism Design System for Dashboard
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Neumorphism Color Palette */
    --bg-base: #e4e0db;
    --bg-card: #e4e0db;
    --shadow-dark: rgba(163, 157, 147, 0.5);
    --shadow-light: rgba(255, 255, 255, 0.8);

    /* Accent Colors */
    --accent-coral: #e27d60;
    --accent-coral-dark: #c96a50;
    --accent-teal: #41b3a3;
    --accent-teal-dark: #359688;
    --accent-gold: #e8a87c;
    --accent-purple: #c38d9e;

    /* Status Colors */
    --status-success: #6ab04c;
    --status-warning: #f0932b;
    --status-danger: #eb4d4b;
    --status-info: #22a6b3;

    /* Text Colors */
    --text-primary: #3d3d3d;
    --text-secondary: #6b6b6b;
    --text-muted: #8b8b8b;
    --text-light: #a0a0a0;

    /* Neumorphic Shadows */
    --neu-convex: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neu-convex-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --neu-pressed: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --neu-flat: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);

    /* Spacing & Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    /* Typography */
    --font-family: 'Nunito', 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */
body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout & Grid */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-convex);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.card-header {
    background: var(--bg-card);
    border-bottom: none;
    padding: 1.5rem 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--shadow-dark), transparent);
}

.card-header i {
    color: var(--accent-coral);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS (Neumorphic)
   ═══════════════════════════════════════════════════════════════ */
.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-convex);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-coral) 0%, var(--accent-gold) 100%);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-coral);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.stat-icon-bg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 3rem;
    opacity: 0.1;
    color: var(--accent-coral);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════════════════ */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent-coral);
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC TABLES
   ═══════════════════════════════════════════════════════════════ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: var(--bg-card);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    border: none;
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.875rem;
    background: var(--bg-card);
    border: none;
}

.table tbody tr {
    box-shadow: var(--neu-flat);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    box-shadow: var(--neu-pressed);
}

.table tbody tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.table tbody tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge {
    padding: 0.5em 1em;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--neu-convex-sm);
    border: none;
}

.text-uppercase {
    text-transform: uppercase;
}

.bg-primary {
    background: var(--bg-card);
    color: var(--accent-coral);
}

.bg-success {
    background: var(--bg-card);
    color: var(--status-success);
}

.bg-warning {
    background: var(--bg-card);
    color: var(--status-warning);
}

.bg-danger {
    background: var(--bg-card);
    color: var(--status-danger);
}

.bg-info {
    background: var(--bg-card);
    color: var(--status-info);
}

.bg-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--neu-convex-sm);
}

.btn:hover {
    box-shadow: var(--neu-convex);
}

.btn:active {
    box-shadow: var(--neu-pressed);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-coral-dark));
    color: white;
    box-shadow: var(--neu-convex-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-coral-dark), var(--accent-coral));
    box-shadow: var(--neu-convex);
    color: white;
}

.btn-outline-primary {
    background: var(--bg-card);
    border: 2px solid var(--accent-coral);
    color: var(--accent-coral);
}

.btn-outline-primary:hover {
    background: var(--accent-coral);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--status-danger), #c0392b);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.collapsible-header {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.collapsible-header:hover {
    box-shadow: var(--neu-pressed);
}

.collapsible-chevron {
    transition: transform 0.3s;
}

.collapsible-header.active .collapsible-chevron {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.active {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC FORM CONTROLS
   ═══════════════════════════════════════════════════════════════ */
.form-control,
.form-select {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    min-width: 140px;
    color: var(--text-primary);
    box-shadow: var(--neu-pressed);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: var(--neu-pressed), 0 0 0 3px rgba(226, 125, 96, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   GRID SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-md-6,
.col-lg-8,
.col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE - Message Queue Distribution
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .dashboard-container {
        padding: 1rem;
    }

    .card-header {
        padding: 1.25rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .card-header .btn {
        width: 100%;
        justify-content: center;
    }

    .card-body {
        padding: 1.25rem;
    }

    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-icon-bg {
        font-size: 2.5rem;
    }

    /* Message Distribution - Convert tables to cards on mobile */
    .msg-detail-table {
        display: none !important;
    }

    .msg-detail-cards {
        display: block !important;
    }

    .msg-card {
        background: var(--bg-card);
        border: none;
        border-radius: var(--radius-md);
        padding: 1.25rem;
        margin-bottom: 1rem;
        position: relative;
        box-shadow: var(--neu-convex-sm);
    }

    .msg-card:last-child {
        margin-bottom: 0;
    }

    .msg-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .msg-card-modules {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 0.9rem;
        word-break: break-word;
        flex: 1;
    }

    .msg-card-status {
        flex-shrink: 0;
    }

    .msg-card-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .msg-card-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

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

    .msg-card-label {
        font-size: 0.65rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
    }

    .msg-card-value {
        color: var(--text-primary);
        font-weight: 600;
    }

    .msg-card-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--shadow-dark);
        display: flex;
        justify-content: flex-end;
    }

    /* TTL progress on mobile */
    .msg-card .ttl-container {
        min-width: unset !important;
    }

    .msg-card .progress {
        height: 6px;
        margin-top: 0.25rem;
    }

    /* Date section header mobile */
    .list-group-item {
        padding: 1.25rem !important;
    }

    .list-group-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .list-group-item .d-flex.align-items-center.gap-2 {
        flex-wrap: wrap;
    }

    .list-group-item h6 {
        font-size: 0.9rem;
    }

    .list-group-item .badge {
        font-size: 0.65rem;
    }

    .list-group-item .btn {
        width: 100%;
        justify-content: center;
    }

    /* Pagination mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Hide table on mobile, show cards */
    .mobile-hide {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
    }

    /* Force hide desktop table on mobile */
    .registrations-table-container {
        display: none !important;
    }
}

/* Desktop: show table, hide cards */
@media (min-width: 768px) {
    #registrationsMobileView {
        display: none !important;
    }

    .msg-detail-cards {
        display: none !important;
    }

    .msg-detail-table {
        display: block !important;
    }

    .mobile-show {
        display: none !important;
    }

    .dist-card-view {
        display: none !important;
    }

    .dist-table-view {
        display: block !important;
    }
}

/* Mobile: Distribution cards */
@media (max-width: 767px) {
    .dist-table-view {
        display: none !important;
    }

    .dist-card-view {
        display: block !important;
    }

    .dist-card {
        background: var(--bg-card);
        border: none;
        border-radius: var(--radius-md);
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: var(--neu-convex-sm);
    }

    .dist-card:last-child {
        margin-bottom: 0;
    }

    .dist-card-header {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .dist-card-exam {
        font-size: 1rem;
        color: var(--text-primary);
        font-weight: 700;
    }

    .dist-card-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .dist-card-badges .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.65em;
    }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.ms-auto {
    margin-left: auto;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.mb-0 {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC PROGRESS BARS
   ═══════════════════════════════════════════════════════════════ */
.progress {
    display: flex;
    height: 8px;
    overflow: hidden;
    font-size: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    margin-top: 0.5rem;
    box-shadow: var(--neu-pressed);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold));
    transition: width 0.6s ease;
    border-radius: var(--radius-pill);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, var(--status-success), #7ed56f);
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, var(--status-warning), #f5c22b);
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, var(--status-danger), #ff7675);
}

.progress-bar.bg-info {
    background: linear-gradient(90deg, var(--status-info), #4dd3ff);
}

/* Text Colors */
.text-primary {
    color: var(--accent-coral) !important;
}

.text-success {
    color: var(--status-success) !important;
}

.text-warning {
    color: var(--status-warning) !important;
}

.text-danger {
    color: var(--status-danger) !important;
}

.text-info {
    color: var(--status-info) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--bg-card) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC DETAIL DRAWER
   ═══════════════════════════════════════════════════════════════ */
.detail-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.detail-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.detail-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 2rem;
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.drawer-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--shadow-dark), transparent);
}

.drawer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.drawer-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.drawer-close {
    background: var(--bg-card);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    box-shadow: var(--neu-convex-sm);
    transition: all 0.2s;
}

.drawer-close:hover {
    box-shadow: var(--neu-pressed);
    color: var(--accent-coral);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC INFO CARDS IN DRAWER
   ═══════════════════════════════════════════════════════════════ */
.info-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--neu-convex-sm);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-coral);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.info-card.success::before {
    background: var(--status-success);
}

.info-card.warning::before {
    background: var(--status-warning);
}

.info-card.danger::before {
    background: var(--status-danger);
}

.info-card.info::before {
    background: var(--status-info);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--shadow-dark);
}

.info-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--neu-convex-sm);
}

.info-card.success .info-card-icon {
    color: var(--status-success);
}

.info-card.warning .info-card-icon {
    color: var(--status-warning);
}

.info-card.danger .info-card-icon {
    color: var(--status-danger);
}

.info-card.info .info-card-icon {
    color: var(--status-info);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--shadow-dark);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
}

.info-value code {
    background: var(--bg-card);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--accent-coral);
    font-weight: 700;
    box-shadow: var(--neu-pressed);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-badge {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--accent-coral);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--neu-convex-sm);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.action-buttons .btn {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .grid-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .col-md-6 {
        width: 100%;
    }

    .d-flex {
        flex-wrap: wrap;
    }

    .detail-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .drawer-body {
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .list-group-item {
        padding: 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */
.registrations-table-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-convex-sm);
}

.table {
    margin-bottom: 0;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border: none;
    background: var(--bg-card);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    box-shadow: var(--neu-pressed);
}

.table-sm td,
.table-sm th {
    padding: 0.5rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Badge Improvements */
.badge {
    font-weight: 700;
    padding: 0.4em 0.8em;
}

.badge.rounded-pill {
    border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════════════════════════
   LIST GROUP (NEUMORPHIC)
   ═══════════════════════════════════════════════════════════════ */
.list-group-flush {
    border-radius: var(--radius-lg);
}

.list-group-flush .list-group-item {
    background: var(--bg-card);
    border: none;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--neu-convex-sm);
}

.list-group-flush .list-group-item:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   URL COPY CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.url-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-link {
    word-break: break-all;
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
}

.url-link:hover {
    text-decoration: underline;
    color: var(--accent-coral-dark);
}

.copy-btn {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-btn i {
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .url-container {
        gap: 0.75rem;
    }

    .url-container .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC MODALS
   ═══════════════════════════════════════════════════════════════ */
.modal-content {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 20px 20px 40px var(--shadow-dark), -20px -20px 40px var(--shadow-light);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--shadow-dark), transparent);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--shadow-dark), transparent);
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.modal-title i {
    color: var(--accent-coral);
}

/* ═══════════════════════════════════════════════════════════════
   COLLAPSE ANIMATION
   ═══════════════════════════════════════════════════════════════ */
.collapse {
    transition: height 0.35s ease;
}

.collapse.show {
    display: block;
}

/* Button Link */
.btn-link {
    color: var(--accent-coral);
    text-decoration: none;
    background: transparent;
    box-shadow: none;
}

.btn-link:hover {
    color: var(--accent-coral-dark);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   NEUMORPHIC PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    box-shadow: var(--neu-convex-sm);
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    box-shadow: var(--neu-pressed);
    color: var(--accent-coral);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-coral-dark));
    color: white;
    box-shadow: var(--neu-convex-sm);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb {
    background: var(--shadow-dark);
    border-radius: var(--radius-pill);
}

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