@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #ed1c24;
    --navy: #3f468d;
    --bg-soft: #f4f6fa;
}

body {
    background: var(--bg-soft);
    color: #1f2a44;
    font-family: 'Source Sans Pro', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

input,
textarea,
select,
button {
    font-family: 'Source Sans Pro', sans-serif;
}

.admin-auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #f5f5f7;
}

.admin-auth-left {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1f3555 0%, #0c1b3d 100%);
}

.admin-auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.3px, transparent 1.3px);
    background-size: 34px 34px;
    opacity: 0.7;
}

.admin-auth-brand-wrap {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.admin-auth-brand {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.05;
    letter-spacing: 0.3px;
    font-weight: 500;
    white-space: nowrap;
}

.admin-auth-brand .blue {
    font-weight: 800;
    color: #2f7ef6;
}

.admin-auth-brand .light {
    color: #9bacca;
    margin-left: 10px;
}

.admin-auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.admin-auth-panel {
    width: 100%;
    max-width: 420px;
}

.admin-auth-input {
    position: relative;
}

.admin-auth-input .form-control {
    height: 52px;
    border-radius: 10px;
    border: 1px solid #cfd7e6;
    background: #f8fbff;
    padding: 0 42px 0 14px;
    font-size: 16px;
    color: #1f2a44;
}

.admin-auth-input .form-control::placeholder {
    color: #6e7e96;
}

.admin-auth-input i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #7d8ca4;
}

.admin-auth-panel .form-check-label {
    font-size: 14px;
    color: #58657d;
}

.admin-auth-panel .form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    border: 1px solid #7b8698;
}

.admin-auth-submit {
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #2b313b 0%, #7d8895 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.admin-auth-submit:hover {
    color: #fff;
    background: linear-gradient(90deg, #3f4753 0%, #98a3af 100%);
}

.pwd-toggle-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #8e99aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pwd-toggle-btn i {
    font-size: 18px;
}

.admin-auth-footer {
    text-align: center;
    margin-top: 42px;
    color: #99a4b6;
    font-size: 12px;
}

.admin-auth-footer a {
    color: #97a2b5;
    text-decoration: none;
    margin: 0 10px;
}

.admin-auth-footer p {
    color: #b7bfcc;
}

.login-toast {
    position: fixed;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    min-width: 420px;
    max-width: 90vw;
    border-radius: 10px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    z-index: 90;
    text-align: center;
    box-shadow: 0 12px 28px rgba(13, 24, 44, 0.15);
    transition: opacity .55s ease, transform .55s ease;
}

.login-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

.login-toast-success {
    background: #d6f5de;
    color: #116736;
    border: 1px solid #a7e8b9;
}

.login-toast-error {
    background: #f8d7da;
    color: #8f1d27;
    border: 1px solid #f1b4bb;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #3f468d 0%, #5660b9 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(8, 20, 40, 0.25);
}

.auth-title {
    font-weight: 800;
    color: #2a3473;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e7eaf1;
}

.brand-block {
    height: 64px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout {
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e7eaf1;
}

.sidebar .nav-link {
    border-radius: 12px;
    color: #384466;
    font-weight: 600;
    margin-bottom: 6px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: #fceef0;
    color: var(--primary);
}

.content-area {
    flex: 1;
    padding: 22px;
    background: #eef1f6;
}

.dashboard-home {
    max-width: 1700px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.kpi-card {
    border-radius: 8px;
    padding: 20px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 116px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.kpi-card h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .2px;
    opacity: 0.96;
}

.kpi-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .3px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.kpi-card i {
    font-size: 52px;
    opacity: 0.9;
    transition: transform .18s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.2);
}

.kpi-card:hover i {
    transform: scale(1.1);
}

.kpi-navy { background: linear-gradient(145deg, #1d3d72 0%, #2f5fa3 100%); }
.kpi-cyan { background: linear-gradient(145deg, #0ea5e9 0%, #0369a1 100%); }
.kpi-emerald { background: linear-gradient(145deg, #10b981 0%, #047857 100%); }
.kpi-orange { background: linear-gradient(145deg, #f97316 0%, #c2410c 100%); }
.kpi-green { background: linear-gradient(145deg, #22c55e 0%, #15803d 100%); }
.kpi-slate { background: linear-gradient(145deg, #64748b 0%, #334155 100%); }

.dash-card {
    border: 1px solid #dbe1ec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.dash-card-head {
    background: #3f468d;
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    min-height: 42px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.dash-card-head > * {
    min-width: 0;
}

.dash-head-mini-btn {
    --bs-btn-padding-y: 0.10rem;
    --bs-btn-padding-x: 0.25rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}

.dash-card-body {
    padding: 14px;
}

.saha-gozlem-map {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    overflow: hidden;
}

.saha-pin-wrap {
    background: transparent;
    border: 0;
    position: relative;
}

.saha-pin {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.saha-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.36);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: sahaPinPulse 1.8s ease-out infinite;
}

@keyframes sahaPinPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.15);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.15);
        opacity: 0;
    }
}

.saha-popup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 190px;
}

.saha-marker-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #dbe3ef;
}

.saha-marker-initials {
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.saha-popup-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.saha-popup-text strong {
    font-size: 13px;
    color: #1e2d4a;
}

.saha-popup-text small {
    color: #6b7b97;
    font-size: 11px;
}

/* Dashboard saha haritası: canlı marker (isim badge + profil) */
.saha-live-marker-wrap {
    background: transparent;
    border: 0;
}

.saha-live-name-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    max-width: 132px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

.saha-live-marker {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    isolation: isolate;
}

.saha-live-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    animation: sahaLivePulse 1.8s ease-out infinite;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

.saha-live-marker.check-in .saha-live-pulse {
    background: rgba(34, 197, 94, 0.34);
}

.saha-live-marker.check-out .saha-live-pulse {
    background: rgba(239, 68, 68, 0.34);
}

.saha-live-avatar-frame {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.26);
    background: linear-gradient(135deg, #475569, #334155);
}

.saha-live-marker.check-in .saha-live-avatar-frame {
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.34);
}

.saha-live-marker.check-out .saha-live-avatar-frame {
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.34);
}

.saha-live-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.saha-live-initials {
    background: linear-gradient(145deg, #3f468d, #ed1c24);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.saha-popup .saha-live-avatar {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
}

.saha-popup .saha-live-initials {
    font-size: 12px;
}

@keyframes sahaLivePulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    70% {
        transform: scale(2.15);
        opacity: 0;
    }
    100% {
        transform: scale(2.15);
        opacity: 0;
    }
}

.fake-chart {
    height: 220px;
    display: flex;
    align-items: end;
    gap: 8px;
    background: linear-gradient(#f9fbff, #f1f4fb);
    border: 1px solid #e4e8f0;
    border-radius: 6px;
    padding: 12px;
}

.fake-chart span {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #4f79d9 0%, #2f5ebf 100%);
}

.todo-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.todo-list li {
    padding: 11px 14px;
    border-top: 1px solid #eef2f7;
    font-size: 14px;
    color: #2a385b;
}

.todo-list li:first-child {
    border-top: 0;
}

.todo-list i {
    margin-right: 6px;
}

.calendar-mini th,
.calendar-mini td {
    text-align: center;
    font-size: 13px;
    padding: 8px;
    border-color: #edf1f6;
}

.calendar-mini td.active {
    background: #3f468d;
    color: #fff;
    border-radius: 6px;
}

.calendar-mini td.event {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
}

.note-card {
    background: #fff7cc;
    border: 1px solid #f2df76;
    border-radius: 8px;
    padding: 14px;
}

.service-table th {
    background: #f7f8fc;
    color: #5e6d8d;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.section-head {
    background: var(--navy);
    color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 13px 16px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.feature-table {
    background: #fff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    border: 1px solid #e8ebf2;
    border-top: 0;
}

.feature-table thead th {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #6a7694;
    border: 0;
    padding: 10px 12px;
    background: #f7f8fb;
}

.feature-col-head {
    width: 38%;
    text-align: left;
}

.feature-table td {
    vertical-align: middle;
    padding: 14px 16px;
    border-top: 1px solid #edf0f6;
    background: #f4f5f7;
    font-size: 17px;
    font-weight: 600;
    color: #203155;
}

.feature-table td:nth-child(4) {
    background: #eceff4;
}

.feature-row-icon {
    color: #3f468d;
}

.module-section {
    margin-bottom: 14px;
}

.status-dot {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}

.status-ok {
    color: #fff;
    background: #e86708;
}

.status-no {
    color: #fff;
    background: #3f468d;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 78px;
    border-radius: 9px;
    padding: 6px 14px;
    font-size: 16px;
    font-weight: 800;
}

.status-pill.quota {
    background: #3f468d;
    color: #fff;
}

.status-pill.optional {
    background: #d5dce7;
    color: #3f468d;
}

.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.fbtn {
    border-radius: 10px;
    font-weight: 700;
    padding: 9px 14px;
    border: 1px solid #dbe1ec;
    background: #fff;
    color: #24314f;
}

.fbtn-light {
    background: #fff;
}

.fbtn-add {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagi-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.pagi-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagi-center {
    text-align: center;
    font-weight: 700;
}

.pagi-right {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8dfea;
    border-radius: 10px;
    overflow: hidden;
}

.pagi-btn {
    border: 0;
    background: #fff;
    padding: 6px 10px;
    color: #2f3b5f;
}

.pagi-pill {
    background: #f2f4f8;
    border-left: 1px solid #d8dfea;
    border-right: 1px solid #d8dfea;
    padding: 6px 12px;
    font-weight: 800;
}

.mobile-shell {
    max-width: 760px;
    margin: 0 auto;
}

.gps-card {
    border-radius: 16px;
    border: 1px solid #e8ebf2;
}

.login-page .admin-auth-layout {
    min-height: 100dvh;
}

.login-page .admin-auth-panel {
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.login-page .admin-auth-footer {
    margin-top: 22px;
}

.login-page .admin-auth-submit {
    background: linear-gradient(90deg, #111827 0%, #374151 100%);
}

.login-page .admin-auth-submit:hover {
    background: linear-gradient(90deg, #1f2937 0%, #4b5563 100%);
}

.mobile-app-page {
    background: #f1f5fb;
    padding: 10px 10px 84px;
}

.mobile-app-shell {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.mobile-app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px 2px;
}

.mobile-app-top h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #15284c;
}

.mobile-app-top p {
    margin: 2px 0 0;
    color: #5a6a84;
}

.mobile-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.mobile-app-card {
    background: #fff;
    border: 1px solid #dce4f0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.mobile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mobile-card-head strong {
    color: #1e3257;
    font-size: 18px;
}

.mobile-card-head small,
.mobile-muted {
    color: #64748b;
}

.mobile-list {
    display: grid;
    gap: 8px;
}

.mobile-list-item {
    border: 1px solid #e8eef7;
    border-radius: 12px;
    padding: 10px;
    background: #fbfdff;
}

.mobile-list-item h6 {
    margin: 0;
    color: #1c3158;
    font-size: 18px;
    font-weight: 800;
}

.mobile-sub {
    font-size: 13px;
    color: #687a95;
}

.mobile-inline-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-progress {
    margin-top: 8px;
    height: 18px;
    width: 100%;
    border-radius: 999px;
    background: #e7edf5;
    overflow: hidden;
}

.mobile-progress span {
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    min-width: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    transition: width 0.35s ease;
}

.mobile-timeline {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.mobile-timeline-item {
    display: flex;
    gap: 8px;
}

.mobile-timeline-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 6px;
    background: #cbd5e1;
    flex: 0 0 auto;
}

.mobile-timeline-item.done .dot {
    background: #16a34a;
}

.mobile-timeline-item.current .dot {
    background: #2563eb;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}

.mobile-timeline-item strong {
    display: block;
    color: #1f3357;
    font-size: 14px;
}

.mobile-timeline-item small {
    color: #6b7280;
}

.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(560px, calc(100vw - 16px));
    border: 1px solid #d8e2f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    z-index: 80;
}

.mobile-bottom-nav button,
.mobile-bottom-nav a {
    border: 0;
    background: transparent;
    border-radius: 10px;
    min-height: 48px;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
}

.mobile-bottom-nav .active {
    background: #eef2ff;
    color: #1d4ed8;
}

@media (max-width: 1400px) {
    .admin-auth-input .form-control {
        font-size: 15px;
        height: 48px;
        border-radius: 10px;
    }

    .admin-auth-panel .form-check-label {
        font-size: 13px;
    }

    .admin-auth-submit {
        font-size: 16px;
        height: 48px;
    }
}

@media (max-width: 992px) {
    .admin-auth-layout {
        grid-template-columns: 1fr;
    }

    .admin-auth-left {
        min-height: 220px;
    }

    .admin-auth-panel {
        max-width: 640px;
    }

    .admin-auth-footer {
        margin-top: 50px;
    }

    .login-page .admin-auth-left {
        min-height: 170px;
    }

    .login-page .admin-auth-right {
        padding: 18px 14px 24px;
        align-items: flex-start;
    }

    .login-page .admin-auth-panel {
        max-width: 520px;
        margin: 0 auto;
        padding: 18px;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modern header + home layout */
.main-topbar {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #e3e7ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.main-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mobile-menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #dbe1ec;
    background: #fff;
    color: #334155;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.brand-title {
    font-size: 20px;
    color: #5b6475;
    white-space: nowrap;
}

.brand-title span {
    color: #2563eb;
    font-weight: 800;
}

.top-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 14px;
}

.top-menu a {
    color: #4b5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .16s ease;
}

.top-menu a:hover,
.menu-dropdown-toggle:hover {
    color: #2563eb;
}

.top-menu a.active {
    color: #1d4ed8;
    font-weight: 600;
}

.top-menu i {
    font-size: 12px;
}

.menu-dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.menu-dropdown-toggle {
    border: 0;
    background: transparent;
    color: #4b5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.top-menu .menu-dropdown-toggle.active,
.top-menu .menu-dropdown:has(.menu-dropdown-item.active) .menu-dropdown-toggle {
    color: #1d4ed8;
    font-weight: 600;
}

.menu-dropdown-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 310px;
    background: #fff;
    border: 1px solid #e4e9f3;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(19, 28, 44, 0.14);
    padding: 10px;
    display: none;
    z-index: 70;
}

.menu-dropdown.open .menu-dropdown-panel,
.menu-dropdown:hover .menu-dropdown-panel,
.menu-dropdown:focus-within .menu-dropdown-panel {
    display: block;
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 10px 12px;
    color: #2f3f5f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.menu-dropdown-item:hover {
    background: #f5f8ff;
    color: #2563eb;
}

.menu-dropdown-item.active {
    color: #2f3f5f;
}

/* Override top menu active link color for dropdown items */
.top-menu .menu-dropdown-panel a.menu-dropdown-item.active {
    color: #2f3f5f;
}

.menu-dropdown-item .mdi {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
}

.menu-dropdown-item .mdi.icon-blue { background: #dbeafe; color: #2563eb; }
.menu-dropdown-item .mdi.icon-navy { background: #dbeafe; color: #2c4d92; }
.menu-dropdown-item .mdi.icon-orange { background: #ffedd5; color: #ea580c; }
.menu-dropdown-item .mdi.icon-green { background: #dcfce7; color: #16a34a; }
.menu-dropdown-item .mdi.icon-gray { background: #eef2f7; color: #475569; }

.main-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 88;
    display: none;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    z-index: 89;
    transform: translateX(-102%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-head {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8edf5;
    padding: 0 14px;
}

.mobile-menu-close {
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 18px;
}

.admin-footer {
    margin-top: auto;
    margin-bottom: 0;
    position: relative;
    bottom: 0;
    border-top: 1px solid #e4e9f3;
    background: #fff;
}

.admin-footer-inner {
    max-width: 100%;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 768px) {
    .admin-footer-inner {
        justify-content: center;
        text-align: center;
        padding: 10px 12px;
    }
}

.mobile-menu-nav {
    padding: 10px;
    display: grid;
    gap: 6px;
}

.mobile-submenu-toggle,
.mobile-menu-nav a {
    border: 0;
    background: #fff;
    text-decoration: none;
    color: #334155;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.mobile-submenu-toggle {
    justify-content: space-between;
}

.mobile-submenu-toggle::after {
    content: "▾";
    font-size: 12px;
    color: #64748b;
}

.mobile-submenu-toggle.open::after {
    content: "▴";
}

.mobile-submenu-panel {
    display: none;
    padding: 2px 0 6px 8px;
}

.mobile-submenu-panel.open {
    display: grid;
    gap: 4px;
}

.mobile-submenu-panel a {
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: #eff6ff;
    color: #1d4ed8;
}

body.mobile-menu-open .mobile-menu-overlay {
    display: block;
}

body.mobile-menu-open .mobile-menu-drawer {
    transform: translateX(0);
}

.top-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #dbe1ec;
    background: #fff;
    color: #7a8499;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.top-icon-btn i {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.notification-menu {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(18, 28, 45, 0.16);
    display: none;
    z-index: 60;
    overflow: hidden;
}

.notification-menu.open .notification-dropdown {
    display: block;
}

.notification-head {
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f7;
}

.notification-list {
    max-height: 340px;
    overflow: auto;
}

.notification-empty {
    margin: 0;
    padding: 16px;
    color: #8a94a9;
}

.notification-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #eff3f9;
}

.notification-item:first-child {
    border-top: 0;
}

.notification-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
}

.notification-item h6 {
    margin: 0;
    font-size: 15px;
    color: #1f2b46;
}

.notification-item p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #51617e;
}

.notification-item small {
    color: #8b95ab;
}

.pulse-blue {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, .45);
    animation: bellPulse 1.8s infinite;
    color: #2563eb;
}

@keyframes bellPulse {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,.45); }
    70% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
}

.user-mini-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-mini-text strong {
    font-size: 15px;
}

.user-mini-text small {
    color: #8b94a7;
    font-size: 12px;
}

.user-mini-avatar,
.user-mini-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.user-mini-avatar-img {
    object-fit: cover;
}

.user-mini-avatar {
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 10px;
}

.user-menu-toggle:hover {
    background: #f4f6fb;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(18, 28, 45, 0.16);
    padding: 8px;
    display: none;
    z-index: 45;
}

.user-menu.open .user-dropdown {
    display: block;
}

.user-dropdown-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid #edf1f7;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
}

.user-dropdown-head strong {
    font-size: 14px;
}

.user-dropdown-head small {
    color: #8a94a9;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 8px;
    color: #33415f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background: #f4f7fc;
}

.user-dropdown-item i {
    font-size: 18px;
    color: #9aa2b0;
}

.user-dropdown-item.danger {
    color: #ea4f50;
}

.user-dropdown-item.danger:hover {
    background: #fff0f0;
}

.user-dropdown-item.danger i {
    color: #ea4f50;
}

.main-home {
    padding: 16px 18px;
    width: 100%;
}

.project-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-item-icon:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-item-icon.delete {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.page-head h1 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #2a3554;
}

.kpi-grid-modern .kpi-card strong {
    font-size: 24px;
}

/* Dashboard KPI kutuları: kompakt, görseldeki blok stile yakın */
.kpi-grid-dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.kpi-grid-dashboard .kpi-card {
    position: relative;
    min-height: 82px;
    padding: 10px 12px 10px;
    border-radius: 6px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.16);
}

.kpi-grid-dashboard .kpi-card > div {
    position: relative;
    z-index: 2;
}

.kpi-grid-dashboard .kpi-card h6 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.95;
}

.kpi-grid-dashboard .kpi-card strong {
    margin-top: 0;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .2px;
}

.kpi-grid-dashboard .kpi-card i {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 44px;
    opacity: 0.2;
    z-index: 1;
}

.kpi-grid-dashboard .kpi-card:hover {
    transform: scale(1.018);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.22);
}

.kpi-grid-dashboard .kpi-card:hover i {
    transform: scale(1.1);
}

@media (max-width: 1500px) {
    .kpi-grid-dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .kpi-grid-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Dashboard modülleri: sürükle-bırak */
.dashboard-module-column {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: flex-start;
}

.dash-module {
    cursor: grab;
    user-select: none;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.dashboard-modules {
    align-items: flex-start !important;
}

.dashboard-modules-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.dashboard-module-panel {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.dash-module.dragging {
    opacity: 0.62;
    transform: scale(0.995);
}

.dash-module .dash-card-head {
    position: relative;
}

.dash-module-drag-handle {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
    margin-left: 6px;
}

.dash-module-drag-handle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dash-module-drag-handle:active {
    cursor: grabbing;
}

.dash-notes-side .dash-card-head .d-flex {
    flex-wrap: nowrap;
}

.dash-notes-side .dash-card-head .btn {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .dashboard-modules-grid {
        grid-template-columns: 1fr;
    }
}

.notes-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.notes-page-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1d2b49;
}

.notes-page-head p {
    margin: 4px 0 0;
    color: #51617e;
    font-size: 16px;
}

.notes-page-add-btn {
    min-width: 154px;
    border-radius: 12px;
    font-weight: 600;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.service-calendar th {
    text-align: center;
    font-size: 12px;
    background: #f5f7fb;
    color: #6d7893;
}

.service-calendar td {
    height: 110px;
    vertical-align: top;
    border-color: #edf1f6;
    background: #fff;
}

.service-calendar td.empty-day {
    background: #f7f9fd;
}

.service-calendar td.today {
    background: #eef3ff;
}

.day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-num {
    font-weight: 800;
    color: #2f3d60;
    font-size: 13px;
}

.day-note-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #3f468d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.service-calendar small {
    display: block;
    margin-top: 7px;
    color: #4d5b7d;
    font-size: 12px;
    line-height: 1.3;
}

.day-note-list {
    margin-top: 6px;
    display: grid;
    gap: 4px;
}

.day-note-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 6px;
    background: #f1f4fb;
    border-radius: 6px;
    color: #3d4c70;
    font-size: 11px;
    line-height: 1.2;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.day-note-item:hover {
    background: #e8eefb;
}

.day-note-more {
    margin: 0;
    color: #3f468d;
    font-weight: 700;
    font-size: 11px;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.priority-dot.dusuk { background: #22c55e; }
.priority-dot.orta { background: #f59e0b; }
.priority-dot.yuksek { background: #f97316; }
.priority-dot.acil { background: #ef4444; }

.note-list-scroll {
    max-height: 330px;
    overflow: auto;
}

.note-list-item {
    border: 1px solid #e6ebf4;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9fbff;
}

.note-day-group {
    margin-bottom: 12px;
}

.note-day-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 2px;
}

.note-day-group > header strong {
    font-size: 12px;
    color: #3f468d;
}

.note-day-group > header span {
    font-size: 11px;
    color: #8a94a9;
    background: #edf1f8;
    padding: 2px 8px;
    border-radius: 999px;
}

.note-list-item strong {
    font-size: 12px;
    color: #3f468d;
}

.note-list-item p {
    margin: 6px 0;
    font-size: 13px;
}

.note-list-item small {
    color: #8390a8;
}

.calendar-context-menu {
    position: absolute;
    z-index: 60;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(10, 20, 40, 0.18);
    padding: 6px;
    display: none;
}

.calendar-context-menu.open {
    display: block;
}

.calendar-context-menu button {
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    color: #344260;
    font-size: 14px;
}

.calendar-context-menu button:hover {
    background: #f3f6fc;
}

.calendar-context-menu i {
    margin-right: 6px;
}

.note-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(10, 18, 33, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.note-modal.open {
    display: flex;
}

.note-modal-dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 28px 56px rgba(10, 18, 33, 0.24);
    overflow: visible;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.note-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e9edf5;
}

.note-modal-head h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.note-modal-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #6f7b94;
}

.note-modal-body {
    padding: 14px;
    overflow: auto;
}

.day-note-modal-item {
    border: 1px solid #e5ebf6;
    border-radius: 8px;
    padding: 10px;
    background: #f9fbff;
}

.day-note-modal-item p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #33415f;
}

.day-note-modal-item small {
    color: #8a94a9;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    width: 72px;
    height: 24px;
    border-radius: 8px;
    padding: 0;
    margin-right: 6px;
}

.priority-badge.dusuk { background: #dcfce7; color: #166534; }
.priority-badge.orta { background: #fef3c7; color: #92400e; }
.priority-badge.yuksek { background: #ffedd5; color: #9a3412; }
.priority-badge.acil { background: #fee2e2; color: #991b1b; }

.btn-icon-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f8;
    color: #3c4a67;
}

.btn-icon-action i {
    font-size: 15px;
}

.btn-icon-action.edit {
    background: #e8f8ed;
    color: #1f7a3d;
}

.btn-icon-action.delete {
    background: #feecec;
    color: #b42318;
}

.kanban-wrap .dash-card-body {
    padding: 10px;
}

.kanban-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.notes-grid-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.notes-grid-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dash-notes-side .dash-card-body {
    min-height: 725px;
}

.home-note-card {
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
}

.home-note-card.color-kirmizi { background: #fef2f2; }
.home-note-card.color-sari { background: #fffbeb; }
.home-note-card.color-mavi { background: #eff6ff; }
.home-note-card.color-yesil { background: #f0fdf4; }
.home-note-card.color-gri { background: #f3f4f6; }

.home-note-card h6 {
    margin: 0;
    font-size: 15px;
    color: #2d3b59;
}

.home-note-card p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #445372;
    min-height: 52px;
}

.home-note-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.home-note-meta small {
    color: #8b95ab;
}

.kanban-col {
    border: 1px solid #e2e8f2;
    border-radius: 10px;
    background: #f9fbff;
}

.kanban-col-head {
    padding: 10px;
    border-bottom: 1px solid #e6ebf4;
    font-weight: 700;
    color: #2f3f5f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.kanban-count-badge {
    width: 34px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5ebf6;
    color: #42506f;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 34px;
}

.kanban-col-body {
    padding: 10px;
    display: grid;
    gap: 10px;
}

.kanban-col-body.drop-over {
    background: #edf4ff;
    border-radius: 10px;
}

.kanban-note {
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    cursor: grab;
}

.kanban-note.dragging {
    opacity: .45;
}

.kanban-note button {
    cursor: pointer;
}

.kanban-file-list {
    display: grid;
    gap: 6px;
}

.kanban-file-item {
    text-decoration: none;
    color: #2563eb;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kanban-comments-wrap {
    border-top: 1px solid #e9edf5;
    padding: 12px 14px 14px;
    background: #fcfdff;
}

.kanban-comments-wrap h6 {
    margin: 0 0 8px;
    font-size: 18px;
}

.kanban-comment-list {
    max-height: 180px;
    overflow: auto;
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.kanban-comment-item {
    display: flex;
    gap: 8px;
    border: 1px solid #e5ebf6;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.kanban-comment-item strong {
    font-size: 13px;
    display: block;
}

.kanban-comment-item p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #435372;
}

.kanban-comment-avatar,
.kanban-comment-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 28px;
}

.kanban-comment-avatar {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-comment-avatar-img {
    object-fit: cover;
}

.kanban-note.color-kirmizi { background: #fef2f2; }
.kanban-note.color-sari { background: #fffbeb; }
.kanban-note.color-mavi { background: #eff6ff; }
.kanban-note.color-yesil { background: #f0fdf4; }
.kanban-note.color-gri { background: #f3f4f6; }

.kanban-note-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.kanban-note h6 {
    margin: 0;
    font-size: 14px;
    color: #2d3b59;
    line-height: 1.35;
}

.kanban-note-content {
    font-size: 13px;
    color: #415170;
    line-height: 1.35;
}

.kanban-note-foot {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.note-user-badge {
    min-width: 128px;
    min-height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
    background: transparent;
    color: #2e4d95;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
}

.note-user-avatar,
.note-user-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    flex: 0 0 34px;
}

.note-user-avatar {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.note-user-avatar-img {
    object-fit: cover;
}

.note-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-date-inline {
    white-space: nowrap;
    font-size: 11px;
}

.kanban-note-foot small {
    color: #8b95ab;
    font-size: 12px;
}

.kanban-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2c4d92;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* SweetAlert form improvements */
.swal-pro-popup .swal2-title {
    font-size: 24px;
    font-weight: 800;
    color: #1f2f4f;
}

.swal-pro-popup .swal-form-grid {
    text-align: left;
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.swal-pro-popup .swal-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #465578;
    margin: 0 2px;
}

.swal-pro-popup .swal2-input.swal2-input-pro {
    width: 100%;
    margin: 0;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d7deea;
    box-shadow: none;
    font-size: 14px;
    color: #1f2f4f;
}

.swal-pro-popup .swal2-input.swal2-input-pro:focus {
    border-color: #2563eb;
}

/* Organization settings */
.org-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.org-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: #24314f;
    transition: transform .16s ease, box-shadow .16s ease;
}

.org-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(16, 24, 40, 0.12);
}

.org-box-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #dbeafe;
    color: #1d4ed8;
    flex: 0 0 46px;
}

.org-box h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.org-box p {
    margin: 2px 0 0;
    color: #60708e;
    font-size: 14px;
}

.settings-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
}

.prod-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 12px;
}

.cat-list-wrap,
.prod-list-wrap {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cat-list-head,
.prod-list-head {
    padding: 12px 14px;
    border-bottom: 1px solid #e6ecf5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-list-body,
.prod-list-body {
    padding: 12px;
}

.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    text-decoration: none;
    color: #2e3c5a;
    margin-bottom: 8px;
}

.cat-item.active {
    border-color: #2563eb;
    background: #edf4ff;
}

.cat-item h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}

.cat-item small {
    color: #6d7d99;
}

.table-mini th,
.table-mini td {
    font-size: 13px;
    vertical-align: middle;
    padding: 0.56rem 0.6rem;
}

.table-mini td:first-child {
    font-weight: 700;
    color: #2a3a58;
}

.table-mini thead th {
    background: #f8fafd;
    color: #344054;
    font-weight: 800;
    border-bottom: 1px solid #e6ecf4;
}

.team-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 24px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef3fb;
    color: #355079;
    font-size: 12px;
    font-weight: 800;
    margin-right: 6px;
}

.user-list-avatar-34 {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px;
    object-fit: cover;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
}

.project-status-badge.new {
    background: #e0ecff;
    color: #1d4ed8;
}

.project-status-badge.progress {
    background: #fff4d6;
    color: #b45309;
}

.project-status-badge.done {
    background: #dcfce7;
    color: #166534;
}

#atanan-projeler .mobile-card-head strong,
#atanan-projeler-sekme .mobile-card-head strong {
    font-size: 17px;
}

#atanan-projeler .mobile-list-item h6,
#atanan-projeler-sekme .mobile-list-item h6 {
    font-size: 15px;
}

#atanan-projeler .mobile-sub,
#atanan-projeler-sekme .mobile-sub {
    font-size: 12px;
}

#atanan-projeler .project-status-badge,
#atanan-projeler-sekme .project-status-badge {
    min-width: 110px;
    height: 24px;
    font-size: 11px;
}

.project-progress-wrap {
    min-width: 130px;
}

.project-progress-bar {
    width: 100%;
    height: 26px;
    border-radius: 8px;
    background: #eef2f8;
    overflow: hidden;
}

.project-progress-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    min-width: 40px;
    transition: width .25s ease;
}

.projects-table .project-row {
    cursor: pointer;
}

.project-main-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-expand-toggle {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #d8e0ed;
    background: #fff;
    color: #2f3f5f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-expand-toggle i {
    font-size: 16px;
}

.project-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-detail-row td {
    background: #f8fafc;
}

.project-detail-box {
    border: 1px solid #e5ebf5;
    border-radius: 8px;
    padding: 12px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-detail-panel {
    border: 1px solid #e5ebf5;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.project-detail-box h6,
.project-detail-panel h6 {
    margin: 0 0 8px;
    font-weight: 800;
    color: #233a62;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-area-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-area-list li {
    border: 1px solid #e7edf7;
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.project-area-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 76px;
    height: 24px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
}

.project-area-list li strong {
    color: #1f3357;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.project-area-list li small {
    color: #566b8f;
    font-size: 13px;
}

.project-detail-panel .table thead th {
    font-size: 13px;
    color: #31476f;
    font-weight: 800;
}

.project-detail-panel .table tbody td {
    vertical-align: middle;
}

.project-area-select-row {
    cursor: pointer;
}

.project-area-select-row:hover td {
    background: #f4f8ff;
}

.project-area-select-row.active td {
    background: #eaf2ff;
}

.project-items-filter-note {
    margin-left: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.project-item-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    height: 24px;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
}

.project-item-status.new {
    background: #eef2ff;
    color: #1d4ed8;
}

.project-item-status.progress {
    background: #fff7ed;
    color: #c2410c;
}

.project-item-status.done {
    background: #dcfce7;
    color: #166534;
}

.project-area-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 24px;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
}

.project-area-status.new {
    background: #eef2ff;
    color: #1d4ed8;
}

.project-area-status.progress {
    background: #fff7ed;
    color: #c2410c;
}

.project-area-status.active {
    background: #e0f2fe;
    color: #0c4a6e;
}

.project-area-status.done {
    background: #dcfce7;
    color: #166534;
}

.project-area-status.delay {
    background: #fee2e2;
    color: #991b1b;
}

.project-area-editor {
    border: 1px solid #e6ecf6;
    border-radius: 8px;
    background: #fbfdff;
    padding: 10px;
}

.project-customer-picker {
    position: relative;
}

.project-customer-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1200;
    background: #fff;
    border: 1px solid #d7e0ee;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    padding: 10px;
}

.project-customer-dropdown.open {
    display: block;
}

.project-customer-list {
    max-height: 220px;
    overflow: auto;
    display: grid;
    gap: 4px;
}

.project-customer-item {
    border: 1px solid transparent;
    background: #f8fbff;
    color: #1f3357;
    border-radius: 8px;
    text-align: left;
    padding: 8px 10px;
    font-weight: 700;
}

.project-customer-item:hover {
    border-color: #cfe0ff;
    background: #eef4ff;
}

.project-customer-item.active {
    border-color: #bcd3ff;
    background: #e5eeff;
    color: #1d4ed8;
}

.list-filter-bar {
    margin: 10px 0 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(260px, 420px);
    align-items: center;
}

.list-pagination {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-action-btn {
    min-width: 112px;
    height: 38px;
    justify-content: center;
    text-decoration: none !important;
}

.filter-search-input {
    max-width: 420px;
}

.project-progress-list {
    display: grid;
    gap: 12px;
}

.dash-projects-side .project-progress-list {
    gap: 8px;
}

.dash-projects-side .project-progress-item {
    padding: 10px 10px;
}

.dash-projects-side .project-progress-title {
    font-size: 18px;
}

.dash-projects-side .project-team-pill {
    min-width: 96px;
}

.saha-gozlem-card,
.dash-projects-side {
    margin-top: 1rem !important;
}

.project-progress-item {
    border: 1px solid #e3eaf5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    padding: 12px 14px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.project-progress-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.project-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.project-progress-title {
    font-weight: 800;
    color: #1f3357;
    font-size: 18px;
}

.project-progress-sub {
    color: #64748b;
    font-size: 13px;
}

.project-progress-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-team-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 24px;
    border-radius: 8px;
    background: #eef2f8;
    color: #2f3f5f;
    font-size: 12px;
    font-weight: 700;
    padding: 0 8px;
}

.project-progress-list .project-progress-bar {
    height: 20px;
    border-radius: 999px;
    width: 100%;
    background: #e9eef6;
    overflow: hidden;
    position: relative;
}

.project-progress-track {
    display: block;
}

.project-progress-list .project-progress-bar span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.project-progress-list .project-progress-bar .project-progress-zero-label {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: auto;
    min-width: 0;
    display: block;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
}

.project-row.recently-updated td {
    background: #fbfdff;
}

.project-row.recently-updated td:first-child {
    box-shadow: inset 3px 0 0 #3b82f6;
}

.project-main-cell .recent-update-badge {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #1e40af;
    font-weight: 700;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 3px 8px;
}

.project-main-cell .recent-update-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
    animation: projectPulse 1.8s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes projectPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 1200px) {
    .list-filter-bar {
        grid-template-columns: minmax(220px, 1fr);
    }
}

@media (max-width: 768px) {
    .list-filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-action-btn {
        width: 100%;
    }
}

.project-area-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-area-editor-head strong {
    font-size: 18px;
    font-weight: 800;
    color: #1f3357;
}

.project-area-row + .project-area-row {
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
}

.template-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-back-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    border: 1px solid #d9e1ee;
    background: #fff;
    color: #2c3b59;
    font-weight: 700;
    padding: 0 12px;
    border-radius: 8px;
    transition: all .16s ease;
}

.page-back-btn:hover {
    text-decoration: none !important;
    background: #f4f7fc;
    border-color: #c6d3e6;
    color: #1f2f4f;
    transform: translateY(-1px);
}

.list-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    margin-right: 8px;
    vertical-align: middle;
    flex: 0 0 28px;
}

.upload-modal-hero {
    border: 1px solid #e3eaf5;
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px 12px;
}

.notes-kanban-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scope-chip-group {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
}

.scope-chip {
    border: 1px solid #d5deea;
    background: #f7f9fd;
    color: #4b5a78;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

.scope-chip.active {
    border-color: #2563eb;
    background: #eaf2ff;
    color: #1d4ed8;
}

.color-chip {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #d7dfeb;
    background: #fff;
    position: relative;
}

.color-chip[data-color="gri"] { background: #f3f4f6; }
.color-chip[data-color="kirmizi"] { background: #fee2e2; }
.color-chip[data-color="sari"] { background: #fef3c7; }
.color-chip[data-color="mavi"] { background: #dbeafe; }
.color-chip[data-color="yesil"] { background: #dcfce7; }

.color-chip.active {
    border: 2px solid #f59e0b;
}

.assignee-picker {
    position: relative;
}

.assignee-toggle-btn {
    width: 100%;
    border: 1px solid #d8dfeb;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.assignee-current-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.assignee-current-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #dbe7ff;
    color: #2c4d92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 28px;
    overflow: hidden;
}

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

.assignee-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(11, 22, 43, 0.18);
    padding: 8px;
    display: none;
    z-index: 80;
}

.assignee-picker.open .assignee-dropdown {
    display: block;
}

.assignee-picker.dropup .assignee-dropdown {
    top: auto;
    bottom: calc(100% + 6px);
}

.assignee-list {
    max-height: 220px;
    overflow: auto;
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.assignee-item {
    border: 0;
    width: 100%;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    text-align: left;
}

#assigneeCurrentName {
    text-align: left;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.assignee-item:hover {
    background: #f3f6fc;
}

.assignee-avatar,
.assignee-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 28px;
}

.assignee-avatar {
    background: #dbe7ff;
    color: #2c4d92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.assignee-avatar-img {
    object-fit: cover;
}

/* Radius standard: 8px */
.top-icon-btn,
.notification-dropdown,
.user-dropdown,
.menu-dropdown-panel,
.dash-card,
.kpi-card,
.home-note-card,
.kanban-note,
.note-modal-dialog,
.assignee-toggle-btn,
.assignee-dropdown,
.notes-page-add-btn,
.admin-auth-input .form-control,
.admin-auth-submit,
.login-toast {
    border-radius: 8px !important;
}

@media (max-width: 1400px) {
    .org-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prod-layout {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .notes-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notes-kanban-page {
        grid-template-columns: 1fr;
    }

    .notes-grid-side {
        grid-template-columns: 1fr;
    }

    .dash-notes-side .dash-card-body {
        min-height: auto;
    }

    .notes-page-head {
        flex-direction: column;
    }
}

/* Lock screen */
.lock-screen-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #243b6a 0%, #0f1d3d 100%);
}

.lock-card-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lock-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.25);
}

.lock-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.lock-card p {
    color: #7a869f;
}

@media (max-width: 1300px) {
    .main-topbar {
        height: 66px;
        padding: 0 10px;
    }

    .main-topbar-left {
        gap: 8px;
        order: 1;
    }

    .top-menu {
        display: none;
    }

    .desktop-only-action {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .brand-title {
        font-size: 18px;
    }

    .logo-box {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 15px;
    }

    .main-topbar-right {
        margin-left: auto;
        gap: 6px;
        order: 3;
    }

    .top-icon-btn {
        width: 34px;
        height: 34px;
    }

    .user-menu-toggle {
        padding: 0;
    }

    .user-mini-text {
        display: inline-flex;
        font-size: 11px;
    }

    .user-mini-text strong {
        font-size: 13px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

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

    .brand-title {
        font-size: 15px;
    }

    .brand-link {
        gap: 6px;
    }

    .menu-dropdown-panel {
        min-width: 280px;
    }

    .user-mini-text strong {
        max-width: 82px;
    }

    .user-mini-text small {
        font-size: 10px;
    }

    .login-page .admin-auth-brand-wrap {
        justify-content: flex-start;
        align-items: flex-end;
        padding: 18px;
    }

    .login-page .admin-auth-brand {
        font-size: clamp(24px, 8vw, 34px);
    }

    .login-page .admin-auth-panel {
        border-radius: 14px;
        padding: 14px;
    }

    .login-page .admin-auth-footer {
        margin-top: 12px;
    }

    .login-page .login-toast {
        min-width: calc(100vw - 24px);
        bottom: 14px;
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* Mobil alt sayfa başlığı — takvim “Detay Bilgisi” toolbar ile aynı dil */
.mp-head-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e8ecf4;
    min-height: 56px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 40;
}

.mp-head-toolbar .mp-back {
    border: 0;
    background: #ed1c2414;
    color: #ed1c24;
    font-size: 22px;
    padding: 6px 8px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    text-decoration: none;
}

.mp-head-toolbar .mp-back:active {
    background: rgba(237, 28, 36, 0.1);
}

.mp-head-toolbar .mp-head-plus {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.mp-head-toolbar .mp-toolbar-title {
    margin: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 800;
    color: #1f2a44;
    line-height: 1.3;
    min-width: 0;
}

.mp-head-toolbar .mp-head-spacer {
    width: 42px;
    flex-shrink: 0;
}

/* Mobil kutu sayfaları (zaman çizelgesi, talepler, harcamalar, proje detay …): fullsheet ile uyumlu soldan giriş */
@keyframes mobile-page-surface-in {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.mobile-page-surface {
    animation: mobile-page-surface-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Geri: takvim detayı / fullsheet .closing paneli ile aynı (fade + sola çıkış) */
@keyframes mobile-page-surface-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

body.mobile-page-surface.mobile-page-surface--closing {
    animation: mobile-page-surface-out 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Anasayfadan alt sayfaya geçişte anında tepki hissi */
@keyframes mobile-index-launch-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0.05;
        transform: translateX(-14%);
    }
}

body.mobile-lite-page.mobile-page-launching .mobile-app-shell {
    animation: mobile-index-launch-out 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    body.mobile-page-surface {
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-page-surface.mobile-page-surface--closing {
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.mobile-lite-page.mobile-page-launching .mobile-app-shell {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.mp-badge-fixed {
    min-width: 7.5rem;
    max-width: 10rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mp-kalem-pill {
    min-width: 6.75rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
}

/* Saha mobil giriş: desktop'ta admin login benzeri, mobilde tek panel */
.mobile-login-page {
    min-height: 100dvh;
    min-height: 100vh;
    margin: 0;
    background: #f5f5f7;
    font-family: 'Source Sans Pro', sans-serif;
}

.mobile-auth-layout {
    min-height: 100dvh;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #f5f5f7;
}

.mobile-auth-left {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1f3555 0%, #0c1b3d 100%);
}

.mobile-auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.3px, transparent 1.3px);
    background-size: 34px 34px;
    opacity: 0.7;
}

.mobile-auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mobile-login-shell {
    width: 100%;
    max-width: 420px;
}

.mobile-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e8ecf4;
}

.mobile-login-card .form-control {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    min-height: 52px;
}

.mobile-login-card .btn-submit {
    border-radius: 12px;
    min-height: 52px;
    font-weight: 800;
    font-size: 16px;
}

/* Mobil giriş: CTA butonu sistem rengine (kırmızı gradient) uyumlu olsun */
.mobile-login-page .mobile-login-card .btn-submit,
.mobile-login-page .mobile-login-card .admin-auth-submit {
    background: linear-gradient(180deg, #ff1f2a 0%, var(--primary) 45%, #b51218 100%);
    box-shadow: 0 14px 30px rgba(237, 28, 36, 0.28);
    border: 0;
}

.mobile-login-page .mobile-login-card .btn-submit:hover,
.mobile-login-page .mobile-login-card .admin-auth-submit:hover,
.mobile-login-page .mobile-login-card .btn-submit:focus,
.mobile-login-page .mobile-login-card .admin-auth-submit:focus {
    background: linear-gradient(180deg, #ff3841 0%, #ed1c24 40%, #a80f14 100%);
    color: #fff;
}

.mobile-login-page .mobile-login-card .btn-submit:active,
.mobile-login-page .mobile-login-card .admin-auth-submit:active {
    transform: translateY(1px);
    box-shadow: 0 10px 24px rgba(237, 28, 36, 0.22);
}

/* Mobil çözünürlüklerde login'i daha "app" hissiyle göster */
@media (max-width: 991.98px) {
    .mobile-login-page {
        background: radial-gradient(1200px 520px at 15% 0%, rgba(237, 28, 36, 0.10), transparent 55%),
                    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    }

    .mobile-login-shell {
        max-width: 460px;
    }

    .mobile-login-card {
        border-radius: 22px;
        padding: 22px 18px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 16px 46px rgba(15, 23, 42, 0.10);
        backdrop-filter: blur(6px);
    }

    .mobile-login-card .form-control {
        border-radius: 14px;
        border-color: #e2e8f0;
        background: #fff;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    .mobile-login-card .form-control:focus {
        border-color: rgba(237, 28, 36, 0.55);
        box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.14);
    }
}

.mobile-login-foot {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #94a3b8;
}

/* PWA install bar (üstte sabit) */
.pwa-install-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px 12px;
    background: linear-gradient(180deg, var(--primary) 0%, #c5161c 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.pwa-install-bar.hide {
    display: none !important;
}

/* Bar görünürken içerik üst üste binmesin (sadece mobilde) */
@media (max-width: 991.98px) {
    .has-pwa-install-bar {
        padding-top: 86px;
    }
}

@media (min-width: 992px) {
    .has-pwa-install-bar {
        padding-top: 0 !important;
    }
}

.pwa-install-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}

.pwa-install-bar__ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    flex: 0 0 auto;
}

.pwa-install-bar__ico img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.pwa-install-bar__txt {
    min-width: 0;
    flex: 1 1 auto;
}

.pwa-install-bar__title {
    font-weight: 900;
    font-size: 15px;
    line-height: 1.15;
    margin: 0;
}

.pwa-install-bar__sub {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.92;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
}

.pwa-install-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.pwa-install-bar__btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pwa-install-bar__btn--install {
    background: #fff;
    color: #111827;
}

.pwa-install-bar__btn--close {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.pwa-install-bar__btn i {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 420px) {
    .has-pwa-install-bar { padding-top: 96px; }
    .pwa-install-bar { padding: max(10px, env(safe-area-inset-top)) 10px 10px 10px; }
    .pwa-install-bar__inner { gap: 10px; }
    .pwa-install-bar__ico { width: 36px; height: 36px; border-radius: 12px; }
    .pwa-install-bar__ico img { width: 20px; height: 20px; }
    .pwa-install-bar__title { font-size: 14px; }
    .pwa-install-bar__sub { font-size: 11.5px; opacity: 0.9; }
    .pwa-install-bar__actions { gap: 6px; }
    .pwa-install-bar__btn { padding: 9px 10px; border-radius: 12px; font-size: 13.5px; }
}

@media (max-width: 991.98px) {
    .mobile-auth-layout {
        display: block;
        background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
        padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
            max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }

    .mobile-auth-left {
        display: none;
    }

    .mobile-auth-right {
        padding: 0;
        min-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
        min-height: calc(100vh - max(16px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    }
}

/* Mobil/tablet: kaydırma çubukları görünmesin (kaydırma çalışmaya devam eder) */
@media (max-width: 991.98px) {
    html {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    html::-webkit-scrollbar {
        width: 0;
        height: 0;
        background: transparent;
    }

    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    body::-webkit-scrollbar {
        width: 0;
        height: 0;
        background: transparent;
    }

    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    *::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    *::-webkit-scrollbar-thumb {
        background: transparent !important;
    }
}
