:root {
    --navy: #293a50;
    --navy-dark: #1f2d3f;
    --cyan: #00bcd4;
    --cyan-hover: #009fb3;
    --body-bg: #f8f8f8;
    --text-main: #263238;
    --sidebar-w: 270px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px;
    color: var(--text-main);
    background-color: var(--body-bg);
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.kpi-value {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.text-navy {
    color: var(--navy) !important;
}

/* Buttons */
.btn-cyan {
    background-color: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
    font-weight: 600;
}

.btn-cyan:hover,
.btn-cyan:focus {
    background-color: var(--cyan-hover);
    border-color: var(--cyan-hover);
    color: #fff;
}

/* Auth Page */
.auth-body {
    min-height: 100vh;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 430px;
}

.auth-card {
    border-radius: 12px;
}

.auth-logo-badge {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(41, 58, 80, .25);
}

/* App Shell */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-w);
    background-color: var(--navy);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .22s ease;
}

.sidebar-brand {
    height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    background-color: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: var(--cyan);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.brand-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .72);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px 24px;
}

.nav-link-root,
.nav-group-toggle {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 7px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 2px;
    transition: background-color .18s ease, color .18s ease;
}

.nav-link-root {
    justify-content: flex-start;
    gap: 10px;
}

.nav-link-root:hover,
.nav-group-toggle:hover {
    background-color: rgba(255, 255, 255, .09);
    color: #fff;
}

.nav-link-root.active {
    background-color: var(--cyan);
    color: #fff;
    font-weight: 600;
}

.nav-group-toggle .chevron {
    font-size: 11px;
    transition: transform .2s ease;
}

.nav-group-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* Sidebar Colored Icons Only */
.nav-ico { font-size: 15px; line-height: 1; }
.nav-ico-home        { color: #26c6da; }
.nav-link-root.active .nav-ico-home { color: #ffffff; }
.nav-ico-isyeri      { color: #4fc3f7; }
.nav-ico-tesvik      { color: #66bb6a; }
.nav-ico-sgk         { color: #ffb74d; }
.nav-ico-giriscikis  { color: #ce93d8; }
.nav-ico-vizite      { color: #ff6e6e; }
.nav-ico-iskur       { color: #4db6ac; }
.nav-ico-kbs         { color: #ffd54f; }
.nav-ico-myk         { color: #ff8a65; }
.nav-ico-ik          { color: #81c784; }
.nav-ico-entegrasyon { color: #9fa8da; }

.nav-submenu {
    padding: 4px 0 6px 26px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-sublink {
    padding: 6px 10px;
    border-radius: 6px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: 12.5px;
    transition: background-color .15s ease, color .15s ease;
}

.nav-sublink:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.nav-sublink.active {
    color: #fff;
    background: rgba(0, 188, 212, .25);
    font-weight: 600;
}

/* Main Column */
.app-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    height: 62px;
    background: #fff;
    border-bottom: 1px solid #e3e7ec;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.app-content {
    flex: 1;
    padding: 20px 22px 28px;
}

.app-footer {
    background: #fff;
    border-top: 1px solid #dfdfdf;
    padding: 12px 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

/* KPI Cards (High-contrast vivid palette, WCAG AA >= 4.5:1) */
.kpi-card {
    border-radius: 12px;
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    transition: transform .2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-blue,
.kpi-azure {
    background-color: #0277bd;
}

.kpi-orange,
.kpi-amber {
    background-color: #d84315;
}

.kpi-green,
.kpi-emerald {
    background-color: #2e7d32;
}

.kpi-indigo {
    background-color: #4527a0;
}

.kpi-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .94;
    font-weight: 700;
}

.kpi-value {
    font-size: 25px;
    font-weight: 800;
    margin: 5px 0 4px;
    line-height: 1.15;
}

.kpi-limit {
    font-size: 14px;
    font-weight: 600;
    opacity: .88;
}

.kpi-icon {
    font-size: 32px;
    opacity: .35;
}

.kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #fff;
    flex-shrink: 0;
}

.kpi-progress {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .24);
    overflow: hidden;
}

.kpi-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: #fff;
}

.kpi-foot {
    font-size: 12px;
    opacity: .96;
    border-top: 1px solid rgba(255, 255, 255, .22);
    padding-top: 8px;
    margin-top: 10px;
}

/* Dashboard Hero Strip */
.dash-hero {
    background-color: var(--navy);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    border-left: 6px solid var(--cyan);
    box-shadow: 0 8px 22px rgba(41, 58, 80, .14);
}

.hero-heading {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.hero-sub {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .88);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    background-color: #00838f;
    color: #fff;
}

.hero-pill-soft {
    background-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.hero-pill-warn {
    background-color: #c62828;
    color: #fff;
}

.btn-touch {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}

/* Colorful Quick Action Tiles */
.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-top: 4px solid var(--tile-accent, var(--cyan));
    text-decoration: none;
    color: var(--text-main);
    min-height: 102px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    transition: transform .2s ease, border-color .2s ease;
}

.quick-tile:hover {
    transform: translateY(-2px);
    color: var(--navy);
}

.quick-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-color: var(--tile-bg, #e0f7fa);
    color: var(--tile-accent, #00838f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 8px;
}

.quick-tile-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: var(--navy);
}

.quick-tile-sub {
    font-size: 11.5px;
    color: #546e7a;
    margin-top: 2px;
}

.tile-cyan {
    --tile-accent: #00838f;
    --tile-bg: #e0f7fa;
}

.tile-blue {
    --tile-accent: #0277bd;
    --tile-bg: #e1f5fe;
}

.tile-emerald {
    --tile-accent: #2e7d32;
    --tile-bg: #e8f5e9;
}

.tile-amber {
    --tile-accent: #d84315;
    --tile-bg: #fbe9e7;
}

.tile-rose {
    --tile-accent: #ad1457;
    --tile-bg: #fce4ec;
}

.tile-indigo {
    --tile-accent: #4527a0;
    --tile-bg: #ede7f6;
}

/* Sector Badges */
.badge-sector-imalat {
    background-color: #0277bd;
    color: #fff;
}

.badge-sector-bilisim {
    background-color: #4527a0;
    color: #fff;
}

.badge-sector-hizmet {
    background-color: #00838f;
    color: #fff;
}

.badge-sector-insaat {
    background-color: #d84315;
    color: #fff;
}

.badge-sector-turizm {
    background-color: #2e7d32;
    color: #fff;
}

.badge-sector-diger {
    background-color: #546e7a;
    color: #fff;
}

/* Dashboard Charts */
.dash-chart {
    width: 100%;
    height: 280px;
}

/* Colored Announcement Accents */
.ann-item {
    border-left: 4px solid #0277bd;
    overflow-wrap: anywhere;
}

.ann-item .ann-badge {
    background-color: #e1f5fe;
    color: #01579b;
    font-weight: 700;
}

.ann-green {
    border-left-color: #2e7d32;
}

.ann-green .ann-badge {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.ann-rose {
    border-left-color: #c2185b;
}

.ann-rose .ann-badge {
    background-color: #fce4ec;
    color: #880e4f;
}

.ann-amber {
    border-left-color: #e65100;
}

.ann-amber .ann-badge {
    background-color: #fff3e0;
    color: #bf360c;
}

.ann-indigo {
    border-left-color: #4527a0;
}

.ann-indigo .ann-badge {
    background-color: #ede7f6;
    color: #311b92;
}

.card {
    border-radius: 11px;
}

.card-header {
    padding: 13px 18px;
    border-bottom-color: #edf0f3;
}

/* Mobile Responsive */
.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 1035;
    }
}

@media (max-width: 767.98px) {
    .app-topbar {
        padding: 0 14px;
    }

    .app-content {
        padding: 14px 12px 24px;
    }

    .dash-hero {
        padding: 16px 16px;
    }

    .hero-heading {
        font-size: 18px;
    }

    .kpi-value {
        font-size: 22px;
    }

    .dash-chart {
        height: 240px;
    }

    .btn-touch {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .kpi-card,
    .quick-tile,
    .app-sidebar {
        transition: none !important;
    }

    .kpi-card:hover,
    .quick-tile:hover {
        transform: none !important;
    }
}