/* ============================================
   NAEL MEDIA CRM - MODERN UNIFIED THEME
   Strict Palette: #dddddd, #1e1e1e, #fc5f20, #8879f1
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Strict Palette As Requested */
    --c-light: #dddddd;
    /* Background Color */
    --c-dark: #1e1e1e;
    /* Text / Dark Color */
    --c-primary: #fc5f20;
    /* Primary Color: Orange */
    --c-secondary: #8879f1;
    /* Secondary Color: Purple */

    /* Functional Mapping */
    --bg-color: var(--c-light);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 1);
    --text-primary: var(--c-dark);
    --text-secondary: #555555;

    /* Status strict colors */
    --status-success: #10b981;
    --status-overdue: #ef4444;
    --status-pending: #94a3b8;
    --status-review: #f59e0b;
    --status-submitted: var(--c-secondary);
    --status-revision: #d97706;
    /* Amber-dark for revision */

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    /* Premium Soft Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(30, 30, 30, 0.05);
    --shadow-md: 0 12px 32px -4px rgba(30, 30, 30, 0.06);
    --shadow-lg: 0 24px 48px -12px rgba(30, 30, 30, 0.08);
    --shadow-glow: 0 8px 24px rgba(252, 95, 32, 0.25);
    --shadow-glow-sec: 0 8px 24px rgba(136, 121, 241, 0.25);

    --glass-blur: blur(24px);
}

/* Dark Mode (If needed or for Live Board) */
body.dark-mode,
.dark-theme {
    --bg-color: var(--c-dark);
    --card-bg: rgba(40, 40, 40, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: var(--c-light);
    --text-secondary: #a0a0a0;
}

/* ============================================
      RESET & BASE
      ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* Very subtle pure CSS background pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--c-secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: var(--c-secondary);
}

/* ============================================
      GLASSMORPHISM PANELS
      ============================================ */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
      NAVIGATION
      ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Custom N Logo block */
.n-logo {
    background: linear-gradient(135deg, var(--c-primary), #ff8a5c);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    box-shadow: var(--shadow-glow);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 99px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

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

.nav-link.btn-special {
    color: white;
    background: var(--c-secondary);
    box-shadow: var(--shadow-glow-sec);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

/* ============================================
      BUTTONS
      ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy hover */
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), #ff8a5c);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(252, 95, 32, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--c-secondary), #9381ff);
    color: white;
    box-shadow: var(--shadow-glow-sec);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--status-overdue);
    color: var(--status-overdue);
}

.btn-outline-danger:hover {
    background: var(--status-overdue);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-danger {
    background: var(--status-overdue);
    color: white;
}

.btn-block {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ============================================
      LAYOUT & HEADERS
      ============================================ */
#app-content {
    flex: 1;
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* User Stats Circles */
.stat-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--card-bg);
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* KPI / Stats Bar */
.stats-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 160px;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

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

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(252, 95, 32, 0.2);
}

/* ============================================
      FORMS & INPUTS
      ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

/* ============================================
      TABLES
      ============================================ */
.table-responsive {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

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

.table th,
.table td {
    padding: 1.2rem 1.25rem;
    text-align: right;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}

.table th {
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.03);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

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

.table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.002);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    position: relative;
}

/* ============================================
      MODALS
      ============================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    z-index: 999;
}

.modal-container {
    position: fixed;
    top: 5%;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: var(--status-overdue);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* ============================================
      TASKS (CARDS)
      ============================================ */
.my-task-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 6px solid var(--c-primary);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.my-task-card:hover {
    transform: translateX(-5px) translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.2);
}

.my-task-card:last-child {
    margin-bottom: 0;
}

.priority-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
}

.priority-urgent {
    background: rgba(239, 68, 68, 0.15);
    color: var(--status-overdue);
    animation: pulse 2s infinite;
}

.priority-high {
    background: rgba(252, 95, 32, 0.15);
    color: var(--c-primary);
}

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

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideInFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
    background: var(--status-success);
}

.toast.error {
    background: var(--status-overdue);
}

@keyframes slideInFade {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Tabs System */
.tab-content {
    display: none;
}

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

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--c-primary), #ff8a5c);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.tab-btn.btn-special {
    background: rgba(136, 121, 241, 0.1);
    color: var(--c-secondary);
    border: 1.5px dashed var(--c-secondary);
}

.tab-btn.btn-special.active {
    background: var(--c-secondary);
    color: white;
    border-style: solid;
}

/* Specialization Tags */
.spec-tag {
    background: rgba(136, 121, 241, 0.15);
    color: var(--c-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* Avatars */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-secondary), var(--c-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* ============================================
      AUTH / LOGIN PAGE
      ============================================ */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at top left, var(--c-light), #f0f0f0);
}

body.dark-mode .auth-container {
    background: radial-gradient(circle at top left, var(--c-dark), #111111);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-logo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.brand-logo-img.large {
    max-height: 120px;
    margin-bottom: 1rem;
}


.n-logo.large {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    border-radius: var(--radius-md);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    right: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-with-icon input {
    padding-right: 3rem;
    text-align: right;
}

/* ============================================
      NOTIFICATIONS
      ============================================ */
.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}

.notification-bell {
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.notification-bell:hover {
    color: var(--c-primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--status-overdue);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50%;
    display: none;
    box-shadow: 0 0 0 2px var(--card-bg);
}

.notification-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
    animation: slideInFade 0.2s ease forwards;
}

.notification-dropdown.active {
    display: flex;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.2s ease;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background: rgba(252, 95, 32, 0.05);
    /* very light primary */
    border-right: 3px solid var(--c-primary);
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.notification-icon.task_assigned {
    background: var(--c-primary);
}

.notification-icon.file_uploaded {
    background: var(--c-secondary);
}

.notification-icon.status_update {
    background: var(--status-review);
}

.notification-icon.review_note {
    background: var(--status-overdue);
}

.notification-icon.general {
    background: var(--status-success);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.notification-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.65rem;
    color: #94a3b8;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
      REVIEW HISTORY TIMELINE
      ============================================ */
.review-history {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-history h4 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-item {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item::before {
    content: '';
    position: absolute;
    right: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--c-primary);
    border-radius: 50%;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-reviewer {
    font-weight: 700;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.review-decision {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.decision-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.decision-rejected,
.decision-needs_revision {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.review-notes {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.review-attachments {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--c-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: 0.2s;
}

.attachment-link:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.badge-count {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Revision Highlights */
.needs-revision-highlight {
    background: #fffbeb !important;
    border: 2px solid #fde68a !important;
    animation: gentle-pulse 2s infinite;
}

@keyframes gentle-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
}

/* ============================================
   naelium - PREMIUM LOADERS & SKELETONS
   ============================================ */

/* 1. Full Page Global Simple Loader */
#nael-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(5, 5, 8, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    color: #f5f5f5;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#nael-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#nael-loader .scene {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

#nael-loader .center-panel {
    position: relative;
    z-index: 3;
    width: min(560px, 85vw);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Clear white backdrop specifically for dark-text uploaded logos */
#nael-loader .logo {
    height: 70px;
    max-width: 250px;
    object-fit: contain;
    background: #ffffff;
    padding: 12px 28px;
    border-radius: 100px;
    display: block;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

#nael-loader .system-line {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    color: var(--text-secondary, #94a3b8);
    letter-spacing: .15em;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
}

#nael-loader .system-line::before,
#nael-loader .system-line::after {
    content: "";
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

#nael-loader .loading-label {
    display: none; /* Removed the redundant "LOADING" text since we have dots */
}

#nael-loader .progress-row {
    width: min(400px, 70vw);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

#nael-loader .progress-shell {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
}

#nael-loader .progress-fill {
    height: 100%;
    background: var(--c-primary);
    width: calc(var(--p) * 1%);
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--c-primary);
}

#nael-loader .progress-percent {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
    min-width: 40px;
    text-align: right;
}

#nael-loader .status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
}

#nael-loader .db-icon {
    display: none;
}

/* 2. Skeleton Loader (Inside Cards/Lists) */
.skeleton {
    width: 100%;
    min-height: 120px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.04) 25%, 
        rgba(0,0,0,0.08) 50%, 
        rgba(0,0,0,0.04) 75%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.03);
}

body.dark-theme .skeleton, body.dark-mode .skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.04) 25%, 
        rgba(255,255,255,0.08) 50%, 
        rgba(255,255,255,0.04) 75%);
    background-size: 400% 100%;
    border: 1px solid rgba(255,255,255,0.03);
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 3. Button Micro Spinner */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
}

.loading-dots {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 10px rgba(252,95,32,.45);
    animation: pulseDot 1s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .30s; }

@keyframes pulseDot {
    0%, 100% { transform: scale(.7); opacity: .5; }
    50% { transform: scale(1.1); opacity: 1; }
}