:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    
    /* Neutral Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Design Tokens */
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--slate-100);
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--slate-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--slate-800);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}

.logo-tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    margin: 24px 12px 8px;
}

.nav-item {
    list-style: none;
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--slate-400);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--slate-800);
    color: white;
}

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

.nav-icon {
    margin-right: 14px;
    font-size: 18px;
    width: 24px;
    text-align: center;
    opacity: 0.7;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--slate-800);
    background-color: #0c1222;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
}

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

.user-name {
    font-size: 12px;
    font-weight: 600;
}

.user-role {
    font-size: 10px;
    color: var(--slate-500);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: var(--topbar-height);
    background-color: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-500);
}

.breadcrumb-item {
    transition: color 0.2s;
}

.breadcrumb-item.active {
    color: var(--slate-900);
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin: 0 12px;
    font-size: 10px;
    color: var(--slate-300);
}

.status-indicators {
    display: flex;
    align-items: center;
}

.status-pill {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status-online {
    background-color: #ecfdf5;
    color: var(--success);
    border: 1px solid #d1fae5;
}

/* Content Wrapper */
.content-wrapper {
    padding: 32px 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Page Headers */
.page-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
}

.page-subtitle {
    font-size: 14px;
    color: var(--slate-500);
    margin-top: 4px;
}

/* Dashboard Grid/Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-500);
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
    font-family: var(--font-heading);
}

/* Tables */
.card {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 16px 24px;
    background-color: var(--slate-50);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    font-weight: 700;
    border-bottom: 1px solid var(--slate-200);
}

td {
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}

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

tr:hover td {
    background-color: #fcfdfe;
}

/* Minimalist Status Text */
.status-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-success { color: #16a34a !important; }
.text-danger { color: #dc2626 !important; }
.text-warning { color: #d97706 !important; }
.text-muted-light { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--slate-300);
    color: var(--slate-600);
}

.btn-outline:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-400);
}

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

/* Utilities */
.text-hindi {
    font-family: 'Inter', sans-serif; /* Placeholder for Hindi-specific font */
    line-height: 1.6;
}

/* Sectioned Forms & Cards */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 32px;
}

.form-section {
    padding: 32px;
    border-bottom: 1px solid var(--slate-100);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--slate-500);
    margin-top: 4px;
}

/* Grid Layouts for Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Input Enhancements */
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 8px 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control.error {
    border-color: var(--danger);
}

.help-text {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 6px;
    line-height: 1.4;
}

.error-text {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    font-weight: 500;
}

/* Toggle / Switch Component */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
}

.btn-icon:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-icon i {
    font-size: 14px;
}

.switch-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-100);
    transition: all 0.2s ease;
}

.switch-group:hover {
    background: white;
    border-color: var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slate-300);
    transition: .4s;
    border-radius: 24px;
}

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

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

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

.switch-label-block {
    display: flex;
    flex-direction: column;
}

.switch-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
}

.switch-desc {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 2px;
}

/* Badge Enhancements */
.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* Form Actions */
.form-actions-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 20px 32px;
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    z-index: 10;
}

/* Placeholder Note */
.placeholder-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.placeholder-note i {
    font-size: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.mt-3 { margin-top: 12px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.ml-auto { margin-left: auto; }
.justify-end { justify-content: flex-end; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.tracking-tight { letter-spacing: -0.025em; }
.text-base { font-size: 1rem; }
.font-medium { font-weight: 500; }
.opacity-50 { opacity: 0.5; }
.text-white { color: white !important; }
.btn-xs { padding: 2px 8px; font-size: 10px; }
.w-full { width: 100%; }
.font-heading { font-family: var(--font-heading); }
.font-main { font-family: var(--font-main); }
.uppercase { text-transform: uppercase; }

/* Global Utilities */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }

.h-full { height: 100% !important; }
.w-full { width: 100% !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-6 { padding-left: 24px !important; padding-right: 24px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-12 { padding-top: 48px !important; padding-bottom: 48px !important; }

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mt-0.5 { margin-top: 2px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-6 { margin-left: 24px !important; }

.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }
.font-black { font-weight: 900 !important; }
.font-bold { font-weight: 700 !important; }
.font-medium { font-weight: 500 !important; }

.text-xs { font-size: 11px !important; }
.text-sm { font-size: 13px !important; }
.text-\[8px\] { font-size: 8px !important; }
.text-\[9px\] { font-size: 9px !important; }
.text-\[10px\] { font-size: 10px !important; }
.text-\[11px\] { font-size: 11px !important; }
.text-\[12px\] { font-size: 12px !important; }

.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

/* Sprint 13 — Editorial Workspace Styles */
.workspace-container {
    max-width: 1400px;
    margin: 0 auto;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--slate-200);
}

.draft-headline {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 12px;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    background: var(--slate-50);
    font-weight: 700;
    color: var(--slate-500);
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px;
    border-bottom: 2px solid var(--slate-200);
}

.comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: top;
}

.val-gen { background: #f8fafc; color: #64748b; font-size: 0.85rem; }
.val-over { background: white; }
.val-eff { background: #f0fdf4; font-weight: 600; color: #15803d; border-left: 2px solid #22c55e; }

.btn-edit-inline {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    font-weight: 500;
}

.placeholder { color: var(--slate-400); font-style: italic; }

.badge-mock {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--slate-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-content {
    background: var(--slate-50);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.action-type {
    font-weight: 700;
    color: var(--slate-800);
    display: block;
}

.action-meta {
    font-size: 11px;
    color: var(--slate-500);
    margin-top: 2px;
}

.action-notes {
    margin-top: 8px;
    font-style: italic;
    color: var(--slate-600);
    border-top: 1px dashed var(--slate-200);
    padding-top: 4px;
}

.status-pill.status-generated { background: #f1f5f9; color: #475569; }
.status-pill.status-approved_for_wp_draft { background: #dcfce7; color: #166534; }
.status-pill.status-wp_draft_created { background: #dbeafe; color: #1e40af; }

/* Queue Page Headers */
.table-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-200);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}

.section-context {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.page-description {
    font-size: 1rem;
    color: var(--slate-500);
    max-width: 600px;
}
