/* ===== Sidebar Pro UX ===== */

.sidebar-pro {
    font-size: 14px;
    background: linear-gradient(180deg, #0b1220 0%, #111827 42%, #1f2937 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.brand-pro {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(10, 15, 28, 0.6);
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f766e, #0d9488);
    color: #fff;
    margin-bottom: 4px;
}

.brand-pro .brand-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.brand-sub {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.user-panel-pro {
    margin: 12px 12px 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.75);
    margin-right: 10px;
}

.user-info .user-name {
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
    font-size: 13px;
}

.user-info .user-role {
    margin-top: 3px;
}

.user-info .user-role span {
    font-size: 10px;
    color: #99f6e4;
    border: 1px solid rgba(20, 184, 166, 0.4);
    background: rgba(15, 118, 110, 0.25);
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.nav-header-pro {
    font-size: 10px;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 14px 14px 6px;
    padding: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-sidebar .nav-link {
    border-radius: 10px;
    margin: 4px 10px;
    padding: 10px 12px;
    color: #cbd5e1;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-sidebar .nav-link:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(148, 163, 184, 0.25);
    color: #fff;
}

.nav-sidebar .nav-link.active {
    color: #fff;
    border-color: rgba(20, 184, 166, 0.6);
    background: linear-gradient(145deg, #0f766e, #0d9488);
    box-shadow: 0 10px 18px rgba(13, 148, 136, 0.32);
}

.nav-sidebar .nav-link .nav-icon {
    font-size: 15px;
}

.nav-sidebar .nav-link p {
    font-weight: 600;
    font-size: 13px;
}

.nav-logout {
    margin-top: 10px;
    padding-top: 8px;
}

.nav-logout .nav-link {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.3), rgba(153, 27, 27, 0.35));
    color: #fecaca;
    font-weight: 700;
}

.nav-logout .nav-link:hover {
    background: linear-gradient(145deg, rgba(153, 27, 27, 0.42), rgba(185, 28, 28, 0.48));
    border-color: rgba(252, 165, 165, 0.65);
    color: #fee2e2;
}

.nav-link-logout .nav-icon {
    color: #fca5a5;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(145deg, #0f766e, #0d9488);
}

.sidebar-pro .sidebar {
    height: calc(100vh - 8px);
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    padding-top: 10px;
    padding-bottom: 12px;
}

.sidebar-pro .sidebar nav {
    display: block;
    min-height: auto;
}

.sidebar-pro .sidebar .nav-sidebar {
    width: 100%;
    display: block;
}

.sidebar-pro .sidebar .nav-item.nav-logout {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}
/* ===== Author Dashboard UX ===== */

.stat-card {
    display: flex;
    align-items: center;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 28px;
    margin-right: 15px;
    color: #007bff;
}

.stat-content h3 {
    margin: 0;
    font-weight: 600;
}

.stat-content span {
    font-size: 13px;
    color: #6c757d;
}

.card-draft {
    border-left: 4px solid #007bff;
}

.card-insight {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-radius: 10px;
}

/* ===============================
   PRO STORY TABLE UX
================================ */

.story-table-card {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.story-table-card table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    vertical-align: middle;
}

.story-table-card table td {
    vertical-align: middle;
    padding: 14px 12px;
}

.story-table-card tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status badge refinement */
.badge-pill {
    padding: 6px 12px;
    font-weight: 500;
}

/* Action buttons */
.btn-xs {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 20px;
}

/* DataTable controls spacing */
.dataTables_wrapper .dataTables_filter {
    padding: 12px;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 10px 15px;
}

.dataTables_wrapper .dataTables_info {
    padding: 12px;
    font-size: 13px;
    color: #6c757d;
}

/* ===============================
   NOTIFICATION TIMELINE – PRO UX
================================ */

.timeline {
    margin: 0;
}

.timeline-item {
    border-radius: 8px;
}

.timeline-unread {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}

.timeline-header {
    font-size: 14px;
    font-weight: 600;
}

.timeline-body {
    font-size: 14px;
    line-height: 1.6;
}

/* ===============================
   ADMIN DASHBOARD – PRO UX
================================ */

.kpi-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: transform .2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
}

.kpi-content h3 {
    margin: 0;
    font-weight: 600;
}

.kpi-content span {
    font-size: 13px;
    color: #6c757d;
}

.kpi-attention {
    border-left: 4px solid #ffc107;
}

.card-insight {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}


/* ===============================
   SUBMITTED STORIES – PRO UX
================================ */

.story-table-card {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.story-table-card th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.story-table-card td {
    padding: 14px 12px;
}

.row-pending {
    background-color: #fffdf3;
}

.cursor-pointer {
    cursor: pointer;
}

.btn-xs {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 20px;
}

/* CATEGORY PRO TABLE */

.table td {
    vertical-align: middle;
    padding: 14px 12px;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-pill {
    padding: 6px 12px;
    font-weight: 500;
}

.card.shadow-sm {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

/* ===============================
   GLOBAL CARD REVAMP
================================ */

.content-wrapper .card {
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.content-wrapper .card-header {
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.content-wrapper .card-title {
    font-weight: 700;
    color: #0f172a;
}

.card-insight {
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.kpi-card,
.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e6ecf3;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kpi-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    border-color: #cfdbea;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

.kpi-icon,
.stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.28);
}

.kpi-icon.bg-primary { background: linear-gradient(145deg, #2563eb, #1d4ed8) !important; }
.kpi-icon.bg-info { background: linear-gradient(145deg, #0284c7, #0369a1) !important; }
.kpi-icon.bg-success { background: linear-gradient(145deg, #16a34a, #15803d) !important; }
.kpi-icon.bg-warning { background: linear-gradient(145deg, #f59e0b, #d97706) !important; color: #111827 !important; }
.kpi-icon.bg-danger { background: linear-gradient(145deg, #dc2626, #b91c1c) !important; }
.kpi-icon.bg-dark { background: linear-gradient(145deg, #1f2937, #111827) !important; }

.stat-icon {
    margin-right: 14px;
    font-size: 20px;
}

.kpi-content h3,
.stat-content h3 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.kpi-content span,
.stat-content span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #64748b;
}

.kpi-attention {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(145deg, #ffffff 0%, #fffaf0 100%);
}

.card-draft {
    border-left: 4px solid #2563eb;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.story-table-card {
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.story-table-card thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.story-table-card tbody tr:hover {
    background: #f8fbff;
}

/* ===============================
   GLOBAL BUTTON SYSTEM
================================ */

:root {
    --btn-radius: 10px;
    --btn-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    --btn-shadow-hover: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.btn {
    border-radius: var(--btn-radius);
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.5rem 1rem;
    border-width: 1px;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn:disabled,
.btn.disabled {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
    box-shadow: var(--btn-shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #1e40af;
    box-shadow: var(--btn-shadow-hover);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    box-shadow: var(--btn-shadow);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #15803d, #166534);
    border-color: #166534;
    box-shadow: var(--btn-shadow-hover);
}

.btn-info {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #0369a1;
    box-shadow: var(--btn-shadow);
}

.btn-info:hover,
.btn-info:focus {
    background: linear-gradient(135deg, #0369a1, #075985);
    border-color: #075985;
    box-shadow: var(--btn-shadow-hover);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #d97706;
    color: #111827;
    box-shadow: var(--btn-shadow);
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: #b45309;
    color: #111827;
    box-shadow: var(--btn-shadow-hover);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
    box-shadow: var(--btn-shadow);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #991b1b;
    box-shadow: var(--btn-shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    border-color: #475569;
    box-shadow: var(--btn-shadow);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, #475569, #334155);
    border-color: #334155;
    box-shadow: var(--btn-shadow-hover);
}

.btn-light {
    border-color: #dbe2ea;
    color: #334155;
    background-color: #f8fafc;
}

.btn-light:hover,
.btn-light:focus {
    border-color: #cbd5e1;
    color: #1e293b;
    background-color: #eef2f7;
    box-shadow: 0 8px 18px rgba(30, 41, 59, 0.12);
}

.btn-dark {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-color: #111827;
    box-shadow: var(--btn-shadow);
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(135deg, #111827, #030712);
    border-color: #030712;
    box-shadow: var(--btn-shadow-hover);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-secondary,
.btn-outline-dark {
    border-width: 1px;
    background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.btn-sm {
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: .82rem;
}

.btn-lg {
    border-radius: 12px;
    padding: 0.65rem 1.2rem;
}

.btn-block {
    border-radius: 10px;
}
/* ===============================
   AUTHOR MANAGEMENT – PRO UX
================================ */

.table td {
    vertical-align: middle;
    padding: 14px 12px;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-pill {
    padding: 6px 12px;
    font-weight: 500;
}

.author-name {
    font-size: 14px;
}

.card.shadow-sm {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
