/* Mcaster1DNAS - Modern Professional Streaming Server Interface */
/* Based on Mcaster1 Brand Guidelines */

/* CSS Variables - Mcaster1 Brand Colors */
:root {
    --mcaster-blue: #0ea5e9;
    --mcaster-cyan: #06b6d4;
    --dnas-green: #22c55e;
    --dnas-accent: #16a34a;
    --professional-blue: #3b82f6;
    --navy-blue: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-soft: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-large: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --gradient-brand: linear-gradient(135deg, var(--mcaster-blue), var(--dnas-green));
    --gradient-subtle: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Header / Navigation - Sticky HUD */
.mcaster-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 3px solid var(--mcaster-blue);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 0.4rem 0;
}

.mcaster-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mcaster-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    margin: 0;
}

.brand-mcaster {
    color: var(--mcaster-blue);
}

.brand-dnas {
    color: var(--dnas-green);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mcaster-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    align-items: center;
}

.mcaster-nav a {
    padding: 0.35rem 0.7rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.mcaster-nav a:hover,
.mcaster-nav a.active {
    background: var(--gradient-brand);
    color: white;
    border-color: var(--mcaster-blue);
    box-shadow: var(--shadow-medium);
}

/* Main Content */
.mcaster-main {
    padding: 2rem 0;
}

.mcaster-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mcaster-card h2 {
    color: var(--mcaster-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.mcaster-card h3 {
    color: var(--dnas-green);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th {
    background: var(--gradient-brand);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

tr:hover {
    background: var(--bg-light);
}

tr:last-child td {
    border-bottom: none;
}

/* Stats & Metrics */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-box {
    background: var(--gradient-subtle);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mcaster-blue);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Buttons & Controls */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--mcaster-blue);
}

/* Forms */
input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--mcaster-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Status Indicators */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #dcfce7;
    color: var(--dnas-accent);
}

.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-warning {
    background: #fef3c7;
    color: #f59e0b;
}

/* Footer */
/* Footer - Fixed Toolbar at Bottom */
.mcaster-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-top: 2px solid var(--mcaster-blue);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;       /* 14px — ADA minimum */
    min-height: 26px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;          /* Bold for visibility/ADA */
    font-size: 0.875rem;       /* 14px */
    color: var(--mcaster-blue);
    white-space: nowrap;
}

.footer-brand i {
    color: var(--dnas-green);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.875rem;       /* 14px */
    font-weight: 600;          /* Semi-bold for ADA readability */
}

.footer-online-dot {
    color: var(--dnas-green);
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

.footer-offline-dot {
    color: #94a3b8;
    font-size: 0.5rem;
}

.footer-offline-msg {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-left: 0.25rem;
    cursor: help;
    opacity: 0.85;
}

.footer-metrics {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.footer-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(8, 145, 178, 0.08);
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.footer-metric strong {
    color: var(--mcaster-blue);
    font-weight: 700;
}

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

.footer-metric-info {
    color: var(--text-secondary);
    font-size: 0.65rem;
    cursor: help;
    opacity: 0.6;
    margin-left: 0.1rem;
}

.footer-metric-info:hover {
    opacity: 1;
    color: var(--mcaster-blue);
}

.footer-metric-sep {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;       /* 14px */
    font-weight: 500;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--mcaster-blue);
    background: var(--bg-accent);
    font-weight: 700;
}

.mcaster-footer .page-load-time {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    font-size: 0.875rem;       /* 14px */
}

/* Stats Modal Button */
.footer-stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: var(--mcaster-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.footer-stats-btn:hover {
    background: var(--mcaster-teal);
    transform: translateY(-1px);
}

.footer-stats-btn .btn-count {
    background: rgba(255,255,255,0.25);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Stats Popup Modal */
.stats-modal-overlay {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 16px;
    z-index: 1100;
    animation: slideUp 0.2s ease-out;
}

.stats-modal-overlay.active { display: block; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stats-modal {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
}

.stats-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: 12px 12px 0 0;
}

.stats-modal-header h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.stats-modal-header h3 i { color: var(--mcaster-blue); }

.stats-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.stats-modal-close:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.stats-modal-body { padding: 0.75rem 1rem; }

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

.stats-modal-item {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    text-align: center;
}

.stats-modal-item .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mcaster-blue);
    line-height: 1;
}

.stats-modal-item .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.stats-modal-item.online .stat-value { color: var(--dnas-green); }
.stats-modal-item.highlight .stat-value { color: var(--accent-yellow); }

.stats-modal-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 0.6rem 0;
}

.stats-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.8rem;
}

.stats-modal-row .row-label { color: var(--text-secondary); }

.stats-modal-row .row-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Body padding to prevent content hiding behind fixed footer */
body {
    padding-bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .mcaster-nav {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .mcaster-nav a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

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

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .footer-toolbar {
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: center;
    }

    .footer-links {
        gap: 0.4rem;
    }

    .footer-status .page-load-time {
        display: none;
    }

    .stats-modal-overlay {
        right: 8px;
        left: 8px;
    }

    .stats-modal {
        width: auto;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.font-mono { font-family: var(--font-mono); }

/* ========================================
   HELP TOOLTIPS & ICONS
   ======================================== */

/* Help Icon */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.375rem;
    background: var(--mcaster-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: help;
    transition: all var(--transition-fast);
    vertical-align: middle;
}

.help-icon:hover {
    background: var(--dnas-green);
    transform: scale(1.1);
}

/* Tooltip Container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip Text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: #1f2937;
    color: #fff;
    text-align: left;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Tooltip Arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Show Tooltip on Hover */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Info Box - Alternative to Tooltip for Longer Help Text */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-left: 4px solid var(--mcaster-blue);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.info-box-title {
    font-weight: 600;
    color: var(--mcaster-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-content {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.warning-box-title {
    font-weight: 600;
    color: #d97706;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid var(--dnas-green);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.success-box-title {
    font-weight: 600;
    color: var(--dnas-accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   ENHANCED ADMIN NAVIGATION
   ======================================== */

.admin-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.admin-menu-section {
    margin-bottom: 1.5rem;
}

.admin-menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
}

.admin-menu-item:hover {
    background: var(--bg-light);
    color: var(--mcaster-blue);
    transform: translateX(4px);
}

.admin-menu-item.active {
    background: linear-gradient(135deg, var(--mcaster-blue), var(--dnas-green));
    color: white;
}

.admin-menu-item i {
    width: 20px;
    text-align: center;
}

/* ========================================
   STREAMING FORMAT BADGES
   ======================================== */

.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--bg-light);
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.format-badge.mp3 {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
}

.format-badge.aac {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #6366f1;
    color: #3730a3;
}

.format-badge.ogg {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    color: #1e40af;
}

.format-badge.opus {
    background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
    border-color: #a855f7;
    color: #6b21a8;
}

.format-badge.flac {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-color: #ec4899;
    color: #9f1239;
}

/* ========================================
   ENHANCED TABLE STYLES FOR ADMIN
   ======================================== */

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.table-hover tbody tr:hover {
    background: var(--bg-light);
    transform: scale(1.01);
    transition: all var(--transition-fast);
}

.table-striped tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

/* Client/Listener Badge */
.listener-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: var(--radius-md);
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   CREDITS & DOCUMENTATION STYLES
   ======================================== */

.credits-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.credits-section h3 {
    color: var(--mcaster-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.lineage-tree {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 2;
}

.project-info {
    background: var(--bg-light);
    border-left: 4px solid var(--mcaster-blue);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1rem 0;
}

.project-info h4 {
    color: var(--mcaster-blue);
    margin-bottom: 0.75rem;
}

.project-info ul {
    list-style: none;
    padding: 0;
}

.project-info li {
    padding: 0.375rem 0;
    color: var(--text-primary);
}

.project-info li strong {
    color: var(--text-secondary);
    min-width: 120px;
    display: inline-block;
}

/* ========================================
   QUICK STATS WIDGET
   ======================================== */

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

.quick-stat-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
}

.quick-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.quick-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.quick-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mcaster-card {
    animation: slideIn 0.4s ease-out;
}

/* Hover effects for interactive elements */
.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.admin-action-btn:hover {
    background: var(--gradient-brand);
    color: white;
    border-color: var(--mcaster-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.admin-action-btn.danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #dc2626;
}

/* ========================================
   LIVE CLOCK & PAGE LOAD TIME
   ======================================== */

/* Live Clock in Header — compact single-column box, pushed to far right */
.mcaster-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--text-primary);
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    min-width: 160px;
    flex-shrink: 0;
    margin-left: auto;   /* push clock to far right edge */
}

.mcaster-clock-time {
    font-size: 0.875rem;       /* shrunk from 1.25rem */
    font-weight: 700;
    color: var(--mcaster-blue);
    letter-spacing: 0.03em;
}

.mcaster-clock-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0;
}

.mcaster-clock-icon {
    color: var(--dnas-green);
    margin-right: 0.4rem;
    animation: pulse 2s infinite;
}

/* Header container: single row — brand+nav on left, clock auto-pushed to right */
.mcaster-header .mcaster-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* Groups brand logo + nav links together on the left */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

/* Legacy: kept for auth.xsl which still uses the old structure */
.mcaster-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Page Load Time in Footer */
.page-load-time {
    font-size: 0.875rem;       /* 14px */
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-light);
}

.page-load-time i {
    color: var(--dnas-green);
    margin-right: 0.25rem;
}

/* Responsive: stack header on narrow screens */
@media (max-width: 768px) {
    .mcaster-header .mcaster-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-left {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mcaster-clock {
        min-width: 140px;
    }

    .mcaster-clock-time {
        font-size: 0.8125rem;
    }

    .page-load-time {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.25rem;
        display: block;
    }
}
