/* Admin Panel Styles */

:root {
    /* Primary Colors */
    --primary-color: #C9B7E2; /* Lavender Glow */
    --secondary-color: #E6DDF3; /* Soft Lilac */

    /* Secondary Colors */
    --moonlight-cream: #FFF6E8;
    --pastel-pink: #F4C6D7;

    /* Accent Colors */
    --accent-color: #F6D77A; /* Stardust Gold */
    --midnight-plum: #5B3B6E;

    /* Legacy support */
    --dark-bg: #5B3B6E; /* Using Midnight Plum for dark backgrounds */
    --light-text: #e0e0e0;
    --border-color: #C9B7E2; /* Using Lavender Glow for borders */
    --text-strong: #fff7fb;
    --text-muted: rgba(255, 246, 232, 0.82);
    --text-subtle: rgba(230, 221, 243, 0.72);
    --panel-bg: rgba(16, 12, 37, 0.78);
    --panel-bg-strong: rgba(12, 9, 29, 0.88);
    --panel-border: rgba(201, 183, 226, 0.38);
    --field-bg: rgba(20, 14, 45, 0.94);
    --field-border: rgba(201, 183, 226, 0.46);
    --field-focus: rgba(246, 215, 122, 0.22);
    --field-placeholder: rgba(230, 221, 243, 0.64);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/assets/images/New_Website_Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #000000;
    min-height: 100vh;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(10px);
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #9d4edd 0%, #f72585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--moonlight-cream);
}

.login-box p {
    margin-bottom: 2rem;
    opacity: 0.8;
    color: var(--text-muted);
}

.btn-twitch-login {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #9d4edd 0%, #f72585 100%);
    color: #000000;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-twitch-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(157, 78, 221, 0.4);
}

.login-info {
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--text-subtle);
}

/* Admin Container */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    background: rgba(10, 14, 39, 0.9);
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--moonlight-cream);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    background: linear-gradient(135deg, #9d4edd 0%, #f72585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.btn-logout {
    background: var(--secondary-color);
    color: #000000;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    opacity: 0.8;
}

/* Admin Main */
.admin-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

/* Statistics */
.stats-section h2,
.filter-section h2,
.manual-referrals-section h2,
.applications-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--moonlight-cream);
}

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

.stat-card {
    background: linear-gradient(180deg, rgba(27, 19, 58, 0.88) 0%, rgba(16, 12, 37, 0.78) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(12, 9, 29, 0.18);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(24, 19, 53, 0.8);
    border: 1px solid var(--panel-border);
    border-radius: 0.4rem;
    color: var(--text-strong);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #000000;
}

/* Manual Referral Credit */
.manual-referrals-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(27, 19, 58, 0.9) 0%, rgba(16, 12, 37, 0.82) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(12, 9, 29, 0.18);
}

.manual-referrals-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.manual-referrals-header p {
    color: var(--text-muted);
    max-width: 700px;
}

.manual-referral-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(246, 215, 122, 0.18);
    border: 1px solid rgba(246, 215, 122, 0.35);
    color: var(--moonlight-cream);
    font-size: 0.85rem;
    white-space: nowrap;
}

.manual-referrals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.manual-referral-card {
    padding: 1rem;
    background: rgba(12, 9, 29, 0.58);
    border: 1px solid rgba(201, 183, 226, 0.18);
    border-radius: 0.7rem;
}

.manual-referral-card.is-unassigned {
    border-color: rgba(246, 215, 122, 0.45);
    box-shadow: inset 0 0 0 1px rgba(246, 215, 122, 0.12);
}

.manual-referral-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.manual-referral-card-top h3 {
    color: var(--moonlight-cream);
    margin-bottom: 0.2rem;
}

.manual-referral-card-top p,
.manual-referral-meta {
    color: var(--text-subtle);
    font-size: 0.9rem;
}

.manual-referral-meta {
    margin-bottom: 0.85rem;
}

.manual-referral-current {
    min-height: 3.25rem;
    margin-bottom: 0.9rem;
    color: var(--text-strong);
}

.manual-referral-current code {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: rgba(10, 14, 39, 0.5);
    color: #fff6e8;
}

.manual-referral-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-subtle);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.manual-referral-tag {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.18);
    color: #9ec5fe;
    font-size: 0.75rem;
}

.manual-referral-empty {
    color: var(--text-subtle);
}

.manual-referral-form {
    display: grid;
    gap: 0.6rem;
}

.manual-referral-select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    color: var(--text-strong);
    font-size: 0.92rem;
}

.manual-referral-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--field-focus);
}

.manual-referral-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.manual-referral-clear {
    background: #6c757d;
}

/* Applications Table */
.applications-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel-bg-strong);
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.applications-table thead {
    background: rgba(157, 78, 221, 0.24);
    border-bottom: 2px solid var(--primary-color);
}

.applications-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--moonlight-cream);
}

.applications-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text-muted);
}

.applications-table tbody tr:hover {
    background: rgba(157, 78, 221, 0.12);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-reviewed {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-on_hold {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-trial {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.status-approved {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Status badges for assessment statuses */
.status-new { background: rgba(157, 78, 221, 0.2); color: #c77dff; }
.status-archived { background: rgba(158, 158, 158, 0.2); color: #bdbdbd; }


.btn-view {
    background: var(--primary-color);
    color: #000000;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    opacity: 0.8;
}

.no-applications {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Application Detail */
.btn-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--moonlight-cream);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    opacity: 0.8;
}

.application-detail {
    background: #8e6fa1;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.application-detail h2 {
    margin-bottom: 1.5rem;
}

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

.detail-item label,
.detail-full label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.detail-item p,
.detail-full p {
    opacity: 0.9;
    line-height: 1.6;
}

.detail-full {
    margin-bottom: 1.5rem;
}

.detail-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Status Update Form */
.status-update {
    background: linear-gradient(180deg, rgba(21, 15, 48, 0.82) 0%, rgba(12, 9, 29, 0.9) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    padding: 2rem;
    color: var(--text-strong);
    box-shadow: 0 18px 40px rgba(12, 9, 29, 0.22);
}

.status-update h2 {
    margin-bottom: 1.5rem;
    color: var(--moonlight-cream);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 0.4rem;
    color: var(--text-strong);
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    appearance: none;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-group select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--secondary-color) 50%),
        linear-gradient(135deg, var(--secondary-color) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.75rem;
}

.form-group textarea::placeholder {
    color: var(--field-placeholder);
}

/* Dark dropdown options for better contrast */
.form-group select option,
.form-group select optgroup {
    background-color: #120d2c;
    color: var(--text-strong);
}
.form-group select option[disabled] { color: var(--text-subtle); }
.form-group select option:checked {
    background-color: #5b3b6e;
    color: var(--moonlight-cream);
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(246, 215, 122, 0.7);
    box-shadow:
        0 0 0 3px var(--field-focus),
        0 0 18px rgba(201, 183, 226, 0.16);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small,
.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-subtle);
}

.form-help-warning {
    color: #ffe29d;
}

.form-help-private {
    color: #f0dcff;
}

.btn-submit {
    background: linear-gradient(135deg, #9d4edd 0%, #f72585 100%);
    color: var(--moonlight-cream);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(157, 78, 221, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-main {
        padding: 1rem;
    }

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

    .applications-table {
        font-size: 0.9rem;
    }

    .applications-table th,
    .applications-table td {
        padding: 0.75rem;
    }

    .manual-referrals-header,
    .manual-referral-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .manual-referral-actions {
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Fixes Section */
.fixes-section {
    margin: 2rem 0;
    background: rgba(157, 78, 221, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
}

.bot-overview-section {
    margin: 2rem 0;
}

.bot-status-card {
    background: linear-gradient(180deg, rgba(27, 19, 58, 0.88) 0%, rgba(16, 12, 37, 0.82) 100%);
    border-color: rgba(246, 215, 122, 0.32);
    box-shadow: 0 18px 38px rgba(12, 9, 29, 0.2);
}

.bot-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bot-status-header h2 {
    margin-bottom: 0.45rem;
    color: var(--moonlight-cream);
    font-size: 1.4rem;
}

.bot-status-header p {
    margin-bottom: 0;
    max-width: 720px;
}

.bot-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 183, 226, 0.34);
    background: rgba(91, 59, 110, 0.28);
    color: var(--moonlight-cream);
}

.bot-status-chip.is-online {
    background: rgba(76, 175, 80, 0.18);
    border-color: rgba(76, 175, 80, 0.45);
    color: #9be7a6;
}

.bot-status-chip.is-offline {
    background: rgba(244, 67, 54, 0.18);
    border-color: rgba(244, 67, 54, 0.42);
    color: #ff9b96;
}

.bot-status-chip.is-loading {
    background: rgba(157, 78, 221, 0.18);
    border-color: rgba(201, 183, 226, 0.42);
    color: var(--primary-color);
}

.bot-button-group {
    margin-bottom: 0;
}

.fixes-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.fixes-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    margin: 0;
}

.fixes-header:hover {
    opacity: 0.8;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.toggle-icon.open {
    transform: rotate(90deg);
}

.fixes-grid {
    padding: 2rem;
}

.fixes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-tools-section {
    margin-bottom: 2rem;
}

.dashboard-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-tools-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.fix-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.fix-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.fix-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.fix-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-fix {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000000;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fix.btn-edit,
.btn-fix.btn-check {
    color: var(--moonlight-cream);
}

.btn-fix.btn-danger {
    background: linear-gradient(135deg, #8a2036, #c63d5c);
    color: var(--moonlight-cream);
}

.btn-fix.btn-edit {
    background: linear-gradient(135deg, #7209b7, #9d4edd);
}

.btn-fix.btn-check {
    background: linear-gradient(135deg, #9d4edd, #f72585);
}

.btn-fix:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 78, 221, 0.4);
}

.btn-fix:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fix-result {
    margin-top: 1rem;
    min-height: 0;
}

.fix-result .success,
.fix-result .error,
.fix-result .loading {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.fix-result .success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #81c784;
}

.fix-result .error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #ef5350;
}

.fix-result .loading {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
}

.fix-result ul {
    list-style: none;
    margin-top: 0.5rem;
}

.bot-status-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bot-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    color: inherit;
}

.bot-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.bot-channel-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(12, 9, 29, 0.36);
    border: 1px solid rgba(201, 183, 226, 0.25);
    color: inherit;
    font-weight: 600;
}

.bot-status-note {
    margin: 0;
    color: inherit;
    opacity: 0.92;
}

.fix-result li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.fix-result li:before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.6;
}

@media (max-width: 720px) {
    .bot-status-header {
        flex-direction: column;
    }

    .bot-status-chip {
        min-width: 0;
    }

    .bot-button-group {
        flex-direction: column;
    }
}

/* Inline Copy Button */
.copy-btn-inline {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

.copy-btn-inline:hover {
    background: rgba(157, 78, 221, 0.15);
    transform: scale(1.1);
}

.copy-btn-inline:active {
    transform: scale(0.9);
}

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

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 0.25rem;
    color: #ff4444;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.live-badge:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: #ff4444;
    transform: scale(1.05);
    color: #ff6666;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Professional Header v2.0 - Shared Navigation Styles */
.admin-header-v2 {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.85) 0%, rgba(45, 0, 82, 0.75) 100%);
    border-bottom: 2px solid rgba(157, 78, 221, 0.5);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-header-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(157, 78, 221, 0.5) 50%, transparent 100%);
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
}

.header-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(157, 78, 221, 0.5);
}

.logo-text h1 {
    font-size: 1.3rem;
    margin: 0;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 183, 226, 0.08);
    white-space: nowrap;
}

.nav-item i {
    font-size: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(157, 78, 221, 0.25);
    color: var(--moonlight-cream);
    border-color: rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.nav-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.4) 0%, rgba(199, 125, 255, 0.3) 100%);
    color: var(--moonlight-cream);
    border: 1px solid rgba(199, 125, 255, 0.5);
    box-shadow: 0 4px 16px rgba(157, 78, 221, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #9d4edd 0%, #c77dff 100%);
    border-radius: 2px 2px 0 0;
}

.nav-item.active i {
    opacity: 1;
    color: var(--moonlight-cream);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    justify-content: flex-end;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000000;
    font-size: 1.1rem;
}

.user-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(157, 78, 221, 0.5);
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #c77dff;
}

.user-role {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.btn-logout-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: var(--moonlight-cream);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-logout-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .header-top {
        flex-wrap: wrap;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .header-user {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0 1rem;
        gap: 1rem;
    }

    .header-logo {
        min-width: auto;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .header-nav {
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0.5rem 0;
    }

    .header-nav::-webkit-scrollbar {
        height: 4px;
    }

    .header-nav::-webkit-scrollbar-track {
        background: rgba(157, 78, 221, 0.1);
    }

    .header-nav::-webkit-scrollbar-thumb {
        background: rgba(157, 78, 221, 0.4);
        border-radius: 2px;
    }

    .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .nav-item i {
        display: inline-block;
        font-size: 0.9rem;
    }

    .user-details {
        display: none;
    }
}
