/* ARES Premium Design System - Consolidated */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Colors - Deep Space Theme */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(17, 24, 39, 0.8);

    /* Accents */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.5);
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6366f1;

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border_hover: rgba(255, 255, 255, 0.15);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;

    /* Utilities */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: scroll; /* Force scrollbar to prevent width-jump loops */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.3rem;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Common Layout Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-0 {
    margin-top: 0;
}

.mt-10 {
    margin-top: 10px;
}

.w-full {
    width: 100%;
}

/* Layout Components */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
}

.risk-glow-critical {
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.risk-glow-healthy {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 5px 0;
    color: #fff;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    padding: 24px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    max-width: 1600px;
}

/* Auth Pages */
.auth-container {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 20px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    grid-column: 1;
    grid-row: 1;
}

/* Common Components */
/* Consolidated Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    gap: 8px;
    letter-spacing: 0.01em;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px var(--primary-glow);
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, var(--primary) 100%);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn i {
    font-size: 1.1em;
}

.form-control,
select.form-control,
select {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    background: #000000;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

/* Select dropdown options - черный фон для опций */
select.form-control option,
select option {
    background: #000000;
    color: var(--text-primary);
    padding: 8px 16px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Navigation */
.nav-section {
    margin-bottom: 24px;
    padding: 0 16px;
}

.nav-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    cursor: pointer;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-icon {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.healthy,
.status-badge.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.critical,
.status-badge.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.status-badge.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.status-primary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

/* Reporting & Data Tables */
.report-section {
    margin-bottom: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Progress Bars */
.impact-bar-outer {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.impact-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 3px;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

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

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard Specific */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stats-card {
    padding: 24px;
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stats-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-icon-tv {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.stats-icon-content {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stats-icon-partner {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stats-icon-partner-status {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stats-icon-analytics {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stats-value-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.partner-status-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 5px;
}

.partner-status-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.partner-status-active {
    color: var(--success);
}

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

.partner-status-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.divider-vertical {
    width: 1px;
    height: 35px;
    background: var(--border-glass);
}

/* Modern System Status Design */
.status-section {
    padding: 10px 0 0 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.status-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: none !important;
    padding: 0 !important;
}

.status-item {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: default;
}

.status-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 18px;
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    filter: blur(4px);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}

.status-dot-success {
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.status-dot-info {
    background: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.status-dot-warning {
    background: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.status-dot-danger {
    background: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.status-content {
    flex: 1;
}

.status-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}

.status-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.status-value-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-left: auto;
}

/* Monitoring Dashboard Enhancements */
.monitor-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.monitor-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.monitor-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sparkline-container {
    width: 60px;
    height: 30px;
}

.heartbeat-ring {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--success-glow);
}

.heartbeat-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--success);
    opacity: 0;
    animation: heartbeat-pulse 2s infinite;
}

@keyframes heartbeat-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.align-end {
    align-items: flex-end;
}

.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.roi-score {
    font-size: 3rem;
    font-weight: 800;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #4ade80 0%, #2dd4bf 100%);
}

/* Indicators & Skeletons */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    animation: pulse-live 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 6px;
    display: inline-block;
}

.skeleton-text {
    height: 1em;
    width: 60%;
    margin-bottom: 0.5em;
}

.skeleton-h1 {
    height: 2rem;
    width: 100px;
}

@keyframes pulse-live {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.loading-pane {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

/* Switch Toggle Custom Component */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(14px);
}

/* Simulator & Overlays */
.simulator-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.simulator-overlay-header {
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.simulator-iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Library Specific Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.media-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.media-preview {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview i {
    font-size: 3rem;
    color: var(--text-muted);
}

.media-info {
    padding: 15px;
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.media-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Modal Header & Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.tabs-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

/* Scheduling & Timeline */
.timeline-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.time-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
    color: white;
}

.day-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 4px;
    color: var(--text-muted);
}

.day-pill.active {
    background: var(--primary);
    color: white;
}

.priority-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Branding & Customization */
.branding-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: 40px;
}

@media (max-width: 1200px) {
    .branding-grid {
        grid-template-columns: 1fr;
    }
}

.preview-pane {
    position: sticky;
    top: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    height: fit-content;
}

.preview-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-body {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    min-height: 400px;
}

.mock-sidebar {
    width: 200px;
    height: 350px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mock-logo {
    padding: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.mock-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mock-nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.color-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: none;
}

.color-picker-btn input {
    width: 150%;
    height: 150%;
    margin: -25%;
    cursor: pointer;
}

/* Audit & Logging */
.audit-item {
    transition: all 0.2s ease;
}

.audit-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.action-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-play {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-reset {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-update {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-delete {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Global Loading Bar - Modern 'Laser' Style */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 25%,
            var(--info) 50%,
            var(--primary) 75%,
            white 100%);
    background-size: 200% 100%;
    z-index: 10000;
    transition: width 0.4s cubic-bezier(0.1, 0.5, 0.5, 1), opacity 0.3s ease;
    box-shadow: 0 0 15px var(--primary-glow);
    opacity: 0;
    pointer-events: none;
    padding: 0 !important;
    margin: 0 !important;
    animation: flowBar 1.5s infinite linear;
}

/* Modern Flare effect at the tip */
#global-loader::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4));
    box-shadow: 0 0 10px white;
    filter: blur(2px);
}

#global-loader.loading {
    opacity: 1;
}

@keyframes flowBar {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Partner Status Card Styles */
.partner-status-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 5px;
}

.partner-status-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.partner-status-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.partner-status-active {
    color: var(--success);
    text-shadow: 0 0 15px var(--success-glow);
}

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

.divider-vertical {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}