:root {
    --livecast-panel: #f6f8fb;
}

.auth-bg {
    background: var(--livecast-panel);
}

.navbar-brand a {
    color: inherit;
    text-decoration: none;
}

.engine-preview {
    background: #111827;
    border-radius: 6px;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.engine-preview-video {
    background: #111827;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.engine-preview-empty {
    align-items: center;
    color: #9ca3af;
    display: flex;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
}

.endpoint-cell {
    max-width: 260px;
}

.target-url {
    max-width: 320px;
}

.media-preview {
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.media-preview video {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

#broadcast-calendar {
    min-height: 420px;
}

#broadcast-calendar .fc-toolbar-title {
    font-size: 1.1rem;
}

#broadcast-calendar .fc-button {
    border-radius: 6px;
}

.card {
    border-radius: 6px;
}

/* Premium Sidebar Dark Gradient & Borders */
.navbar-premium {
    background: linear-gradient(180deg, #090d16 0%, #111424 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.navbar-premium .navbar-brand {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-premium .navbar-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsing Live stream dot */
.pulse-live {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Navigation Lists & Items */
.navbar-premium .navbar-nav {
    padding-top: 1rem;
}

.navbar-premium .nav-item {
    margin: 4px 14px !important;
}

.navbar-premium .nav-link {
    color: #94a3b8 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-premium .nav-link:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px);
}

.navbar-premium .nav-item.active .nav-link {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.2);
    font-weight: 600;
}

.navbar-premium .nav-link-icon {
    margin-right: 12px;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.navbar-premium .nav-link-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.navbar-premium .nav-item.active .nav-link-icon {
    color: #a855f7;
}

.navbar-premium .nav-link:hover .nav-link-icon {
    color: #a855f7;
}

/* Bottom Sidebar profile footer styling */
.sidebar-footer-profile {
    background: rgba(6, 9, 16, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-footer-profile .avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer-profile .user-meta {
    max-width: 120px;
}

.sidebar-footer-profile .user-name {
    color: #f8fafc;
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sidebar-footer-profile .user-role {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.sidebar-footer-profile .btn-logout-sidebar {
    padding: 6px;
    color: #94a3b8;
    border: none;
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer-profile .btn-logout-sidebar:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-footer-profile .btn-logout-sidebar svg {
    width: 18px;
    height: 18px;
}

/* Premium Dashboard Metrics Accent Classes */
.card-metric-premium {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px !important;
}

.card-metric-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

.card-metric-premium .metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-metric-premium .metric-icon-box svg {
    width: 22px;
    height: 22px;
}

.bg-indigo-light {
    background-color: rgba(99, 102, 241, 0.08) !important;
    color: #6366f1 !important;
}

.bg-orange-light {
    background-color: rgba(249, 115, 22, 0.08) !important;
    color: #f97316 !important;
}

.bg-red-light {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

.bg-green-light {
    background-color: rgba(34, 197, 94, 0.08) !important;
    color: #22c55e !important;
}

