/* Monday.com V20 Design System & Fixes */
/* theme.css */

:root {
    /* Kurumsal marka rengi — KurumProfili.Marka_Renk_Ana/Ikincil'den index.html
       route'unda <style> ile override edilir (firma-bazlı marka; varsayılan TÜMOSAN kırmızı). */
    --sp-brand: #e30613;
    --sp-brand-2: #b71c1c;
    --primary-color: #0073ea;
    /* Monday Blue */
    --success-color: #00c875;
    /* Monday Green */
    --warning-color: #fdab3d;
    /* Monday Orange */
    --danger-color: #e2445c;
    /* Monday Red */
    --dark-color: #323338;
    /* Text */
    --light-gray: #f5f6f8;
    /* Background */
    --border-color: #d0d4e4;
    /* Borders */
    --purple-color: #a25ddc;
    --surface-white: #ffffff;
    --font-main: 'Roboto', 'Inter', sans-serif;

    /* Layout Variables */
    --header-height: 50px;
    --sidebar-collapsed: 60px;
    --sidebar-expanded: 260px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--light-gray);
    color: var(--dark-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent body scroll */
}

/* --- HEADER --- */
.app-header {
    height: var(--header-height);
    background: var(--sp-brand);
    /* Tümosan Red */
    border-bottom: 1px solid var(--sp-brand-2);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    z-index: 2000;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    /* 2026-08-08: uzun kurum adı çakışma kapısı — flex öğesi varsayılan
       min-width:auto ile içeriğinin altına DARALAMAZ; o yüzden ad kutuyu
       aşıp "Stratejik Plan" ayracının üstüne biniyordu. Bkz. index-chrome.css
       .sp-brand-ad / .sp-brand-divider. */
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
}

/* --- MAIN LAYOUT WRAPPER --- */
.app-body {
    display: flex;
    flex: 1;
    /* Takes remaining height */
    overflow: hidden;
    position: relative;
    height: calc(100vh - var(--header-height));
}

/* --- SIDEBAR (COLLAPSIBLE) --- */
.sidebar {
    width: var(--sidebar-collapsed);
    background: var(--surface-white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1500;
    /* Above content */
    overflow-x: hidden;
    overflow-y: auto; /* Enable vertical scroll for many items */
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

/* Sidebar Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #d0d4e4;
    border-radius: 4px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
    background: #b0b4c4;
}

/* Hover State */
.sidebar:hover {
    width: var(--sidebar-expanded);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

/* Nav Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0;
    /* Padding inside link */
    cursor: pointer;
    color: #676879;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    min-height: 48px;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
    position: relative;
}

.nav-item:hover {
    background: #eef3ff;
    color: var(--primary-color);
    transform: translateX(3px);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.nav-item:active {
    background: #dce6f7;
    transform: translateX(1px) scale(0.98);
    transition-duration: 0.06s;
}

.nav-item.active {
    background: #e5f4ff;
    color: var(--primary-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

/* Icon & Text Separation */
.nav-item .icon {
    width: var(--sidebar-collapsed);
    /* 60px */
    text-align: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-item .text {
    opacity: 0;
    line-height: 1;
    transition: opacity 0.2s ease-in-out;
    padding-left: 10px;
}

.sidebar:hover .nav-item .text {
    opacity: 1;
    transition-delay: 0.1s;
}

/* Admin Section */
.admin-section {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.admin-section small {
    display: none;
    padding-left: 20px;
    margin-bottom: 5px;
    color: #999;
}

.sidebar:hover .admin-section small {
    display: block;
}

/* Nav Group Title */
.nav-group-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px 5px 20px;
    margin-top: 10px;
    display: none;
    white-space: nowrap;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    user-select: none;
}

.nav-group-title:hover {
    color: #64748b;
}

.nav-group-arrow {
    font-size: 9px;
    display: inline-block;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-group-title.open .nav-group-arrow {
    transform: rotate(90deg);
}

.nav-group-items {
    overflow: hidden;
}

.sidebar:hover .nav-group-title {
    display: flex;
}

/* --- MAIN CONTENT AREA --- */
.main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Manage scroll internally in containers */
    background: var(--light-gray);
    position: relative;
}

/* View Containers */
.view-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Scroll here */
    padding: 24px;
    box-sizing: border-box;
    display: none;
    /* Hidden by default */
}

/* Special Case: Org View (Split Layout) */
.view-container.split-view {
    padding: 0;
    /* No padding for split wrapper */
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.org-pane {
    width: 300px;
    background: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px;
    flex-shrink: 0;
}

.board-pane {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}


/* --- COMPONENTS & CARDS --- */

/* Board Container */
.board-container {
    background: transparent;
    /* Changed from white to transparent to let cards float */
    box-shadow: none;
    /* Remove container shadow */
    min-height: 200px;
}

/* Monday.com Card Styling (Restored) */
.monday-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.monday-card {
    background: white;
    border: 1px solid #e6e9ef;
    /* Lighter border */
    border-left-width: 6px;
    /* Thick colored left border */
    border-radius: 8px;
    /* Smooth corners */
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    /* Subtle initial shadow */
    position: relative;
    margin-bottom: 2px;
}

.monday-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px) scale(1.005);
    border-color: #c0c8e0;
    z-index: 10;
}

.monday-card:active {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(0px) scale(0.995);
    transition-duration: 0.06s;
}

.card-code {
    font-size: 11px;
    color: #676879;
    font-weight: 500;
    width: 60px;
    flex-shrink: 0;
}

.card-title {
    flex: 1;
    font-weight: 500;
    color: #323338;
    margin: 0 15px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.status-pill {
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    /* Standard width for alignment */
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.date-badge {
    background: #f5f6f8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #676879;
    border: 1px solid #eee;
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #eee;
    transition: box-shadow 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Side Panel (Restored) */
.side-panel {
    top: 0;
    right: -650px;
    /* Hidden state */
    width: 650px;
    /* Wider panel */
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: fixed;
}

.side-panel.open {
    right: 0;
}

.side-panel.wide {
    width: 1200px;
    /* Wider mode for Gantt */
    max-width: 90vw;
}

/* v601cd-r42 — SidePanel açıkken AgentNotificationBell ve diğer sağ-üst fixed widget'lar
   SidePanel'in soluna kayar; close butonunun üzerini örtmesin.
   650px = SidePanel genişliği, 16px = orijinal kenar boşluğu, +10px güvenlik. */
body.sp-open #agt-bell-host {
    right: 676px !important;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
body.sp-open .side-panel.wide ~ #agt-bell-host,
body.sp-open #agt-bell-host.wide-shift {
    right: calc(min(1200px, 90vw) + 26px) !important;
}
/* Mobilde SidePanel zaten ekranı kaplayabiliyor; bell zaten bottom-right */
@media (max-width: 767px) {
    body.sp-open #agt-bell-host { right: 16px !important; }
}

.sp-header {
    padding: 24px 32px;
    border-bottom: 1px solid #d0d4e4;
    background: #fcfcfd;
}

.sp-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #323338;
}

/* Premium Segmented Control Tabs */
.sp-tabs-container {
    padding: 0 24px;
    margin-top: 16px;
}

.sp-tabs {
    display: inline-flex;
    background: #f1f3f5;
    /* Light gray trough */
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #e6e9ef;
    gap: 4px;
    /* Small gap between tabs */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);

    /* Horizontal Scroll for Mobile */
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-tabs::-webkit-scrollbar {
    display: none;
}

.sp-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #676879;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.sp-tab:hover {
    color: #323338;
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sp-tab:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition-duration: 0.06s;
}

.sp-tab.active {
    background-color: white;
    color: var(--primary-color);
    /* Brand Blue */
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
    /* Floating effect */
    border-color: rgba(0, 0, 0, 0.02);
    transform: translateY(0);
}

.sp-tab.active svg path {
    fill: var(--primary-color);
}

.sp-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #f7f9fa;
    /* Slight off-white bg for content */
}

/* Side Panel Fields */
.sp-field {
    background: white;
    border: 1px solid #e6e9ef;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-label {
    font-size: 12px;
    font-weight: 600;
    color: #676879;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sp-value {
    font-size: 14px;
    color: #323338;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-footer {
    padding: 20px 32px;
    border-top: 1px solid #d0d4e4;
    background: white;
    display: flex;
    gap: 12px;
}

/* ================================================================
   GLOBAL BUTTON SYSTEM — Professional Effects & Double-Click Guard
   ================================================================ */

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM BUTTON INTERACTION SYSTEM
   - Hover: lift + glow + brightness
   - Active: inset shadow (pressed/embedded feel) + scale-down
   - Uses spring-like cubic-bezier for natural bounce
   ═══════════════════════════════════════════════════════════════════ */

/* Base transition for ALL clickable buttons */
button,
.btn-action-blue,
.btn-action-green,
.btn-action-red,
input[type="submit"],
.btn-primary,
.btn-info,
.btn-success,
.btn-view,
.btn-update,
.btn-realize,
.btn-approve,
.btn-comment {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.18s ease,
                background-color 0.2s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Hover — lift + outer glow + brightness boost */
button:not(:disabled):not(.btn-guard-busy):hover,
.btn-action-blue:not(:disabled):not(.btn-guard-busy):hover,
.btn-action-green:not(:disabled):not(.btn-guard-busy):hover,
.btn-action-red:not(:disabled):not(.btn-guard-busy):hover,
input[type="submit"]:not(:disabled):not(.btn-guard-busy):hover {
    filter: brightness(1.1) saturate(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-2px) scale(1.02);
}

/* Active (click) — INSET pressed/embedded effect */
button:not(:disabled):not(.btn-guard-busy):active,
.btn-action-blue:not(:disabled):not(.btn-guard-busy):active,
.btn-action-green:not(:disabled):not(.btn-guard-busy):active,
.btn-action-red:not(:disabled):not(.btn-guard-busy):active,
input[type="submit"]:not(:disabled):not(.btn-guard-busy):active {
    filter: brightness(0.88) saturate(1.15);
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.25), inset 0 1px 3px rgba(0,0,0,0.15), 0 0 0 rgba(0,0,0,0);
    transform: translateY(1px) scale(0.96);
    transition: transform 0.06s ease-out, box-shadow 0.06s ease-out, filter 0.06s ease-out;
}

/* Color-specific hover glow (subtle brand-color halo) */
.btn-action-blue:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(0,115,234,0.3), 0 2px 6px rgba(0,115,234,0.15);
}
.btn-action-green:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(0,200,117,0.3), 0 2px 6px rgba(0,200,117,0.15);
}
.btn-action-red:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(226,68,92,0.3), 0 2px 6px rgba(226,68,92,0.15);
}

/* Color-specific active inset */
.btn-action-blue:not(:disabled):active {
    box-shadow: inset 0 3px 8px rgba(0,50,120,0.35), inset 0 1px 3px rgba(0,0,0,0.2);
}
.btn-action-green:not(:disabled):active {
    box-shadow: inset 0 3px 8px rgba(0,100,50,0.35), inset 0 1px 3px rgba(0,0,0,0.2);
}
.btn-action-red:not(:disabled):active {
    box-shadow: inset 0 3px 8px rgba(120,20,30,0.35), inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Disabled / Busy state */
button:disabled,
button.btn-guard-busy,
.btn-action-blue:disabled,
.btn-action-green:disabled,
.btn-action-red:disabled,
.btn-guard-busy {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.3);
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner animation for busy buttons */
.btn-guard-busy::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Ripple effect on click — Material Design inspired */
@keyframes btnRipple {
    0% { transform: scale(0); opacity: 0.5; }
    50% { opacity: 0.3; }
    100% { transform: scale(4); opacity: 0; }
}

.btn-ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    width: 40px;
    height: 40px;
    pointer-events: none;
    animation: btnRipple 0.45s cubic-bezier(0, 0, 0.2, 1) forwards;
}

/* Buttons */
.btn-action-blue,
.btn-action-green,
.btn-action-red {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    color: white;
}

.btn-action-blue {
    background: #0073ea;
}

.btn-action-green {
    background: #00c875;
}

.btn-action-red {
    background: #e2445c;
}


/* Timeline (Logs) */
.timeline-container {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
}

.timeline-dot.gray {
    background: #ccc;
}

.timeline-dot.green {
    background: #00c875;
}

.timeline-dot.red {
    background: #e2445c;
}

.timeline-dot.blue {
    background: #0073ea;
}

.timeline-dot.orange {
    background: #fdab3d;
}

.timeline-card {
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #676879;
}

.timeline-actor {
    font-weight: 600;
    color: #323338;
}

.timeline-body {
    font-size: 13px;
    color: #323338;
    line-height: 1.5;
}

.timeline-meta {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #999;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #ccc;
    text-align: center;
}

/* Urgent List Cards (Moved to Root Level) */
.urgent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding-bottom: 20px;
}

.urgent-card {
    background: white;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
    position: relative;
    border-left: 4px solid #e2445c;
    /* Default Red for Urgent */
}

.urgent-card:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.urgent-card:active {
    transform: translateY(0px) scale(0.995);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
    transition-duration: 0.06s;
}

.urgent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #676879;
}

.urgent-title {
    font-size: 14px;
    font-weight: 500;
    color: #323338;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    /* Fixed height for consistency */
}

.urgent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f5f6f8;
}

.wait-badge {
    background: #fff0f3;
    color: #e2445c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Red Dot Button for Link */
.qdms-dot-btn {
    width: 24px;
    height: 24px;
    background: #e2445c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(226, 68, 92, 0.4);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.qdms-dot-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(226, 68, 92, 0.5);
}

.qdms-dot-btn:active {
    transform: scale(0.85);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transition-duration: 0.06s;
}

/* --- LOGIN SCREEN (PREMIUM) --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 2026-07-27: giriş ekranı arka planı GÖMÜLÜ koyu kırmızıydı (#a71d2a→#3a0a0e) —
       kurum markası değişse bile kırmızı kalıyordu (beyaz-etiket kaçağı; Yüksel:
       "kurumsal rengi ile değişmeli"). Artık --sp-brand'ten türetilir.
       Önce düz renk = color-mix desteklemeyen tarayıcıda da marka rengi görünür. */
    background: var(--sp-brand-2, #3a0a0e);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--sp-brand) 72%, #000) 0%,
        color-mix(in srgb, var(--sp-brand) 22%, #000) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.login-logo {
    width: 200px;
    margin: 0 auto 30px;
    filter: brightness(0) invert(1);
}

.login-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-input-group {
    position: relative;
    text-align: left;
}

.login-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 15px 12px 45px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sp-brand);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.2);
}

.login-btn {
    background: var(--sp-brand);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, filter 0.18s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: #ff1a1a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px -8px rgba(227, 6, 19, 0.5), 0 4px 10px rgba(227, 6, 19, 0.2);
    filter: brightness(1.1);
}

.login-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: inset 0 3px 8px rgba(100, 0, 0, 0.3), 0 0 0 rgba(0,0,0,0);
    filter: brightness(0.9);
    transition-duration: 0.06s;
}

.login-error {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 15px;
    display: none;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.nav-item[data-view="suggestionBox"] .icon {
    font-size: 0 !important;
    color: transparent !important;
    position: relative;
}

.nav-item[data-view="suggestionBox"] .icon::before {
    content: "\f01c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    color: #7c3aed;
}

/* Stratejik modüller — mor vurgu (diğer nav öğelerinden görsel ayrım) */
.nav-item.sp-strategic {
    color: #7c3aed;
}
.nav-item.sp-strategic:hover {
    background: #f5f3ff;
    color: #5b21b6;
    box-shadow: inset 3px 0 0 #7c3aed;
}
.nav-item.sp-strategic.active {
    background: #ede9fe;
    color: #5b21b6;
}
.nav-item.sp-strategic.active::before {
    background: #7c3aed;
}

/* ============================================================================
   v601cd-r58: Strateji Geliştirme Kurulu — Karar Tarihçesi (Devreye Alınanlar)
   Açık gök mavisi + cam efekt + bulutumsu radial gradient + soft hover
   ============================================================================ */

/* Header banner — bulutumsu sky blue glass */
.sb-history-header {
    position: relative;
    overflow: hidden;
    padding: 14px 18px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(186, 230, 253, 0.55) 0%, rgba(125, 211, 252, 0.40) 50%, rgba(186, 230, 253, 0.50) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        0 6px 22px rgba(56, 189, 248, 0.18),
        0 1px 3px rgba(2, 132, 199, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.sb-history-header::before {
    content: '';
    position: absolute;
    top: -55%;
    right: -8%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.65) 0%, transparent 62%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}
.sb-history-header::after {
    content: '';
    position: absolute;
    bottom: -45%;
    left: -8%;
    width: 50%;
    height: 110%;
    background: radial-gradient(ellipse, rgba(186, 230, 253, 0.55) 0%, transparent 65%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}
.sb-history-header > * {
    position: relative;
    z-index: 1;
}
.sb-history-header__title {
    font-size: 14px;
    font-weight: 800;
    color: #0c4a6e;
    letter-spacing: 0.2px;
}
.sb-history-header__sub {
    font-size: 12px;
    color: #075985;
    margin-top: 3px;
    font-weight: 500;
}
.sb-history-header__badge {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(125, 211, 252, 0.6);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #075985;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.12);
}
.sb-history-header__btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(125, 211, 252, 0.6);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #075985;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.12);
}
.sb-history-header__btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.22);
    transform: translateY(-1px);
}

/* Karar Tarihçesi tarih ayracı */
.sb-history-day {
    margin-bottom: 24px;
}
.sb-history-day__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-left: 6px;
}
.sb-history-day__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}
.sb-history-day__label {
    font-size: 13px;
    font-weight: 800;
    color: #0c4a6e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sb-history-day__count {
    font-size: 11px;
    color: #075985;
    font-weight: 600;
}
.sb-history-day__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(125, 211, 252, 0.5), transparent);
}
.sb-history-day__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 18px;
    border-left: 2px solid rgba(125, 211, 252, 0.4);
}

/* Karar kartı — bulutumsu glass */
.sb-history-card {
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(186, 230, 253, 0.45) 0%, rgba(224, 242, 254, 0.65) 50%, rgba(186, 230, 253, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow:
        0 4px 18px rgba(56, 189, 248, 0.14),
        0 1px 3px rgba(2, 132, 199, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.60);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sb-history-card::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -8%;
    width: 60%;
    height: 110%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55) 0%, transparent 62%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}
.sb-history-card::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -5%;
    width: 45%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(186, 230, 253, 0.45) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}
.sb-history-card > * {
    position: relative;
    z-index: 1;
}
.sb-history-card--clickable {
    cursor: pointer;
}
.sb-history-card--info {
    cursor: help;
}
.sb-history-card:hover {
    background:
        linear-gradient(135deg, rgba(186, 230, 253, 0.65) 0%, rgba(224, 242, 254, 0.85) 50%, rgba(186, 230, 253, 0.55) 100%);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow:
        0 10px 30px rgba(56, 189, 248, 0.24),
        0 2px 6px rgba(2, 132, 199, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    transform: translateY(-2px);
}
