/*
|--------------------------------------------------------------------------
| Viartas Admin Theme - Page Editor Styles
|--------------------------------------------------------------------------
*/

:root {
    --primary: #6366f1;
    --primary-light: rgba(99, 102, 241, 0.1);
    --primary-dark: #4f46e5;
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --info: #0ea5e9;
    --info-light: rgba(14, 165, 233, 0.1);
    --dark-50: #f8fafc;
    --dark-100: #f1f5f9;
    --dark-200: #e2e8f0;
    --dark-300: #cbd5e1;
    --dark-400: #94a3b8;
    --dark-500: #64748b;
    --dark-600: #475569;
    --dark-700: #334155;
    --dark-800: #1e293b;
    --dark-900: #0f172a;
    --card-bg: #ffffff;
    --body-bg: #f1f5f9;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Page Editor Container */
.page-editor {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Header */
.page-editor-header {
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-900) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-editor-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.page-editor-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.page-editor-title-section { flex: 1; }

.page-editor-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark-400);
    margin-bottom: 12px;
}

.page-editor-breadcrumb a {
    color: var(--dark-400);
    text-decoration: none;
    transition: color 0.2s;
}

.page-editor-breadcrumb a:hover { color: white; }
.page-editor-breadcrumb i { font-size: 10px; }

.page-editor-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-editor-title .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.page-editor-title .status-badge.published { background: var(--success); color: white; }
.page-editor-title .status-badge.draft { background: var(--warning); color: white; }

.page-editor-subtitle {
    font-size: 14px;
    color: var(--dark-400);
}

/* Action Buttons */
.page-editor-actions {
    display: flex;
    gap: 10px;
}

.page-editor-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-editor-actions .btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-editor-actions .btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-editor-actions .btn-success-glow {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.page-editor-actions .btn-success-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.page-editor-actions .btn-danger-glow {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.page-editor-actions .btn-danger-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Stats */
.page-editor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 24px 40px;
    background: var(--dark-50);
    border-bottom: 1px solid var(--dark-100);
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-100);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.icon-primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.icon-success { background: var(--success-light); color: var(--success); }
.stat-icon.icon-warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.icon-info { background: var(--info-light); color: var(--info); }
.stat-icon.icon-danger { background: var(--danger-light); color: var(--danger); }

.stat-content { flex: 1; min-width: 0; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--dark-800); line-height: 1.2; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--dark-500); text-transform: uppercase; letter-spacing: 0.5px; }

/* ========================================================================
   Navigation Tabs - HORIZONTAL (default)
   ======================================================================== */
.page-editor-nav {
    padding: 0 40px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--dark-100);
}

.nav-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.nav-tabs-modern .nav-item {
    flex-shrink: 0;
}

.nav-tabs-modern .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-500);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav-tabs-modern .nav-link i { font-size: 14px; }
.nav-tabs-modern .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-tabs-modern .nav-link.active { color: var(--primary); background: var(--primary-light); border-color: var(--primary); }

.nav-tabs-modern .nav-link .badge {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    background: var(--dark-200);
    color: var(--dark-600);
}

.nav-tabs-modern .nav-link.active .badge { background: var(--primary); color: white; }

/* ========================================================================
   Navigation Tabs - VERTICAL (sidebar layout)
   ======================================================================== */
.page-editor.vertical-tabs .page-editor-nav {
    display: none; /* Hide horizontal nav */
}

.page-editor.vertical-tabs .page-editor-body {
    display: flex;
    min-height: 600px;
}

/* Vertical Sidebar Navigation */
.page-editor-sidebar-nav {
    width: 260px;
    flex-shrink: 0;
    background: var(--dark-50);
    border-right: 1px solid var(--dark-100);
    padding: 24px 0;
}

.nav-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.nav-tabs-vertical .nav-item {
    width: 100%;
}

.nav-tabs-vertical .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-600);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
}

.nav-tabs-vertical .nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--dark-400);
    transition: color 0.2s ease;
}

.nav-tabs-vertical .nav-link:hover {
    background: var(--card-bg);
    color: var(--dark-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-tabs-vertical .nav-link:hover i {
    color: var(--primary);
}

.nav-tabs-vertical .nav-link.active {
    background: var(--card-bg);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.nav-tabs-vertical .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.nav-tabs-vertical .nav-link.active i {
    color: var(--primary);
}

.nav-tabs-vertical .nav-link .badge {
    margin-left: auto;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--dark-200);
    color: var(--dark-600);
}

.nav-tabs-vertical .nav-link.active .badge {
    background: var(--primary);
    color: white;
}

/* Nav Section Divider */
.nav-tabs-vertical .nav-divider {
    height: 1px;
    background: var(--dark-200);
    margin: 12px 16px;
}

.nav-tabs-vertical .nav-section-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Main Content Area (when using vertical tabs) */
.page-editor-main-content {
    flex: 1;
    min-width: 0;
    background: var(--card-bg);
}

.page-editor-main-content .page-editor-content {
    padding: 32px 40px;
}

/* ========================================================================
   Vertical Tabs - Compact Variant
   ======================================================================== */
.page-editor.vertical-tabs.compact .page-editor-sidebar-nav {
    width: 220px;
    padding: 16px 0;
}

.page-editor.vertical-tabs.compact .nav-tabs-vertical {
    padding: 0 8px;
    gap: 2px;
}

.page-editor.vertical-tabs.compact .nav-tabs-vertical .nav-link {
    padding: 10px 12px;
    font-size: 13px;
    gap: 10px;
}

.page-editor.vertical-tabs.compact .nav-tabs-vertical .nav-link i {
    font-size: 14px;
}

/* ========================================================================
   Vertical Tabs - Icons Only (collapsed)
   ======================================================================== */
.page-editor.vertical-tabs.icons-only .page-editor-sidebar-nav {
    width: 72px;
    padding: 16px 0;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical {
    padding: 0 12px;
    gap: 4px;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link {
    padding: 14px;
    justify-content: center;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link i {
    font-size: 18px;
    width: auto;
    margin: 0;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link span,
.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link .badge,
.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-section-title {
    display: none;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link.active::before {
    height: 20px;
}

/* Tooltip for icons-only mode */
.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link {
    position: relative;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background: var(--dark-800);
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.page-editor.vertical-tabs.icons-only .nav-tabs-vertical .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========================================================================
   Design 2: Light Header
   ======================================================================== */
.page-editor.light-theme .page-editor-header {
    background: var(--card-bg);
    color: var(--dark-800);
    padding: 10px 40px;
    border-bottom: 1px solid var(--dark-100);
}

.page-editor.light-theme .page-editor-header::before { display: none; }
.page-editor.light-theme .page-editor-breadcrumb a { color: var(--dark-500); }
.page-editor.light-theme .page-editor-breadcrumb a:hover { color: var(--primary); }
.page-editor.light-theme .page-editor-subtitle { color: var(--dark-500); }

.page-editor.light-theme .btn-glass {
    background: var(--primary);
    color: white;
    border: none;
}

.page-editor.light-theme .btn-glass:hover { background: var(--primary-dark); }

/* Form Card */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-100);
    margin-bottom: 24px;
    overflow: hidden;
}

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dark-100);
    gap: 12px;
}

.form-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-800);
    margin: 0;
}

.form-card-title i { color: var(--primary); font-size: 16px; }
.form-card-body { padding: 24px; }
.form-card-footer { padding: 16px 24px; background: var(--dark-50); border-top: 1px solid var(--dark-100); }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-700);
    margin-bottom: 8px;
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--dark-200);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--dark-700);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder { color: var(--dark-400); }

textarea.form-control { min-height: 120px; resize: vertical; }

.form-hint { font-size: 12px; color: var(--dark-500); margin-top: 6px; }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.content-main { min-width: 0; }

/* Sidebar */
.content-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-100);
    overflow: hidden;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dark-100);
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-800);
}

.sidebar-card-header i { color: var(--primary); }
.sidebar-card-body { padding: 20px; }

/* Slug Field */
.slug-wrapper { position: relative; }

.slug-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--dark-400);
}

.slug-wrapper .form-control { padding-left: 100px; }

/* Status Toggle */
.status-toggle {
    display: flex;
    gap: 8px;
}

.status-toggle .toggle-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--dark-200);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--dark-500);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-toggle .toggle-btn:hover { border-color: var(--dark-300); }
.status-toggle .toggle-btn.active { border-color: var(--success); background: var(--success-light); color: var(--success); }
.status-toggle .toggle-btn.active.draft { border-color: var(--warning); background: var(--warning-light); color: var(--warning); }

/* Parent Select */
.parent-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Page Settings List */
.settings-list { display: flex; flex-direction: column; gap: 16px; }

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dark-100);
}

.setting-item:last-child { padding-bottom: 0; border-bottom: none; }

.setting-info { display: flex; align-items: center; gap: 12px; }

.setting-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.setting-label { font-size: 13px; font-weight: 600; color: var(--dark-700); }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--dark-200);
    border-radius: 26px;
    transition: all 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* Meta Info */
.meta-info { display: flex; flex-direction: column; gap: 12px; }

.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.meta-label { color: var(--dark-500); }
.meta-value { color: var(--dark-700); font-weight: 500; }

/* Rich Text Editor */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
    background: var(--dark-50);
    border: 1px solid var(--dark-200);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--dark-200);
    border-radius: var(--radius-sm);
    color: var(--dark-600);
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-btn:hover { background: var(--dark-100); border-color: var(--dark-300); }
.toolbar-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.toolbar-divider {
    width: 1px;
    height: 36px;
    background: var(--dark-200);
    margin: 0 4px;
}

.editor-content {
    min-height: 400px;
    padding: 20px;
    border: 1px solid var(--dark-200);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--card-bg);
}

.editor-content:focus { outline: none; border-color: var(--primary); }

/* Image Upload */
.image-upload-container { position: relative; }

.image-upload {
    border: 2px dashed var(--dark-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.image-upload:hover { border-color: var(--primary); }

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
}

.upload-placeholder .upload-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-placeholder .upload-icon i { font-size: 28px; color: var(--primary); }
.upload-placeholder h4 { font-size: 16px; font-weight: 700; color: var(--dark-800); margin: 0; }
.upload-placeholder p { font-size: 13px; color: var(--dark-500); margin: 0; }
.upload-placeholder small { font-size: 12px; color: var(--dark-500); }

.upload-preview { position: relative; }
.upload-preview img { width: 100%; height: auto; display: block; }

.remove-image {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image:hover { transform: scale(1.1); }

/* SEO Preview */
.seo-preview { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--dark-100); }
.seo-preview-title { font-size: 13px; font-weight: 600; color: var(--dark-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }

.google-preview {
    background: var(--card-bg);
    border: 1px solid var(--dark-200);
    border-radius: var(--radius);
    padding: 20px;
}

.google-title { font-size: 18px; color: #1a0dab; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.google-url { font-size: 14px; color: #006621; margin-bottom: 8px; }
.google-description { font-size: 14px; color: #545454; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Image Gallery */
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.2s ease;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--dark-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-btn:hover { background: var(--dark-100); }
.gallery-btn.danger:hover { background: var(--danger); color: white; }

.gallery-upload {
    border: 2px dashed var(--dark-200);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark-400);
}

.gallery-upload:hover { border-color: var(--primary); color: var(--primary); }
.gallery-upload i { font-size: 24px; }
.gallery-upload span { font-size: 12px; font-weight: 600; }

/* Documents List */
.documents-list { display: flex; flex-direction: column; }

.document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--dark-100);
    transition: background 0.2s ease;
}

.document-item:last-child { border-bottom: none; }
.document-item:hover { background: var(--dark-50); }

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.document-icon.pdf { background: var(--danger-light); color: var(--danger); }
.document-icon.doc { background: var(--info-light); color: var(--info); }
.document-icon.xls { background: var(--success-light); color: var(--success); }

.document-info { flex: 1; min-width: 0; }
.document-name { font-size: 14px; font-weight: 600; color: var(--dark-800); margin-bottom: 4px; }
.document-meta { font-size: 12px; color: var(--dark-500); }

.document-actions { display: flex; gap: 8px; }

.doc-btn {
    width: 36px;
    height: 36px;
    background: var(--dark-100);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--dark-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.doc-btn:hover { background: var(--dark-200); }
.doc-btn.danger:hover { background: var(--danger); color: white; }

/* Activity Timeline */
.page-editor .activity-timeline { padding: 24px; }

.page-editor .activity-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.page-editor .activity-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--dark-100);
}

.page-editor .activity-item:last-child { padding-bottom: 0; }

.page-editor .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.page-editor .activity-icon.edit { background: var(--primary-light); color: var(--primary); }
.page-editor .activity-icon.image { background: var(--info-light); color: var(--info); }
.page-editor .activity-icon.comment { background: var(--warning-light); color: var(--warning); }
.page-editor .activity-icon.publish { background: var(--success-light); color: var(--success); }
.page-editor .activity-icon.create { background: var(--dark-100); color: var(--dark-600); }

.page-editor .activity-content { flex: 1; padding-top: 8px; }
.page-editor .activity-title { font-size: 14px; font-weight: 600; color: var(--dark-700); margin-bottom: 4px; }
.page-editor .activity-meta { font-size: 12px; color: var(--dark-500); }

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--dark-200);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); }

.upload-zone-content i { font-size: 64px; color: var(--dark-300); margin-bottom: 16px; }
.upload-zone-content h4 { font-size: 18px; font-weight: 700; color: var(--dark-800); margin-bottom: 8px; }
.upload-zone-content p { font-size: 14px; color: var(--dark-500); margin-bottom: 12px; }
.upload-hint { font-size: 12px; color: var(--dark-400); }

/* OG Image */
.og-image-upload { display: flex; align-items: center; gap: 16px; }
.og-image-hint { font-size: 12px; color: var(--dark-500); }

/* ========================================================================
   Stat Cards - 3 kortelių variantas
   ======================================================================== */
.page-editor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 20px;
    background: var(--dark-50);
    border-bottom: 1px solid var(--dark-100);
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-100);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-800);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-600);
    margin-bottom: 2px;
}

.stat-label strong {
    color: var(--dark-800);
}

.stat-details {
    font-size: 12px;
    color: var(--dark-400);
    margin-top: 4px;
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1199.98px) {
    .content-grid { grid-template-columns: 1fr 320px; }

    .nav-tabs-modern .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Vertical tabs - narrower sidebar */
    .page-editor.vertical-tabs .page-editor-sidebar-nav {
        width: 220px;
    }

    .nav-tabs-vertical .nav-link {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-sidebar { order: -1; }
    .page-editor-header,
    .page-editor-stats,
    .page-editor-nav,
    .page-editor-content {
        padding-left: 24px;
        padding-right: 24px;
        margin-top: 20px;
    }
    .page-editor-stats { grid-template-columns: repeat(3, 1fr); }

    .page-editor-nav {
        padding: 0 24px;
    }

    .nav-tabs-modern {
        gap: 6px;
    }

    .nav-tabs-modern .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Vertical tabs - switch to horizontal on tablet */
    .page-editor.vertical-tabs .page-editor-body {
        flex-direction: column;
    }

    .page-editor.vertical-tabs .page-editor-sidebar-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--dark-100);
        padding: 12px 0;
    }

    .page-editor.vertical-tabs .nav-tabs-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 16px;
        gap: 6px;
    }

    .page-editor.vertical-tabs .nav-tabs-vertical .nav-item {
        width: auto;
    }

    .page-editor.vertical-tabs .nav-tabs-vertical .nav-link {
        padding: 10px 16px;
    }

    .page-editor.vertical-tabs .nav-tabs-vertical .nav-link.active::before {
        display: none;
    }

    .page-editor.vertical-tabs .nav-tabs-vertical .nav-link.active {
        border: 2px solid var(--primary);
    }

    .page-editor.vertical-tabs .nav-tabs-vertical .nav-divider,
    .page-editor.vertical-tabs .nav-tabs-vertical .nav-section-title {
        display: none;
    }

    .page-editor.vertical-tabs .page-editor-main-content .page-editor-content {
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .page-editor-header { padding: 20px 16px; }
    .page-editor-header-content { flex-direction: column; gap: 20px; }
    .page-editor-title { font-size: 22px; }
    .page-editor-actions { width: 100%; justify-content: flex-start; }
    .page-editor-actions .btn { width: 44px; height: 44px; font-size: 16px; }

    .page-editor-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 12px;
    }
    .stat-card { padding: 14px; gap: 12px; }
    .stat-icon { width: 40px; height: 40px; font-size: 16px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }

    .page-editor-nav {
        padding: 0 16px;
    }

    .nav-tabs-modern {
        gap: 6px;
        padding: 12px 0;
    }

    .nav-tabs-modern .nav-link {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: var(--radius-sm);
        border-width: 1px;
    }

    .nav-tabs-modern .nav-link i {
        font-size: 12px;
    }

    .nav-tabs-modern .nav-link .badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    .page-editor-content { padding: 16px !important; }
    .form-card-header { padding: 16px; }
    .form-card-body { padding: 16px; }
    .form-card-title { font-size: 14px; }

    .sidebar-card-header { padding: 14px 16px; font-size: 13px; }
    .sidebar-card-body { padding: 16px; }

    .toolbar-divider { display: none; }
    .editor-toolbar { padding: 8px; }
    .toolbar-btn { width: 32px; height: 32px; }

    .image-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .document-item { padding: 14px 16px; gap: 12px; }
    .document-icon { width: 40px; height: 40px; font-size: 16px; }
    .document-name { font-size: 13px; }

    .page-editor .activity-timeline { padding: 16px; }
    .page-editor .activity-item { gap: 12px; padding-bottom: 20px; }
    .page-editor .activity-icon { width: 32px; height: 32px; font-size: 12px; }
    .page-editor .activity-item:not(:last-child)::before { left: 15px; top: 36px; }
    .page-editor .activity-content { padding-top: 4px; }
    .page-editor .activity-title { font-size: 13px; }
    .page-editor .activity-meta { font-size: 11px; }

    /* Vertical tabs mobile */
    .page-editor.vertical-tabs .nav-tabs-vertical .nav-link {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .page-editor.vertical-tabs .nav-tabs-vertical .nav-link i {
        font-size: 12px;
    }

    .page-editor.vertical-tabs .page-editor-main-content .page-editor-content {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .page-editor-stats { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 12px; }
    .stat-icon { width: 36px; height: 36px; font-size: 14px; }
    .stat-value { font-size: 16px; }

    .nav-tabs-modern .nav-link {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .nav-tabs-modern .nav-link i {
        font-size: 11px;
    }

    .upload-placeholder { padding: 24px; }
    .upload-placeholder .upload-icon { width: 56px; height: 56px; }
    .upload-placeholder .upload-icon i { font-size: 22px; }
    .upload-placeholder h4 { font-size: 14px; }
    .upload-placeholder p { font-size: 12px; }

    .upload-zone { padding: 32px 20px; }
    .upload-zone-content i { font-size: 48px; }
    .upload-zone-content h4 { font-size: 16px; }

    .google-preview { padding: 14px; }
    .google-title { font-size: 16px; }
    .google-url, .google-description { font-size: 13px; }
}
