/* ============================================================
   Digital Obsidian & Slate Horizon — Global Design Standard
   VANILLA CSS FRAMEWORK (No Tailwind)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    --bg-main: #fafaf9;
    --bg-sidebar: #f0ede8;
    --bg-topbar: rgba(255, 255, 255, 0.92);
    --bg-surface: rgba(240, 237, 232, 0.8);
    --bg-input: rgba(0, 0, 0, 0.04);

    /* Default - Claude Orange */
    --primary: #cc785c;
    --primary-glow: rgba(204, 120, 92, 0.2);
    --primary-rgb: 204,120,92;

    --text-main: #3b3730;
    --text-muted: #706659;
    --border: rgba(0, 0, 0, 0.08);
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;

    /* Font Weights Palette */
    --fw-light: 300;
    --fw-reg: 400;
    --fw-med: 500;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    /* Layout Constants */
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.3s ease;
}

/* Default light-mode resets (Claude teması) */
body.theme-light {
    --surface-toggle-bg: rgba(0, 0, 0, 0.05);
}
body:not(.theme-light) {
    --surface-toggle-bg: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
}

/* ----------------------------------------------------------------
   Ana Yerleşim (Layout)
   ---------------------------------------------------------------- */
#app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: 72px;
    background: var(--bg-topbar);
    backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--border);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-content {
    margin-left: var(--sidebar-width);
    padding: 2.5rem;
    padding-top: calc(72px + 2.5rem);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------
   Sidebar Bileşenleri
   ---------------------------------------------------------------- */
.sidebar-logo {
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.obs-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obs-logo .material-symbols-outlined {
    color: #fff;
    font-size: 24px;
}

.obs-title {
    font-size: 14px;
    font-weight: var(--fw-black);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.obs-tagline {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    opacity: 0.95; /* Less transparent for readability */
}

/* Reports Module Styles */
.report-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 25px;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-field label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.obs-input-sm {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}

.obs-input-sm:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: 700;
}

.small {
    font-size: 11px;
}

.opacity-50 {
    opacity: 0.5;
}

.sortable {
    cursor: pointer;
    transition: 0.2s;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.sortable:after {
    content: ' \2195';
    font-size: 10px;
    opacity: 0.3;
    margin-left: 5px;
}

#sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

#sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.25rem 0.8rem 1.5rem;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nav-item .nav-chevron {
    margin-left: auto;
    font-size: 16px !important;
    opacity: 0.45;
    transition: transform 0.25s, opacity 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    transform: none;
}

.nav-item:hover .nav-chevron {
    opacity: 0.7;
}

.nav-active {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-left-color: var(--primary) !important;
    font-weight: 600;
}

.nav-active .material-symbols-outlined {
    color: var(--primary);
}

/* ----------------------------------------------------------------
   Alt Menü & Grup Navigasyon
   ---------------------------------------------------------------- */
.nav-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.nav-group-title {
    padding: 1.5rem 1.5rem 0.6rem; /* Slightly more padding */
    font-size: 11px; /* Increased from 9px */
    font-weight: 800;
    color: var(--text-muted);
    filter: brightness(1.2); /* Enhance visibility on dark bg */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-group-title .material-symbols-outlined {
    font-size: 14px;
}

/* Sub-items container */
.nav-sub-items {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 2.35rem;
    display: flex;
    flex-direction: column;
}

.nav-item.sub-item {
    margin-left: 0;
    padding: 0.65rem 1.25rem 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    border-left: none;
    border-radius: 0;
}

.nav-item.sub-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    transform: none;
}

.nav-item.sub-item.nav-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: none !important;
    font-weight: 600;
}

/* When parent nav-group-title is expanded */
.nav-group-title.expanded .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

.sidebar-collapsed .nav-group-title {
    justify-content: center;
    padding: 1.5rem 0 0.5rem;
}

.sidebar-collapsed .nav-group-title span:not(.material-symbols-outlined) {
    display: none;
}

.sidebar-collapsed .nav-item.sub-item {
    margin-left: 0;
    justify-content: center;
    padding: 0.85rem 0;
}

.sidebar-collapsed .nav-sub-items {
    border-left: none;
    margin-left: 0;
}

/* ----------------------------------------------------------------
   Topbar Bileşenleri
   ---------------------------------------------------------------- */
.topbar-title {
    font-size: 1.25rem;
    font-weight: var(--fw-black);
    color: #fff;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.pulse-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #0f172a;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.profile-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.profile-text p:first-child {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.profile-text p:last-child {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.3;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------------
   PROFESYONEL BİLEŞENLER (STANDARDIZED)
   ---------------------------------------------------------------- */
.obs-card {
    background: rgb(255 255 255 / 6%);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2.5rem;
    position: relative;
}

.obs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.obs-btn {
    height: 52px;
    padding: 0 2.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--fw-black);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.obs-btn:hover {
    background: #3b82f6;
    filter: contrast(1.1);
    transform: translateY(-1px);
}

.obs-btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.obs-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.obs-input {
    width: 100%;
    height: 48px;
    background: rgb(255 255 255 / 4%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0 1.5rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea.obs-input {
    height: auto;
    min-height: 120px;
    padding: 1.25rem 1.5rem;
    resize: none;
    line-height: 1.6;
}

.obs-input:focus {
    border-color: var(--primary);
    background: rgb(0 0 0 / 20%);

}

.obs-input::placeholder {
    color: var(--text-muted);
    opacity: 0.3;
    font-size: 13px;
}

/* PREMIUM COMBO BOX (Select) */
select.obs-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' viewBox='0 0 24 24' width='20' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

select.obs-input option {
    background: var(--bg-sidebar);
    color: var(--text-main);
    padding: 1rem;
    border: none;
}

/* SEARCH RESULTS DROPDOWN */
.search-results-floating {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    display: none;
}

.search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-item:hover {
    background: var(--primary);
    color: #fff;
}

.search-item p {
    font-size: 13px;
    font-weight: 700;
}

/* ----------------------------------------------------------------
   THEME DRAWER & PANELS
   ---------------------------------------------------------------- */
#theme-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border);
    z-index: 20000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

#theme-drawer.open {
    transform: translateX(0) !important;
}

.theme-header {
    padding: 2.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 2.5rem;
}

.theme-item {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-item.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.theme-color-preview {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* COMPANY ASSIGNMENT STYLES */
.company-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card:hover {
    transform: scale(1.01);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
}

.company-card .c-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.company-card .c-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-card .c-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

/* AVATAR STACK */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack .a-item {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 2px solid var(--bg-surface);
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: #fff;
    margin-left: -10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
}

.avatar-stack .a-item:first-child {
    margin-left: 0;
}

.avatar-stack .a-item:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.avatar-stack .a-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-stack .a-more {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.2);
}

/* TOAST BİLDİRİM */
.obs-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 99999;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    min-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.obs-toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.obs-toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.obs-toast-info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* PAGINATION */
.obs-pagination {
    display: flex;
    gap: 6px;
}

.obs-pagination .p-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.obs-pagination .p-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(37, 99, 235, 0.2);
}

.obs-pagination .p-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* TABLO STANDARDI (Fixable Structure) */
.table-panel {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--table-panel-bg, rgba(15, 23, 42, 0.4));
}

.obs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.obs-table th {
    padding: 1.5rem;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    background: var(--table-th-bg, rgba(0, 0, 0, 0.25));
    border-bottom: 1px solid var(--border);
}

.obs-table td {
    padding: 1.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--table-td-border, rgba(255, 255, 255, 0.03));
    vertical-align: middle;
    transition: background 0.2s;
    color: var(--text-main);
}

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

.obs-table tr:hover td {
    background: var(--table-row-hover, rgba(255, 255, 255, 0.02));
    cursor: pointer;
}

/* ----------------------------------------------------------------
   DRAWER & MODAL FIX (Edit Pages)
   ---------------------------------------------------------------- */
#app-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 650px;
    max-width: 90%;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

#app-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 2.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h2 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.drawer-body {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.drawer-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

/* PERMISSIONS PAGE FIX */
.obs-switch {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.obs-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: .4s;
    border-radius: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.obs-switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

input:checked+.obs-switch-slider:before {
    transform: translateX(22px);
    background: #fff;
}

/* ----------------------------------------------------------------
   Utilities & Loading
   ---------------------------------------------------------------- */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--spinner-color, rgba(255,255,255,0.08));
    border-top-color: var(--spinner-active, var(--primary));
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    #app-sidebar {
        transform: translateX(-100%);
    }

    #app-topbar,
    #page-content {
        left: 0;
        margin-left: 0;
    }
}

/* DRAWER BACKDROP (Modern Glassmorphism) */
#drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#drawer-backdrop.hidden {
    display: none;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.35s ease forwards;
}

/* ================================================================
   STATUS PILLS
   ================================================================ */
.status-pill {
    display: inline-flex;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.status-err {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.status-wait {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.25);
}

.status-ghost {
    background: rgba(148, 163, 184, 0.07);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
}

/* ================================================================
   GLOBAL MODAL (#log-detail-modal)
   ================================================================ */
#log-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#log-detail-modal.hidden {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}

.modal-inner-robust {
    position: relative;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.05em;
}

.modal-header p {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.4em;
    margin-top: 4px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.stat-card p:first-child {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.stat-card p:last-child {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
}

.modal-dual-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-content-group h4 {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.code-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    min-height: 80px;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre;
}

.emerald-text {
    color: #6ee7b7;
}

.blue-text {
    color: #93c5fd;
}

.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ================================================================
   EXTRA BUTTON VARIANTS
   ================================================================ */
.obs-btn-long {
    min-width: 160px;
    justify-content: center;
}

.active-scale {
    transition: transform 0.1s;
}

.active-scale:active {
    transform: scale(0.97);
}

/* ================================================================
   ICON SELECTOR (job_types)
   ================================================================ */
.icon-select-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    color: var(--text-muted);
}

.icon-select-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #fff;
}

.icon-select-item.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.icon-select-item .material-symbols-outlined {
    font-size: 18px;
}

/* ================================================================
   UTILITY HELPERS (non-Tailwind vanilla equivalents)
   ================================================================ */
.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-40 {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.tracking-wide {
    letter-spacing: 0.4em;
}

.flex-1 {
    flex: 1;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* Theme panel list */
.theme-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

/* ================================================================
   SIDEBAR COLLAPSE
   ================================================================ */
body.sidebar-collapsed #app-sidebar {
    width: 64px;
}

body.sidebar-collapsed #app-sidebar .nav-item span:last-child,
body.sidebar-collapsed #app-sidebar .obs-title,
body.sidebar-collapsed #app-sidebar .obs-tagline,
body.sidebar-collapsed #app-sidebar .profile-text,
body.sidebar-collapsed #app-sidebar .sidebar-logo>div:last-child {
    display: none;
}

body.sidebar-collapsed #app-sidebar .sidebar-logo {
    justify-content: center;
    padding: 1.5rem 0;
}

body.sidebar-collapsed #app-sidebar .nav-item {
    justify-content: center;
    padding: 0.75rem 0;
}

body.chat-active {
    --sidebar-width: 350px;
}

body.sidebar-collapsed {
    --sidebar-width: 64px;
}

body.sidebar-collapsed #app-sidebar .sidebar-logo,
body.sidebar-collapsed #app-sidebar .sidebar-logo div {
    display: none;
}

.sidebar-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* ================================================================
   JOB DETAIL PAGE
   ================================================================ */
.jd-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.jd-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.jd-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.jd-badge-amber {
    background: rgba(245, 158, 11, .12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, .25);
}

.jd-badge-red {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, .25);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.jd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.status-pulse-red {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: status-pulse-animation 1.5s infinite;
}

@keyframes status-pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.jd-badge-emerald {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, .25);
}

.jd-badge-blue {
    background: rgba(37, 99, 235, .12);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, .2);
}

.jd-badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

    50% {
        opacity: .5;
        transform: scale(0.8)
    }
}

.jd-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.jd-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .jd-grid {
        grid-template-columns: 1fr;
    }
}

.jd-card {
    background: var(--jd-card-bg, rgba(19, 27, 46, 0.8));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
}

.jd-info-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.jd-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.jd-info-row {
    margin-bottom: 1rem;
}

.jd-card-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.jd-card-title .material-symbols-outlined {
    color: var(--primary);
    font-size: 18px;
}

.jd-prose {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.jd-prose h4 {
    color: #fff;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    font-size: 0.875rem;
}

.jd-prose ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.jd-prose li {
    margin-bottom: 6px;
}

/* Message bubbles */
.jd-msg {
    display: flex;
    gap: 0.875rem;
}

.jd-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
    overflow: hidden;
}

.jd-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jd-msg-body {
    flex: 1;
}

.jd-msg-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jd-msg-name .jd-badge {
    font-size: 9px;
    padding: 2px 7px;
}

.jd-msg-time {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

.jd-msg-bubble {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 0.875rem 1.125rem;
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.6;
    margin-top: 0.375rem;
}

.jd-msg-bubble.jd-msg-internal {
    background: #e2e8f0;
    border-color: #cbd5e1;
    border-left: 4px solid var(--primary);
    color: #0f172a;
}

.jd-msg-bubble.jd-msg-internal .jd-msg-name {
    color: #0f172a;
}

.jd-msg-bubble .att-file-chip {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

/* Reply input */
.jd-reply-box {
    background: rgba(22, 32, 50, 0.8);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.jd-reply-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13.5px;
    resize: none;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.6;
}

.jd-reply-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Right sidebar info rows */
.jd-info-row {
    margin-bottom: 1.25rem;
}

.jd-info-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 5px;
}

.jd-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
}

.jd-info-value .material-symbols-outlined {
    color: var(--primary);
    font-size: 17px;
}

.jd-assignee-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
}

.jd-assignee-row:last-child {
    border-bottom: none;
}

.jd-add-user-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 1rem;
}

.jd-add-user-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Time tracking table */
.jd-time-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.jd-time-table th {
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.jd-time-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
}

.jd-time-table td:last-child {
    color: var(--text-muted);
}

.jd-time-total {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jd-time-total span:first-child {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jd-time-total span:last-child {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
}

/* Border left primary accent */
.border-l-primary {
    border-left: 4px solid var(--primary);
}

/* ================================================================
   QUILL RICH TEXT EDITOR — DARK THEME OVERRIDES
   ================================================================ */
.ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 8px 12px;
}

.ql-container.ql-snow {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    font-family: 'Inter', sans-serif;
}

.ql-editor {
    color: var(--text-main);
    min-height: 100px;
    max-height: 260px;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 16px;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted);
    opacity: 0.5;
    font-style: normal;
    font-size: 13px;
}

.ql-editor p,
.ql-editor li {
    color: var(--text-main);
}

.ql-editor a {
    color: var(--primary);
}

.ql-toolbar .ql-stroke {
    stroke: var(--text-muted) !important;
    transition: stroke 0.15s;
}

.ql-toolbar .ql-fill {
    fill: var(--text-muted) !important;
    transition: fill 0.15s;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary) !important;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary) !important;
}

.ql-toolbar button:hover,
.ql-toolbar button.ql-active {
    color: var(--primary) !important;
}

.ql-toolbar .ql-picker-label {
    color: var(--text-muted);
}

.ql-snow .ql-picker-options {
    background: var(--bg-sidebar);
    border: 1px solid var(--border) !important;
    border-radius: 10px;
}

.ql-snow .ql-tooltip {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.ql-snow .ql-tooltip input {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 6px;
}

/* ================================================================
   TASK ITEMS
   ================================================================ */
.jd-task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: default;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    border-right: 8px solid transparent;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 4px;
}

.jd-task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.jd-task-item.done {
    opacity: 0.7;
}

.jd-task-item.done .jd-task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    opacity: 0.2;
    font-size: 18px;
    transition: opacity 0.2s;
}

.jd-task-item:hover .drag-handle {
    opacity: 0.6;
}

.jd-task-count {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
}

.jd-task-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    cursor: pointer;
}

.jd-task-item.done .jd-task-check {
    background: var(--primary);
    border-color: var(--primary);
}

.jd-task-check .material-symbols-outlined {
    font-size: 14px;
    color: #fff;
}

.jd-task-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.jd-task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jd-task-done-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.done-at-text {
    font-size: 9px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 3px;
}

.jd-task-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.jd-task-item:hover .jd-task-actions {
    opacity: 1;
}

.task-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s;
}

.task-action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.task-action-btn.delete:hover {
    background: #ef4444;
    color: #fff;
}

.task-colors {
    display: flex;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.task-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.task-color-dot:hover {
    transform: scale(1.3);
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--primary-glow) !important;
}

.jd-task-progress {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    margin: 0.75rem 0 1rem;
    overflow: hidden;
}

.jd-task-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ================================================================
   ATTACHMENT PREVIEWS
   ================================================================ */
.att-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.75rem;
}

.att-img-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.att-img-thumb:hover {
    transform: scale(1.04);
    border-color: var(--primary);
}

.att-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.att-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.att-file-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.att-pending-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.att-pending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.att-pending-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.att-pending-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    max-width: 160px;
}

.att-drop-zone {
    border: 2px dashed var(--primary);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    display: none;
    margin-top: 0.75rem;
}

.att-drop-zone.active {
    display: block;
}

/* ================================================================
   AVATAR UPLOAD (drawer)
   ================================================================ */
.avatar-upload-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
}

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

.avatar-upload-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-ring .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.avatar-upload-ring:hover .overlay {
    opacity: 1;
}

/* ================================================================
   MEDIA / AVATAR POPUP
   ================================================================ */
#media-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.15s ease;
}

#media-popup .mp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

#media-popup img {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Job tab buttons (list filters + time tracking tabs) ────────── */
.job-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    opacity: 0.4;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.job-tab-btn:hover {
    opacity: 1;
    color: var(--surface-text, #fff);
}

.job-tab-btn.active {
    background: var(--primary);
    color: #fff;
    opacity: 1;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ── Drawer detail editor (Quill) ──────────────────────────────── */
#drawer-detail-wrapper .ql-toolbar {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

#drawer-detail-wrapper .ql-container {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 140px;
    background: rgba(255, 255, 255, .02);
}

#drawer-detail-wrapper .ql-editor {
    min-height: 140px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

#drawer-detail-wrapper .ql-editor.ql-blank::before {
    color: var(--text-muted);
    opacity: .5;
    font-style: normal;
}

#drawer-detail-wrapper.drop-hover {
    box-shadow: 0 0 0 2px var(--primary);
    border-radius: 12px;
}

#drawer-detail-wrapper .ql-toolbar .ql-stroke {
    stroke: var(--text-muted);
}

#drawer-detail-wrapper .ql-toolbar .ql-fill {
    fill: var(--text-muted);
}

#drawer-detail-wrapper .ql-toolbar button:hover .ql-stroke,
#drawer-detail-wrapper .ql-toolbar .ql-active .ql-stroke {
    stroke: var(--primary);
}

#drawer-detail-wrapper .ql-toolbar button:hover .ql-fill,
#drawer-detail-wrapper .ql-toolbar .ql-active .ql-fill {
    fill: var(--primary);
}

#drawer-detail-wrapper .ql-toolbar .ql-picker-label {
    color: var(--text-muted);
}

#drawer-detail-atts {
    min-height: 0;
}

/* ================================================================
   JOB MESSAGE ACTIONS & DONE STATE
   ================================================================ */
.jd-msg-body,
.jd-msg-internal {
    position: relative;
}

.jd-msg-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.jd-msg:hover .jd-msg-actions,
.jd-msg-internal:hover .jd-msg-actions {
    opacity: 1;
}

.msg-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.msg-action-btn.active {
    color: #25d366 !important;
    background: rgba(37, 211, 102, 0.15) !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
}

.msg-action-btn .material-symbols-outlined {
    font-size: 16px;
}

/* Done state for message bubble */
.jd-msg-bubble.jd-msg-done {
    background: rgba(37, 211, 102, 0.12) !important;
    border: 1px solid rgba(37, 211, 102, 0.25) !important;
}

.jd-msg-bubble.jd-msg-done .msg-text-content {
    color: #e0f2f1;
}

.jd-msg-done .msg-action-btn.active {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.2);
}

/* ================================================================
   OBS MODAL (Slate Horizon Style)
   ================================================================ */
.obs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.obs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.obs-modal-content {
    position: relative;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

.obs-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.obs-modal-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.15em;
    font-style: italic;
}

.obs-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obs-modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.obs-modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ----------------------------------------------------------------
   İş Detayı - Domain Dropdown
   ---------------------------------------------------------------- */
.jd-domain-menu-wrapper:hover .jd-dropdown-menu {
    display: block !important;
}

.jd-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    /* Button height */
    z-index: 1000;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    min-width: 160px;
    padding: 5px 0;
}

.jd-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.jd-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.jd-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.jd-dropdown-menu.show {
    display: block !important;
    animation: dropdown-fade-in 0.2s ease-out;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
    position: relative;
    text-transform: none !important;
}

.notification-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.notification-item.unread {
    background: rgba(var(--primary-rgb), 0.02);
}

.ni-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ni-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ni-avatar .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.5;
}

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

.ni-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

.unread .ni-text {
    font-weight: 800;
    opacity: 1;
}

.ni-time {
    font-size: 9px;
    opacity: 0.4;
    font-weight: 700;
    text-transform: uppercase;
}

.ni-job {
    font-size: 9px;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.8;
}

.ni-dot {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================================
   TOM SELECT (AUTOCOMPLETE) STYLES
   ============================================================ */
.ts-wrapper.obs-input {
    padding: 0 !important;
    background: rgb(255 255 255 / 4%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: auto !important;
    min-height: 48px !important;
}

.ts-wrapper.obs-input.focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow) !important;
}

.ts-control {
    background: transparent !important;
    border: none !important;
    padding: 0 1.5rem !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
}

.ts-control input {
    color: #fff !important;
    font-size: 0.95rem !important;
}

.ts-dropdown {
    background: var(--bg-sidebar) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    margin-top: 5px !important;
    color: #fff !important;
    z-index: 20000 !important;
}

.ts-dropdown .option {
    padding: 12px 1.5rem !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    transition: all 0.2s !important;
}

.ts-dropdown .option.active {
    background: var(--primary) !important;
    color: #fff !important;
}

.ts-dropdown .option:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.ts-wrapper.single .ts-control::after {
    border-color: var(--text-muted) transparent transparent transparent !important;
    right: 1.5rem !important;
}

/* REPORTS MODULE STYLES */
.reports-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reports-tabs {
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: fit-content;
}

.reports-tabs .tab-item {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.reports-tabs .tab-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.report-filters-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.yearly-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 8px;
}

.yearly-cell.reached {
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
}

.indicator.up {
    color: #10b981;
}

.indicator.down {
    color: #ef4444;
}

.status-open {
    color: #3b82f6;
}

.status-closed {
    color: #10b981;
}

.status-archived {
    color: #94a3b8;
}

/* ================================================================
   LIGHT THEME (Snow Obsidian) — body.theme-light overrides
   ================================================================ */

/* ── Temel layout ── */
body.theme-light {
    color: var(--text-main);
}
body.theme-light #app-sidebar {
    box-shadow: 2px 0 16px rgba(0,0,0,0.06);
    border-right-color: rgba(0,0,0,0.08);
}
body.theme-light #app-topbar {
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border-bottom-color: rgba(0,0,0,0.08);
}

/* ── Sidebar genel ── */
body.theme-light #app-sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
}
body.theme-light .sidebar-logo {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.07) 0%, transparent 70%);
}
body.theme-light .obs-logo {
    background: rgba(var(--primary-rgb),0.1);
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb),0.15);
}

/* ── Sidebar logo & başlık ── */
body.theme-light .obs-logo .material-symbols-outlined { color: var(--primary); }
body.theme-light .obs-title { color: #0f172a; }
body.theme-light .obs-tagline { color: #94a3b8; }

/* ── Sidebar nav items ── */
body.theme-light .nav-item { color: #64748b; border-left-color: transparent; font-weight: 500; }
body.theme-light .nav-item .material-symbols-outlined { color: #94a3b8; }
body.theme-light .nav-item:hover { background: rgba(var(--primary-rgb),0.05); color: #1e293b; }
body.theme-light .nav-item:hover .material-symbols-outlined { color: var(--primary); }
body.theme-light .nav-item.nav-active { background: rgba(var(--primary-rgb),0.09) !important; color: var(--primary) !important; border-left-color: var(--primary) !important; font-weight: 700; }
body.theme-light .nav-item.nav-active .material-symbols-outlined { color: var(--primary); }
body.theme-light .nav-sub-items { border-left: 2px solid rgba(var(--primary-rgb),0.18); margin-left: 2.35rem; }
body.theme-light .nav-item.sub-item { color: #64748b; font-weight: 400; }
body.theme-light .nav-item.sub-item:hover { background: rgba(var(--primary-rgb),0.05); color: #1e293b; }
body.theme-light .nav-item.sub-item.nav-active { color: var(--primary) !important; background: rgba(var(--primary-rgb),0.07) !important; font-weight: 600; }
body.theme-light .nav-chevron { color: #cbd5e1; }
body.theme-light .nav-group-title { color: #64748b; }
body.theme-light .nav-group-title .material-symbols-outlined { color: #94a3b8; }
body.theme-light .nav-group-title:hover .material-symbols-outlined { color: var(--primary); }
body.theme-light .nav-group-title.expanded { color: #1e293b; }
body.theme-light .nav-group-title.expanded .nav-chevron { color: var(--primary); }

/* ── Toggle buttons (Menü/Chat) ── */
body.theme-light .sidebar-toggle-group { background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); }
body.theme-light .s-toggle-btn { color: #94a3b8; }
body.theme-light .s-toggle-btn:hover { color: #475569; background: rgba(0,0,0,0.04); }
body.theme-light .s-toggle-btn.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.3); }

/* ── Topbar ── */
body.theme-light .topbar-title { color: #0f172a; }
body.theme-light .icon-btn { color: #475569; }
body.theme-light .icon-btn:hover { background: rgba(0,0,0,0.05); color: #0f172a; }
body.theme-light .sidebar-toggle-btn { border-color: rgba(0,0,0,0.1); color: #64748b; }
body.theme-light .sidebar-toggle-btn:hover { background: rgba(0,0,0,0.05); color: #0f172a; }
body.theme-light .profile-text p:first-child { color: #0f172a; }
body.theme-light .profile-text p:last-child { color: #64748b; }

/* ── Kartlar ── */
body.theme-light .obs-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
body.theme-light .obs-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* ── Input ── */
body.theme-light .obs-input {
    background: #f8fafc;
    border-color: rgba(0,0,0,0.12);
    color: #0f172a;
}
body.theme-light .obs-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1);
}
body.theme-light .obs-input::placeholder { color: #94a3b8; }
body.theme-light select.obs-input option { background: #fff; color: #0f172a; }

/* ── Butonlar ── */
body.theme-light .obs-btn-ghost {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #475569;
}
body.theme-light .obs-btn-ghost:hover {
    background: rgba(0,0,0,0.08);
    color: #0f172a;
}

/* ── Tablo ── */
body.theme-light .obs-table thead tr { background: rgba(0,0,0,0.03); }
body.theme-light .obs-table th { color: #64748b; border-bottom-color: rgba(0,0,0,0.08); }
body.theme-light .obs-table td { border-bottom-color: rgba(0,0,0,0.05); color: #334155; }
body.theme-light .obs-table tbody tr:hover { background: rgba(0,0,0,0.025); }

/* ── Modal ── */
body.theme-light .modal-window,
body.theme-light .modal-inner-robust { background: #ffffff !important; border-color: rgba(0,0,0,0.1) !important; box-shadow: 0 25px 60px rgba(0,0,0,0.15) !important; }
body.theme-light .modal-header { border-bottom-color: rgba(0,0,0,0.08); }
body.theme-light .modal-footer { border-top-color: rgba(0,0,0,0.08); }
body.theme-light .modal-backdrop { background: rgba(15,23,42,0.3); }

/* ── Drawer ── */
body.theme-light #app-drawer { background: #ffffff; border-left-color: rgba(0,0,0,0.1); }
body.theme-light .drawer-header { border-bottom-color: rgba(0,0,0,0.08); }
body.theme-light .drawer-footer { border-top-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); }
body.theme-light #drawer-title { color: #0f172a; }
body.theme-light #theme-drawer { background: #ffffff; border-left-color: rgba(0,0,0,0.1); }
body.theme-light .theme-header { border-bottom-color: rgba(0,0,0,0.08); }

/* ── Loading spinner ── */
body.theme-light .loading-spinner {
    border-color: rgba(0,0,0,0.1);
    border-top-color: var(--primary);
}

/* ── Status pilleri ── */
body.theme-light .status-pill { border: 1px solid rgba(0,0,0,0.1); }

/* ── Tab/Filter bar ── */
body.theme-light .filter-tab-group { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.theme-light .filter-tab { color: #64748b; }
body.theme-light .filter-tab.active { background: var(--primary); color: #fff; }
body.theme-light .filter-tab:hover:not(.active) { color: #0f172a; background: rgba(0,0,0,0.04); }

/* ── Toast ── */
body.theme-light .obs-toast { background: #ffffff; border-color: rgba(0,0,0,0.1); color: #0f172a; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* ── Section başlıklar / tagline ── */
body.theme-light h2, body.theme-light h3, body.theme-light h4 { color: var(--text-main); }
body.theme-light p { color: var(--text-main); }
body.theme-light label { color: var(--text-muted); }
body.theme-light small { color: var(--text-muted); }

/* ── Dropdown ── */
body.theme-light .jd-dropdown-menu { background: #ffffff; border-color: rgba(0,0,0,0.1); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
body.theme-light .jd-dropdown-menu * { color: #334155; }

/* ── Profile avatar ── */
body.theme-light .profile-avatar { background: rgba(var(--primary-rgb),0.1); color: var(--primary); border-color: rgba(var(--primary-rgb),0.2); }

/* ── Profil grubu ── */
body.theme-light .profile-group { border-color: rgba(0,0,0,0.08); }
body.theme-light .profile-group:hover { background: rgba(0,0,0,0.04); }

/* ── Backdrop (drawer) ── */
body.theme-light #drawer-backdrop { background: rgba(15,23,42,0.25); }

/* ── Jobs tab bar & table ── */
body.theme-light #jobs-view-tabs {
    background: rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.06);
}
body.theme-light .job-tab-btn { color: #64748b; opacity: 0.7; }
body.theme-light .job-tab-btn:hover { color: #1e293b; opacity: 1; background: rgba(0,0,0,0.04); }
body.theme-light .job-tab-btn.active { background: var(--primary); color: #fff; opacity: 1; }
body.theme-light .table-panel { border-radius: 12px; border-color: rgba(0,0,0,0.08); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
body.theme-light .obs-table td { color: #334155; }
body.theme-light .obs-table th { color: #94a3b8; }

/* ── Job detail card ── */
body.theme-light .jd-card { background: #ffffff; border-color: rgba(0,0,0,0.08); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
body.theme-light .jd-card-title { color: #94a3b8; }
body.theme-light .jd-info-label { color: #94a3b8; }
body.theme-light .jd-info-value { color: #0f172a; }
body.theme-light .jd-msg-bubble { background: #f8fafc; border-color: rgba(0,0,0,0.07); }
body.theme-light .jd-msg-name { color: #1e293b; }
body.theme-light .jd-msg-time { color: #94a3b8; }
body.theme-light .msg-text-content { color: #334155; }
body.theme-light .jd-prose { color: #475569; }
body.theme-light .jd-prose h4 { color: #0f172a; }

/* ── Theme drawer shadow ── */
body.theme-light #theme-drawer { box-shadow: -4px 0 24px rgba(0,0,0,0.08); }
body.theme-light #app-drawer { box-shadow: -4px 0 24px rgba(0,0,0,0.08); }

/* ── Light tema: obs-table td metin rengi ── */
body.theme-light .obs-table td { color: #1e293b; }
body.theme-light .obs-table td * { color: inherit; }

/* obs-card içindeki başlıklar */
body.theme-light .obs-card h1,
body.theme-light .obs-card h2,
body.theme-light .obs-card h3,
body.theme-light .obs-card h4 { color: #0f172a; }

/* ── Light tema: jd domain & assignee ── */
body.theme-light .jd-assignee-row { border-bottom-color: rgba(0,0,0,0.06); }
body.theme-light .jd-add-user-btn { background: rgba(var(--primary-rgb),0.06); border-color: rgba(var(--primary-rgb),0.15); color: var(--primary); }
body.theme-light .jd-add-user-btn:hover { background: rgba(var(--primary-rgb),0.1); }
body.theme-light .jd-domain-menu-wrapper .jd-dropdown-menu { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
body.theme-light .jd-domain-menu-wrapper .jd-dropdown-menu a { color: #334155; }
body.theme-light .jd-domain-menu-wrapper .jd-dropdown-menu a:hover { background: rgba(0,0,0,0.04); }

/* domain satırı bg */
body.theme-light .jd-card div[style*="rgba(255,255,255,0.02)"] {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.07) !important;
}

/* Avatar Upload Widget */
.avatar-upload-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.02);
}

.avatar-upload-ring:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: scale(1.05);
}

.avatar-upload-ring .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
}

.avatar-upload-ring:hover .overlay {
    opacity: 1;
}

#p-av-ring img {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Notifications Delete Icon */
.notification-item { position: relative; cursor: pointer; }
.notification-item .ni-delete {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.notification-item:hover .ni-delete {
    opacity: 1;
}
.notification-item .ni-delete:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.notification-item .ni-delete .material-symbols-outlined {
    font-size: 16px;
}

/* Sessions Table Styles */
.sessions-table-container {
    background: var(--table-panel-bg);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.sessions-table { width: 100%; border-collapse: collapse; }
.sessions-table th {
    background: var(--table-th-bg);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.sessions-table td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--table-td-border);
    font-size: 13px;
    color: var(--text-main);
}
.sessions-table tr:hover td {
    background: var(--table-row-hover);
}
