/* ══════════════════════════════════════════
   NexLabel Global Styles
   Minimalist Elegant — White & Black
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@600;700;800&display=swap');

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

:root {
    --white:      #ffffff;
    --off:        #f7f7f7;
    --off2:       #f0f0f0;
    --black:      #0a0a0a;
    --dark:       #1a1a1a;
    --mid:        #6b7280;
    --light:      #d1d5db;
    --lighter:    #e5e7eb;
    --lightest:   #f3f4f6;
    --border:     rgba(0,0,0,0.08);
    --border2:    rgba(0,0,0,0.05);
    --success:    #16a34a;
    --warning:    #d97706;
    --danger:     #dc2626;
    --card-bg:    #ffffff;
    --sidebar-bg: #ffffff;
    --accent:     #0a0a0a;
}

body {
    background: var(--off);
    color: var(--black);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── BUTTONS ── */
.btn {
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-success {
    background: #dcfce7;
    color: var(--success);
    border: 1px solid #bbf7d0;
}
.btn-success:hover {
    background: #bbf7d0;
}

.btn-danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}
.btn-danger:hover {
    background: #fecaca;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--mid);
}
.btn-outline:hover {
    border-color: var(--black);
    color: var(--black);
    background: var(--lightest);
}

/* ── CARDS ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

/* ── INPUT FIELDS ── */
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.input-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--black);
    font-size: 14px;
    outline: none;
    transition: border 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.input-group input:focus {
    border-color: var(--black);
}
.input-group input::placeholder {
    color: var(--light);
}

/* ── SIDEBAR ── */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    padding: 0;
    z-index: 50;
}

.sidebar-logo {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--black);
}
.sidebar-logo span { color: var(--mid); }

.sidebar-menu {
    list-style: none;
    padding: 12px 0;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--mid);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    font-size: 13px;
    font-weight: 500;
}
.sidebar-menu li a:hover {
    color: var(--black);
    background: var(--lightest);
}
.sidebar-menu li a.active {
    color: var(--black);
    background: var(--lightest);
    border-left-color: var(--black);
    font-weight: 600;
}

/* ── MAIN CONTENT ── */
.main-content {
    margin-left: 240px;
    padding: 32px 36px;
    min-height: 100vh;
    background: var(--off);
}

/* ── TOPBAR ── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.topbar h1 {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
}

/* ── STATS ROW ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}
.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stat-card .stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    display: block;
    line-height: 1;
    margin: 6px 0 4px;
    letter-spacing: -1px;
}

.stat-card .stat-label {
    color: var(--mid);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── TASK LIST ── */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}
.task-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.task-item.rejected {
    border-left: 3px solid var(--danger);
    background: #fff8f8;
}

/* ── BADGES ── */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-high     { background: #fef2f2; color: var(--danger); }
.badge-medium   { background: #fffbeb; color: var(--warning); }
.badge-low      { background: #f0fdf4; color: var(--success); }
.badge-image    { background: #f0f9ff; color: #0369a1; }
.badge-text     { background: #faf5ff; color: #7c3aed; }
.badge-video    { background: #fff7ed; color: #c2410c; }
.badge-audio    { background: #f0fdf4; color: #15803d; }
.badge-progress { background: #eff6ff; color: #1d4ed8; }
.badge-completed{ background: #f0fdf4; color: var(--success); }
.badge-review   { background: #fffbeb; color: var(--warning); }

/* ── ROLE BADGE ── */
.role-badge {
    background: var(--lightest);
    border: 1px solid var(--border);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* ── ROLE-SPECIFIC BADGE COLORS ── */
/* Owner — warm amber, commanding */
.role-badge.role-owner,
.role-badge[data-role="owner"] {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.35);
    color: #b45309;
}

/* Approver — deep indigo, authoritative */
.role-badge.role-approver,
.role-badge[data-role="approver"] {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.30);
    color: #4338ca;
}

/* Reviewer — teal, analytical */
.role-badge.role-reviewer,
.role-badge[data-role="reviewer"] {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.30);
    color: #0f766e;
}

/* Annotator — slate blue, precise */
.role-badge.role-annotator,
.role-badge[data-role="annotator"] {
    background: rgba(30, 64, 175, 0.07);
    border-color: rgba(30, 64, 175, 0.25);
    color: #1d4ed8;
}

/* Client — rose, external */
.role-badge.role-client,
.role-badge[data-role="client"] {
    background: rgba(225, 29, 72, 0.07);
    border-color: rgba(225, 29, 72, 0.25);
    color: #be123c;
}

/* ── NOTIFICATION BELL ── */
.notif-bell {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    margin-right: 12px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.notif-bell:hover { opacity: 1; }

.notif-count {
    position: absolute;
    top: -5px; right: -6px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 16px; height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ── NOTIFICATION DROPDOWN ── */
.notif-dropdown {
    position: absolute;
    top: 60px; right: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 320px;
    padding: 16px;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.notif-dropdown.show { display: block; }
.notif-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border2);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}
.notif-item:hover { background: var(--lightest); }
.notif-item:last-child { border-bottom: none; }

/* ── PROGRESS BAR ── */
.progress-bar {
    background: var(--lighter);
    border-radius: 99px;
    height: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--black);
    border-radius: 99px;
}

/* ── TABLE ── */
.projects-table {
    width: 100%;
    border-collapse: collapse;
}
.projects-table th {
    text-align: left;
    padding: 10px 16px;
    color: var(--mid);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.projects-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border2);
    font-size: 13px;
    color: var(--dark);
}
.projects-table tr:hover td {
    background: var(--lightest);
}

/* ── DELETE BUTTON ── */
.delete-btn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.delete-btn:hover {
    background: #fecaca;
}

/* ── TABS ── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--mid);
    cursor: pointer;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 4px;
}
.tab.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.tab:hover:not(.active) {
    color: var(--black);
    border-color: var(--black);
}

/* ── TEAM GRID ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s;
}
.team-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.team-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--lightest);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

/* ── SECTION TITLE ── */
.section-title-dash {
    font-size: 11px;
    font-weight: 600;
    color: var(--mid);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ── REVIEW / APPROVE ITEMS ── */
.review-item,
.approve-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}
.review-item:hover,
.approve-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review-item-header,
.approve-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-item-actions,
.approve-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.preview-box {
    background: var(--lightest);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--mid);
    margin-top: 12px;
    border-left: 3px solid var(--lighter);
}

.reject-form,
.decline-form { display: none; margin-top: 12px; }

.reject-form textarea,
.decline-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--black);
    font-size: 13px;
    resize: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border 0.2s;
}
.reject-form textarea:focus,
.decline-form textarea:focus {
    border-color: var(--danger);
}

/* ── DIVIDER ── */
.gold-line {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ── TOPBAR RIGHT ── */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 500;
}
