/* ============================================================
   CryptoUnity Creator Portal - Custom Styles
   Brand: deep navy (#1a1a2e), gold accent (#f0a500), white content
   Built on Bootstrap 3.4.1
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --cu-navy: #1a1a2e;
    --cu-navy-light: #16213e;
    --cu-navy-dark: #0f0f1a;
    --cu-gold: #f0a500;
    --cu-gold-light: #f5c343;
    --cu-gold-dark: #cc8c00;
    --cu-white: #ffffff;
    --cu-gray-light: #f7f8fc;
    --cu-gray: #8a8a9a;
    --cu-text: #2d2d3a;
    --cu-border: #e8eaf0;
    --cu-radius: 10px;
    --cu-radius-sm: 6px;
    --cu-radius-lg: 14px;
    --cu-shadow: 0 1px 3px rgba(26, 26, 46, 0.04), 0 4px 12px rgba(26, 26, 46, 0.06);
    --cu-shadow-hover: 0 2px 8px rgba(26, 26, 46, 0.06), 0 8px 24px rgba(26, 26, 46, 0.1);
    --cu-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cu-sidebar-width: 250px;
}

/* ---- Global ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--cu-gray-light);
    color: var(--cu-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--cu-navy);
    transition: color var(--cu-transition);
}

a:hover, a:focus {
    color: var(--cu-gold);
    text-decoration: none;
}

/* Smooth transitions on interactive elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ---- Modern Form Inputs ---- */
.form-control {
    height: 42px;
    padding: 8px 14px;
    font-size: 14px;
    border: 1.5px solid var(--cu-border);
    border-radius: var(--cu-radius-sm);
    background: #fff;
    color: var(--cu-text);
    transition: border-color var(--cu-transition), box-shadow var(--cu-transition);
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--cu-gold);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.12);
    outline: none;
}

.form-control:hover:not(:focus):not(:disabled):not([readonly]) {
    border-color: #c5c8d4;
}

.form-control::placeholder,
.form-control::-webkit-input-placeholder {
    color: #b0b4c0;
}

textarea.form-control {
    height: auto;
    line-height: 1.6;
}

.input-lg, .form-control.input-lg {
    height: 50px;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: var(--cu-radius);
}

select.form-control {
    cursor: pointer;
}

label {
    font-weight: 600;
    font-size: 13px;
    color: #4a4a5a;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

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

.help-block {
    font-size: 12px;
    color: #9a9ab0;
    margin-top: 5px;
}

.input-group-addon {
    background: var(--cu-gray-light);
    border: 1.5px solid var(--cu-border);
    border-radius: var(--cu-radius-sm) 0 0 var(--cu-radius-sm);
    color: var(--cu-gray);
    transition: border-color var(--cu-transition);
}

.input-group .form-control:focus ~ .input-group-addon,
.input-group .form-control:focus + .input-group-addon {
    border-color: var(--cu-gold);
}

/* ---- Modern Buttons ---- */
.btn {
    border-radius: var(--cu-radius-sm);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    transition: all var(--cu-transition);
    border: 1.5px solid transparent;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: var(--cu-radius);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

.btn-default {
    background: #fff;
    border-color: var(--cu-border);
    color: var(--cu-text);
}

.btn-default:hover {
    background: var(--cu-gray-light);
    border-color: #d0d3de;
    color: var(--cu-navy);
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.btn-success:hover, .btn-success:focus {
    background: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.btn-warning:hover, .btn-warning:focus {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.btn-danger:hover, .btn-danger:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.btn-info {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.btn-info:hover, .btn-info:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ---- Modern Labels / Badges ---- */
.label {
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.label-default { background-color: #e8eaf0; color: #6b7280; }
.label-success { background-color: #d1fae5; color: #065f46; }
.label-info { background-color: #dbeafe; color: #1e40af; }
.label-warning { background-color: #fef3c7; color: #92400e; }
.label-danger { background-color: #fee2e2; color: #991b1b; }
.label-primary { background-color: #e0e7ff; color: #3730a3; }
.label-purple { background-color: #ede9fe; color: #5b21b6; }

/* ---- Auth Layout ---- */
.auth-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: var(--cu-radius-lg);
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo .brand-text {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.auth-logo .brand-sub {
    display: block;
    font-size: 13px;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.auth-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a1a2e;
}

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

.btn-auth {
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* ---- Sidebar ---- */
.creator-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: #1a1a2e;
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    text-decoration: none;
    color: #fff;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
    color: #fff;
    text-decoration: none;
}

.sidebar-brand .brand-text {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.sidebar-brand .brand-sub {
    display: block;
    font-size: 11px;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.sidebar-creator {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 3px solid #f0a500;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #16213e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #f0a500;
}

.creator-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.creator-tier {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f0a500, #f5c343);
    color: #1a1a2e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li a i {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: rgba(240, 165, 0, 0.5);
}

.sidebar-nav li.active a {
    background: rgba(240, 165, 0, 0.1);
    color: #f0a500;
    border-left-color: #f0a500;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
}

.sidebar-logout i {
    font-size: 18px;
    margin-right: 10px;
}

.sidebar-logout:hover {
    color: #e74c3c;
}

/* ---- Main Content Area ---- */
.creator-main {
    margin-left: 250px;
    min-height: 100vh;
    background: #f5f6fa;
}

/* ---- Top Bar ---- */
.creator-topbar {
    background: #fff;
    padding: 16px 30px;
    border-bottom: 1px solid var(--cu-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a2e;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-user {
    font-size: 14px;
    color: #8a8a9a;
}

/* ---- Page Content ---- */
.creator-content {
    padding: 28px 30px;
}

/* ---- Footer ---- */
.creator-footer {
    padding: 15px 25px;
    text-align: center;
    color: #8a8a9a;
    font-size: 12px;
    border-top: 1px solid #e8e8ef;
}

/* ---- Stat Cards ---- */
.stat-card {
    background: #fff;
    border-radius: var(--cu-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--cu-shadow);
    border-left: 3px solid #ddd;
    transition: transform var(--cu-transition), box-shadow var(--cu-transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cu-shadow-hover);
}

.stat-card.stat-referrals { border-left-color: #3498db; }
.stat-card.stat-active { border-left-color: #2ecc71; }
.stat-card.stat-earnings { border-left-color: #f0a500; }
.stat-card.stat-content { border-left-color: #9b59b6; }

.stat-icon {
    font-size: 36px;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.stat-referrals .stat-icon { color: #3498db; }
.stat-active .stat-icon { color: #2ecc71; }
.stat-earnings .stat-icon { color: #f0a500; }
.stat-content .stat-icon { color: #9b59b6; }

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #8a8a9a;
}

/* ---- Panels (Modern Cards) ---- */
.panel {
    border-radius: var(--cu-radius);
    border: 1px solid var(--cu-border);
    box-shadow: var(--cu-shadow);
    background: #fff;
    transition: box-shadow var(--cu-transition);
}

.panel-heading {
    border-radius: var(--cu-radius) var(--cu-radius) 0 0;
    border-bottom: 1px solid var(--cu-border);
    padding: 16px 20px;
}

.panel-default > .panel-heading {
    background: #fff;
    color: var(--cu-navy);
}

.panel-body {
    padding: 20px;
}

.panel-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--cu-navy);
}

.panel-footer {
    background: var(--cu-gray-light);
    border-top: 1px solid var(--cu-border);
    border-radius: 0 0 var(--cu-radius) var(--cu-radius);
    padding: 12px 20px;
}

/* ---- Tables (Refined) ---- */
.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    border-bottom: 1px solid var(--cu-border);
    color: var(--cu-gray);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 12px;
    white-space: nowrap;
}

.table > tbody > tr > td {
    vertical-align: middle;
    padding: 12px;
    border-top: 1px solid #f2f3f7;
    font-size: 13px;
}

.table > tbody > tr:hover > td {
    background: #fafafd;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: transparent;
}

.table-striped > tbody > tr:nth-of-type(odd):hover {
    background-color: #fafafd;
}

/* ---- Breadcrumbs ---- */
.breadcrumb {
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}

.breadcrumb > li + li:before {
    color: #c5c8d4;
}

/* ---- Alerts (Refined) ---- */
.alert {
    border-radius: var(--cu-radius-sm);
    border: none;
    font-size: 13px;
    padding: 12px 16px;
}

.alert-success { background: #d1fae5; color: #065f46; border-left: 3px solid #10b981; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }

/* ---- Progress Bars ---- */
.progress {
    border-radius: 20px;
    background: #e8eaf0;
    box-shadow: none;
    overflow: hidden;
}

.progress-bar {
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* ---- Modals (Refined) ---- */
.modal-content {
    border-radius: var(--cu-radius-lg);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--cu-border);
    padding: 16px 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--cu-border);
    padding: 12px 20px;
}

/* ---- Pagination ---- */
.pagination > li > a,
.pagination > li > span {
    color: var(--cu-navy);
    border-radius: var(--cu-radius-sm);
    margin: 0 2px;
    border: 1px solid var(--cu-border);
    padding: 6px 12px;
    font-size: 13px;
    transition: all var(--cu-transition);
}

.pagination > li > a:hover {
    background: var(--cu-navy);
    border-color: var(--cu-navy);
    color: #fff;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
    background: var(--cu-navy);
    border-color: var(--cu-navy);
    color: #fff;
}

/* ---- Nav Pills (Content Type Tabs) ---- */
.nav-pills > li > a {
    border-radius: 20px;
    color: var(--cu-gray);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    transition: all var(--cu-transition);
}

.nav-pills > li > a:hover {
    background: #e8eaf0;
    color: var(--cu-navy);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background: var(--cu-navy);
    color: #fff;
}

/* ---- List Groups (Chapter Items) ---- */
.list-group {
    border-radius: var(--cu-radius);
}

.list-group-item {
    border-color: #f2f3f7;
    padding: 14px 16px;
    transition: background var(--cu-transition);
}

.list-group-item:first-child {
    border-top-left-radius: var(--cu-radius);
    border-top-right-radius: var(--cu-radius);
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--cu-radius);
    border-bottom-right-radius: var(--cu-radius);
}

.list-group-item:hover {
    background: #fafafd;
}

/* ---- Block Editor Toolbar ---- */
.btn-toolbar .btn {
    margin-right: 6px;
    margin-bottom: 6px;
}

.btn-toolbar .btn-default {
    background: #fff;
    border: 1.5px dashed #d0d3de;
    color: var(--cu-gray);
}

.btn-toolbar .btn-default:hover {
    border-color: var(--cu-gold);
    color: var(--cu-gold);
    background: #fffcf0;
}

.btn-toolbar .btn-default i {
    margin-right: 4px;
}

/* ---- Dropdowns ---- */
.dropdown-menu {
    border-radius: var(--cu-radius);
    border: 1px solid var(--cu-border);
    box-shadow: var(--cu-shadow-hover);
    padding: 6px 0;
}

.dropdown-menu > li > a {
    padding: 8px 16px;
    font-size: 13px;
    transition: background var(--cu-transition);
}

.dropdown-menu > li > a:hover {
    background: var(--cu-gray-light);
    color: var(--cu-navy);
}

/* ---- Preview Content ---- */
.preview-content {
    line-height: 1.8;
    font-size: 15px;
}

.preview-content h2,
.preview-content h3,
.preview-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.preview-content p {
    margin-bottom: 12px;
}

.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.preview-meta {
    font-size: 13px;
    color: #8a8a9a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8ef;
}

.preview-meta span {
    margin-right: 15px;
}

/* ---- Video Player Placeholder ---- */
.video-placeholder {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.video-placeholder i {
    font-size: 48px;
    color: #f0a500;
    display: block;
    margin-bottom: 10px;
}

.video-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ---- Upload Progress ---- */
.upload-progress {
    display: none;
    margin-top: 10px;
}

.upload-progress .progress {
    height: 24px;
    border-radius: 12px;
    margin-bottom: 5px;
}

.upload-progress .progress-bar {
    line-height: 24px;
    font-weight: 600;
}

.upload-progress .upload-status {
    font-size: 12px;
    color: #8a8a9a;
}

/* ---- Review Notes Alert ---- */
.review-notes {
    background-color: #fdf2e9;
    border-color: #f0a500;
    border-left: 4px solid #f0a500;
    color: #2d2d3a;
}

.review-notes strong {
    color: #cc8c00;
}

/* ---- Content Type Tabs ---- */
.content-type-tabs > li > a {
    border-radius: 20px;
}

/* ---- Tier Badge ---- */
.tier-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0a500, #f5c343);
    color: #1a1a2e;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Tier Progress Bar ---- */
.tier-progress-bar {
    height: 24px;
    border-radius: 12px;
    background-color: #e8e8ef;
}

.tier-progress-bar .progress-bar {
    line-height: 24px;
    border-radius: 12px;
    font-weight: 600;
}

/* ---- Buttons (primary = navy+gold) ---- */
.btn-primary {
    background-color: var(--cu-navy);
    border-color: var(--cu-navy);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--cu-gold);
    border-color: var(--cu-gold);
    color: var(--cu-navy);
    box-shadow: 0 4px 12px rgba(240, 165, 0, 0.3);
}

/* ---- Flash Messages ---- */
.flash-container {
    padding-top: 0;
}

.flash-message {
    border-radius: var(--cu-radius-sm);
    margin: 15px 25px 0 25px;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Notification Preview ---- */
.notification-preview {
    padding: 10px;
}

.notif-preview-card {
    background: #f5f6fa;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.notif-preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    color: #8a8a9a;
}

.notif-preview-app {
    font-weight: 600;
}

.notif-preview-body {
    display: flex;
    gap: 10px;
}

.notif-preview-text {
    flex: 1;
}

.notif-preview-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.notif-preview-text p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.notif-preview-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.notif-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Profile Avatar ---- */
.avatar-placeholder-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ccc;
    margin: 0 auto;
    border: 3px solid #e8e8ef;
}

/* ---- Dropzone ---- */
.dropzone-area {
    border: 2px dashed #d0d3de;
    border-radius: var(--cu-radius);
    padding: 30px 20px;
    text-align: center;
    background: var(--cu-gray-light);
    transition: all var(--cu-transition);
}

.dropzone-area:hover {
    border-color: var(--cu-gold);
    background: #fffcf0;
}

/* ---- Sidebar Overlay (mobile) ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ---- Editor Sidebar Layout ---- */
.editor-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.editor-main {
    flex: 1;
    min-width: 0;
}

.editor-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.editor-sidebar .panel {
    margin-bottom: 15px;
}

.editor-sidebar .panel-heading {
    padding: 10px 15px;
}

.editor-sidebar .panel-body {
    padding: 12px 15px;
}

.editor-sidebar .panel-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cu-gray);
    font-weight: 700;
}

.editor-sidebar .form-group {
    margin-bottom: 12px;
}

.editor-sidebar .form-group:last-child {
    margin-bottom: 0;
}

.editor-sidebar .help-block {
    font-size: 11px;
    margin-bottom: 0;
}

/* Featured Image Panel */
.featured-image-preview {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e8e8ef;
    margin-bottom: 10px;
    display: block;
}

.featured-image-placeholder {
    width: 100%;
    height: 120px;
    background: var(--cu-gray-light);
    border: 2px dashed #d0d3de;
    border-radius: var(--cu-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #bbb;
    margin-bottom: 10px;
    transition: border-color var(--cu-transition);
}

.featured-image-placeholder:hover {
    border-color: var(--cu-gold);
}

.featured-image-placeholder i {
    font-size: 32px;
    margin-bottom: 5px;
}

.featured-image-placeholder span {
    font-size: 12px;
}

/* Status Panel in Sidebar */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.status-row:not(:last-child) {
    border-bottom: 1px solid #f0f0f5;
}

.status-row .status-label {
    color: #8a8a9a;
}

/* Publish Actions */
.publish-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publish-actions .btn {
    display: block;
    width: 100%;
}

.publish-info {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
}

.publish-info .publish-date {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Schedule Inline Panel */
.schedule-panel {
    background: #f9fafe;
    border: 1px solid #e8e8ef;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}

.schedule-panel label {
    font-size: 12px;
    margin-bottom: 4px;
    display: block;
}

.schedule-panel input[type="datetime-local"] {
    width: 100%;
    margin-bottom: 8px;
}

.schedule-panel .btn-group-schedule {
    display: flex;
    gap: 6px;
}

.schedule-panel .btn-group-schedule .btn {
    flex: 1;
}

/* Gradient Preview in Sidebar */
.gradient-picker {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.gradient-picker input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
}

.gradient-picker-preview {
    flex: 1;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Admin Feedback Alert */
.alert-feedback {
    border-left: 4px solid;
    font-size: 13px;
}

.alert-feedback p {
    margin: 6px 0 0;
}

/* Sidebar Action Buttons */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.sidebar-actions .btn {
    width: 100%;
}

/* Video Player */
.video-player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-player-container video {
    width: 100%;
    display: block;
}

@media (max-width: 991px) {
    .editor-row {
        flex-direction: column;
    }

    .editor-sidebar {
        width: 100%;
    }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .creator-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .creator-sidebar.open {
        transform: translateX(0);
    }

    .creator-main {
        margin-left: 0;
    }

    .topbar-title {
        font-size: 16px;
    }

    .creator-content {
        padding: 15px;
    }

    .stat-card {
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .auth-card {
        padding: 30px 20px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-icon {
        font-size: 28px;
    }
}
