﻿/* ======================
   THEME VARIABLES
   ====================== */
:root{
    --bg: #151b23;
    --panel: #0f1520;
    --panel-2: #121a28;
    --text: #e8edf5;
    --muted: rgba(232,237,245,.65);
    --muted-2: rgba(232,237,245,.35);

    --accent: #E1521F;
    --accent-soft: rgba(225,82,31,.15);

    --border: rgba(255,255,255,.07);
    --shadow: 0 10px 30px rgba(0,0,0,.35);

    --radius: 18px;
    --radius-sm: 12px;
}

/* ======================
   GLOBAL
   ====================== */
html, body {
    height: 100%;
}

body.app {
    background: radial-gradient(1200px 700px at 15% 0%, rgba(225,82,31,.08), transparent 55%),
                radial-gradient(900px 500px at 90% 0%, rgba(85,130,255,.08), transparent 50%),
                var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.content {
    min-height: 100vh;
    background: var(--bg);
}

/* Text helpers */
.text-muted-2 { color: var(--muted-2) !important; }

/* ======================
   TOPBAR (MOBILE)
   ====================== */
.topbar{
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(15,21,32,.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.topbar-title{
    font-weight: 700;
    letter-spacing: .2px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-title {
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

/* Icon button */
.btn-icon{
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text);
    width: 44px;
    height: 40px;
    border-radius: 12px;
    box-shadow: none;
}
.btn-icon:hover{
    border-color: rgba(225,82,31,.40);
    background: rgba(225,82,31,.08);
}

/* ======================
   LAYOUT GRID
   ====================== */
.sidebar{
    position: fixed;
    inset: 0 auto 0 0;
    width: 290px;
    background: linear-gradient(180deg, rgba(18,26,40,.92), rgba(15,21,32,.92));
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.content {
    margin-left: 290px;
    min-height: 100vh;
    background: var(--bg);
}

@media (max-width: 991.98px){
    .content {
        margin-left: 0;
        background: var(--bg);
    }
}

.content-inner{
    padding: 28px 28px 50px 28px;
}

@media (max-width: 991.98px){
    .content-inner{
        padding: 18px 16px 40px 16px;
    }
}

/* ======================
   SIDEBAR
   ====================== */
.sidebar-header{
    padding: 18px 18px 12px 18px;
    border-bottom: 1px solid var(--border);
}

.brand{
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sidebar .brand-title {
    width: 100%;
}

.brand-logo {
    display: block;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.desktop-logo {
    width: 160px; 
    max-width: 100%;
}

.mobile-logo {
    width: 110px;
    max-width: 100%;
}

.brand-title {
    min-width: 0;
}

.brand-sub{
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-nav{
    padding: 14px;
    overflow: auto;
}

.sidebar-section{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
    padding: 10px 10px 8px 10px;
}

.sidebar-link{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    color: rgba(232,237,245,.88);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .16s ease;
    margin-bottom: 6px;
}

.sidebar-link .link-icon{
    width: 26px;
    text-align: center;
    opacity: .9;
}

.sidebar-link:hover{
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.sidebar-link.active{
    background: var(--accent-soft);
    border-color: rgba(225,82,31,.35);
    color: var(--text);
}

.sidebar-footer{
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 12px;
}

.logout-form {
    margin-top: 10px;
}

.logout-button {
    width: 100%;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: rgba(232,237,245,.88);
    border-radius: 12px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    transition: all .16s ease;
}

    .logout-button:hover {
        border-color: rgba(225,82,31,.35);
        background: rgba(225,82,31,.08);
        color: #fff;
    }

/* ======================
   OFFCANVAS
   ====================== */
.sidebar-offcanvas{
    background: linear-gradient(180deg, rgba(18,26,40,.98), rgba(15,21,32,.98));
    color: var(--text);
    border-right: 1px solid var(--border);
}
.sidebar-offcanvas .offcanvas-header{
    border-bottom: 1px solid var(--border);
}

@media (max-width: 420px) {
    .mobile-logo {
        width: 90px;
    }

    .topbar-title {
        font-size: 15px;
    }
}

.mobile-logout-wrap {
    padding: 14px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

/* ======================
   CARDS / PANELS BASE
   ====================== */
.panel{
    background: rgba(18,26,40,.78);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.panel-header{
    padding: 18px 18px 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel-body{
    padding: 18px;
}

/*  REFRESH BUTTON  */
.refresh-data-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(225,82,31,.30);
    background: rgba(225,82,31,.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
    transition: all .18s ease;
}

    .refresh-data-btn:hover {
        background: rgba(225,82,31,.16);
        border-color: rgba(225,82,31,.50);
        box-shadow: 0 8px 18px rgba(225,82,31,.15);
    }

    .refresh-data-btn:disabled {
        opacity: .65;
        cursor: not-allowed;
    }


/* ======================
   FILTERS
   ====================== */

.index-filters {
    margin-bottom: 18px;
}

.index-filters-inner {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid rgba(225,82,31,.28);
    border-radius: 12px;
}

.filter-search {
    flex: 1 1 260px;
}

.filter-status {
    flex: 0 0 220px;
}

.filter-input,
.filter-select {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    transition: border-color .16s ease, background .16s ease;
}

    .filter-input:focus,
    .filter-select:focus {
        border-color: rgba(225,82,31,.35);
        background: rgba(255,255,255,.05);
    }

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 42px;
    background-image: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(232,237,245,0.78)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 14px center;
    background-size: auto, 14px;
}

    .filter-select option {
        background-color: #121a28;
        color: #e8edf5;
    }

    .filter-select:focus {
        border-color: rgba(225,82,31,.45);
        box-shadow: 0 0 0 3px rgba(225,82,31,.12), 0 8px 18px rgba(225,82,31,.10);
    }

/* ======================
   INDEX CARDS
   ====================== */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .2px;
    margin: 0;
}

.page-subtitle {
    margin-top: 6px;
    font-size: 14px;
}

.muni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 240px));
    gap: 16px;
    justify-content: start;
}

@media (max-width: 1400px) {
    .muni-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 230px));
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    .muni-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .muni-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.muni-card {
    position: relative;
    height: 148px;
    border-radius: 18px;
    overflow: visible;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), linear-gradient(135deg, rgba(24,34,52,.98), rgba(12,16,24,.98));
    box-shadow: 0 14px 36px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.03), 0 10px 26px rgba(225,82,31,.12);
    display: block;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.muni-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}


    .muni-card-inner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.16) 38%, rgba(0,0,0,.30)), radial-gradient(220px 90px at 85% 0%, rgba(225,82,31,.10), transparent 70%);
        opacity: 1;
        z-index: 1;
    }

.muni-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.muni-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-align: center;
    transform: translateY(-4px);
}

.muni-title {
    max-width: 100%;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: .01em;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,.92), 0 8px 18px rgba(0,0,0,.55);
}

/* Hover */

.muni-card:hover {
    transform: translateY(-3px);
    border-color: rgba(225,82,31,.38);
    box-shadow: 0 18px 42px rgba(0,0,0,.48), 0 0 0 1px rgba(225,82,31,.10), 0 16px 34px rgba(225,82,31,.20), 0 0 24px rgba(225,82,31,.10);
}

.muni-card:focus-visible {
    outline: 2px solid rgba(225,82,31,.60);
    outline-offset: 3px;
}

/* ======================
   DETAY HINT
   ====================== */

.muni-hover-hint {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(232,237,245,.72);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, color .18s ease;
    pointer-events: none;
}

    .muni-hover-hint i {
        font-size: 11px;
        transition: transform .18s ease;
    }

.muni-card:hover .muni-hover-hint {
    opacity: 1;
    transform: translateY(0);
    color: rgba(232,237,245,.94);
}

    .muni-card:hover .muni-hover-hint i {
        transform: translateX(2px);
    }

@media (max-width: 991.98px), (hover: none) {
    .muni-hover-hint {
        display: none;
    }
}

/* ======================
   VERSION
   ====================== */

.muni-version-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 5;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15,21,32,.88);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 24px rgba(225,82,31,.28);
    backdrop-filter: blur(10px);
}

.version-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    color: rgba(232,237,245,.95);
    white-space: nowrap;
}

.muni-version-badge.version-old {
    background: rgba(231, 76, 60, 0.16);
    border: 1px solid rgba(231, 76, 60, 0.45);
    box-shadow: 0 12px 24px rgba(231, 76, 60, 0.25), 0 0 0 1px rgba(231, 76, 60, 0.25);
}

    .muni-version-badge.version-old .version-text {
        color: #ffb3ad;
    }

/* ======================
   STATUS STRIP
   ====================== */

.muni-status-group {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8,12,18,.78);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 18px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.03);
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: none;
}

    .muni-status-group.no-data {
        opacity: 1;
    }

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    line-height: 1;
    user-select: none;
}

    .status-item i {
        font-size: 15px;
        line-height: 1;
    }

.status-count {
    font-size: 12px;
    letter-spacing: .02em;
    color: rgba(232,237,245,.92);
    min-width: 10px;
    text-align: left;
}

.status-item.ok i {
    color: #2ecc71;
}

.status-item.warn i {
    color: #f1c40f;
}

.status-item.bad i {
    color: #e74c3c;
}

.status-item.none i {
    color: #676f7e;
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 991.98px) {
    .muni-card {
        height: 132px;
    }

    .muni-title {
        font-size: 15px;
    }

    .muni-center-block {
        gap: 10px;
        transform: translateY(-2px);
    }
}

@media (max-width: 576px) {
    .muni-card {
        height: 126px;
    }

    .muni-title {
        max-width: 100%;
        font-size: 15px;
    }

    .muni-center-block {
        gap: 8px;
        transform: translateY(0);
    }

    .muni-version-badge {
        top: -8px;
        right: -8px;
        padding: 7px 10px;
    }

    .version-text {
        font-size: 11px;
    }

    .muni-status-group {
        gap: 8px;
        padding: 7px 9px;
    }

    .status-item i {
        font-size: 14px;
    }
}

/* ======================
   DETAILS PAGE
   ====================== */

.details-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.details-kurum {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .2px;
    margin: 0;
}

.details-sub {
    margin-top: 6px;
    font-size: 14px;
}

.version-pill {
    background: rgba(18,26,40,.78);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    min-width: 220px;
}

.version-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted-2);
}

.version-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .06em;
    color: var(--text);
}

@media (max-width: 576px) {
    .details-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .version-pill {
        width: 100%;
        min-width: 0;
    }
}

.details-head {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.details-info-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18,26,40,.78);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    min-width: 0;
    flex: 1 1 auto;
}

.details-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 20px rgba(0,0,0,.20);
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-titleblock {
    min-width: 0;
}

.details-kurum {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .2px;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.details-sub {
    margin-top: 6px;
    font-size: 14px;
}

.version-pill {
    background: rgba(18,26,40,.78);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    min-width: 220px;
    flex: 0 0 auto;
}

.version-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted-2);
}

.version-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .06em;
    color: var(--text);
}

.details-filter-panel {
    margin-bottom: 18px;
}

@media (max-width: 576px) {
    .details-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .details-info-pill {
        width: 100%;
        padding: 12px 14px;
    }

    .details-logo-wrap {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .version-pill {
        width: 100%;
        min-width: 0;
    }
}

/* grid for update cards */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.update-card {
    grid-column: span 4; 
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(18,26,40,.68);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

@media (max-width: 1199.98px) {
    .update-card {
        grid-column: span 6;
    }
}

@media (max-width: 991.98px) {
    .update-card {
        grid-column: span 12;
    }
}

/* top section */
.update-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.update-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.update-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.88);
}

.update-head-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.update-count {
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: .03em;
}

    .update-count span {
        color: rgba(232,237,245,.92);
        font-weight: 700;
    }
/* body */
.update-body {
    padding: 14px 16px 16px 16px;
}

.update-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}

.update-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
}

.update-value {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255,255,255,.88);
    text-align: right;
}

.update-hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(232,237,245,.80);
}

/* warning area inside card */
.update-alert {
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    color: rgba(255,255,255,.86);
}

/* ======================
   STATUS COLORS
   ====================== */

/* OK: green accent */
.status-ok {
    border-color: rgba(46, 204, 113, .28);
}

    .status-ok::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 300px at 10% 0%, rgba(46,204,113,.14), transparent 55%);
        pointer-events: none;
    }

    .status-ok .update-badge {
        border-color: rgba(46,204,113,.35);
        background: rgba(46,204,113,.12);
    }

/* WARN: yellow accent */
.status-warn {
    border-color: rgba(241, 196, 15, .28);
}

    .status-warn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 300px at 10% 0%, rgba(241,196,15,.16), transparent 55%);
        pointer-events: none;
    }

    .status-warn .update-badge {
        border-color: rgba(241,196,15,.40);
        background: rgba(241,196,15,.12);
        color: rgba(255,255,255,.92);
    }

    .status-warn .update-alert {
        border-color: rgba(241,196,15,.35);
        background: rgba(241,196,15,.10);
    }

/* BAD: red accent */
.status-bad {
    border-color: rgba(231, 76, 60, .30);
}

    .status-bad::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 300px at 10% 0%, rgba(231,76,60,.16), transparent 55%);
        pointer-events: none;
    }

    .status-bad .update-badge {
        border-color: rgba(231,76,60,.45);
        background: rgba(231,76,60,.14);
    }

    .status-bad .update-alert {
        border-color: rgba(231,76,60,.40);
        background: rgba(231,76,60,.12);
    }

/* NO DATA: gray accent */
.status-nodata {
    border-color: rgba(108, 117, 125, .35);
}

    .status-nodata::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 300px at 10% 0%, rgba(108,117,125,.14), transparent 55%);
        pointer-events: none;
    }

    .status-nodata .update-badge {
        border-color: rgba(108,117,125,.40);
        background: rgba(108,117,125,.14);
        color: rgba(255,255,255,.86);
    }

    .status-nodata .update-alert {
        border-color: rgba(108,117,125,.35);
        background: rgba(108,117,125,.10);
        color: rgba(232,237,245,.86);
    }

/* Slight hover polish (optional) */
.update-card {
    transition: transform .16s ease, border-color .16s ease;
}

    .update-card:hover {
        transform: translateY(-2px);
    }

/* Version*/

.version-pill.version-old {
    border: 1px solid rgba(231, 76, 60, 0.45);
    background: linear-gradient( 180deg, rgba(231, 76, 60, 0.18), rgba(231, 76, 60, 0.08) );
    box-shadow: 0 10px 24px rgba(231, 76, 60, 0.18), 0 0 0 1px rgba(231, 76, 60, 0.25);
}

.version-warning {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffb3ad;
    background: rgba(231, 76, 60, 0.14);
    border: 1px solid rgba(231, 76, 60, 0.35);
    padding: 4px 8px;
    border-radius: 999px;
    width: fit-content;
}

@media (max-width: 576px) {
    .version-warning {
        font-size: 11px;
        padding: 3px 7px;
    }

    .version-value {
        font-size: 16px;
    }
}

/* ======================
   REPORT PAGE
   ====================== */

.report-panel {
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

    .report-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(225,82,31,.55), rgba(225,82,31,0));
        pointer-events: none;
    }

.report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.report-label-icon {
    margin-right: 8px;
    color: rgba(225,82,31,.92);
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.report-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--text);
}

.report-date-pill {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(225,82,31,.18);
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(225,82,31,.06);
}

.version-value-sm {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.report-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.report-meta-item {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid rgba(225,82,31,.14);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.02);
}

.report-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--muted-2);
}

.report-meta-value {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(232,237,245,.92);
    word-break: break-word;
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.report-stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(225,82,31,.16);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18), 0 0 0 1px rgba(225,82,31,.03);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

    .report-stat-card:hover {
        transform: translateY(-2px);
        border-color: rgba(225,82,31,.28);
        box-shadow: 0 12px 26px rgba(0,0,0,.22), 0 8px 18px rgba(225,82,31,.08);
    }

.report-stat-label {
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: .06em;
}

.report-stat-value {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
}

.report-recipients {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-recipient-row {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border: 1px solid rgba(225,82,31,.12);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.report-recipient-value {
    margin-top: 6px;
    color: rgba(232,237,245,.88);
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .report-meta-grid,
    .report-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .report-meta-grid,
    .report-stats-grid {
        grid-template-columns: 1fr;
    }

    .report-date-pill {
        width: 100%;
        min-width: 0;
    }
}

/* ======================
   MUNICIPALITY SERVICES PAGE
   ====================== */

.service-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badge {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    color: #fff;
}

    .service-badge:hover {
        transform: translateY(-1px);
    }

.service-badge-cbs {
    background: rgba(225,82,31,.14);
    border: 1px solid rgba(225,82,31,.32);
    box-shadow: 0 8px 18px rgba(225,82,31,.10);
}

.service-badge-kent {
    background: rgba(59,130,246,.14);
    border: 1px solid rgba(59,130,246,.28);
    box-shadow: 0 8px 18px rgba(59,130,246,.10);
}

.service-badge-eimar {
    background: rgba(46,204,113,.14);
    border: 1px solid rgba(46,204,113,.28);
    box-shadow: 0 8px 18px rgba(46,204,113,.10);
}

.service-badge-eruhsat {
    background: rgba(168, 85, 247, .14);
    border: 1px solid rgba(168, 85, 247, .30);
    box-shadow: 0 8px 18px rgba(168, 85, 247, .10);
}

.service-badge-toplanma {
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .30);
    box-shadow: 0 8px 18px rgba(245, 158, 11, .10);
}

.service-badge-harita {
    background: rgba(132, 204, 22, .14);
    border: 1px solid rgba(132, 204, 22, .30);
    box-shadow: 0 8px 18px rgba(132, 204, 22, .10);
}

.service-badge-default {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 576px) {
    .service-badge-list {
        gap: 8px 10px;
    }
}

/* ===================================
   MUNICIPALITY SERVICE CARDS
   =================================== */

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(20,1fr);
    gap: 18px;
}

.service-card {
    grid-column: span 4;
    position: relative;
    background: rgba(18,26,40,.88);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
    transition: .16s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
    }

.service-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.service-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225,82,31,.12);
    color: rgba(225,82,31,.9);
}

.service-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.service-card-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted-2);
}

.service-card-alert {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e11d2e;
    color: white;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(225,29,46,.35);
}

.service-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
}

.service-badge-ok .service-status-dot {
    background: #22c55e;
}

.service-badge-error {
    background: linear-gradient(135deg, #e11d2e, #9b1220) !important;
    border-color: rgba(255,255,255,.28) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 8px 20px rgba(225,29,46,.28) !important;
}

    .service-badge-error .service-status-dot {
        background: #fff;
    }

.service-card-has-error {
    border-color: rgba(225,29,46,.35);
    box-shadow: 0 0 0 1px rgba(225,29,46,.18), 0 12px 32px rgba(225,29,46,.10);
}

/* ---------- Links ---------- */

.service-badge,
.service-badge:visited,
.service-badge:hover,
.service-badge:focus,
.service-badge:active {
    text-decoration: none !important;
    color: #fff !important;
}

@media (max-width:1200px) {

    .service-card {
        grid-column: span 6;
    }
}

@media (max-width:768px) {

    .service-card {
        grid-column: span 12;
    }
}

/* ======================
   LOGIN PAGE
   ====================== */

.login-page {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(900px 500px at 20% 0%, rgba(225,82,31,.12), transparent 55%), radial-gradient(900px 500px at 90% 10%, rgba(85,130,255,.08), transparent 50%), var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-card {
    width: min(100%, 420px);
    background: linear-gradient(180deg, rgba(18,26,40,.92), rgba(15,21,32,.94));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 12px 34px rgba(225,82,31,.12);
    padding: 28px;
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.login-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .2px;
}

.login-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 8px;
}

    .login-field label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: var(--muted-2);
        font-weight: 800;
    }

    .login-field input {
        box-sizing: border-box;
        display: block;
        width: 100%;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.09);
        background: rgba(255,255,255,.03);
        color: var(--text);
        padding: 13px 14px;
        outline: none;
        transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

        .login-field input:focus {
            border-color: rgba(225,82,31,.55);
            box-shadow: 0 0 0 4px rgba(225,82,31,.10);
            background: rgba(255,255,255,.045);
        }

.login-button {
    margin-top: 6px;
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, rgba(225,82,31,.95), rgba(225,82,31,.72));
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(225,82,31,.22);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 32px rgba(225,82,31,.30);
    }

.login-validation {
    color: #ffb3ad;
    font-size: 13px;
}

/* ====================== 
    LOGIN PAGE
   ====================== */ 

.login-page {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(900px 500px at 20% 0%, rgba(225,82,31,.12), transparent 55%), radial-gradient(900px 500px at 90% 10%, rgba(85,130,255,.08), transparent 50%), var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-card {
    width: min(100%, 420px);
    background: linear-gradient(180deg, rgba(18,26,40,.92), rgba(15,21,32,.94));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 12px 34px rgba(225,82,31,.12);
    padding: 28px;
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.login-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .2px;
}

.login-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 8px;
}

    .login-field label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: var(--muted-2);
        font-weight: 800;
    }

    .login-field input {
        width: 100%;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.09);
        background: rgba(255,255,255,.03);
        color: var(--text);
        padding: 13px 14px;
        outline: none;
        transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

        .login-field input:focus {
            border-color: rgba(225,82,31,.55);
            box-shadow: 0 0 0 4px rgba(225,82,31,.10);
            background: rgba(255,255,255,.045);
        }

.login-button {
    margin-top: 6px;
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, rgba(225,82,31,.95), rgba(225,82,31,.72));
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(225,82,31,.22);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 32px rgba(225,82,31,.30);
    }

.login-validation {
    color: #ffb3ad;
    font-size: 13px;
}

/* ======================
   OVERVIEW PAGE
   ====================== */

.overview-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.overview-summary-card {
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(18,26,40,.78);
    box-shadow: var(--shadow);
}

.overview-summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
}

.overview-summary-value {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 900;
}

.overview-summary-card.ok {
    border-color: rgba(46,204,113,.22);
}

.overview-summary-card.warn {
    border-color: rgba(241,196,15,.24);
}

.overview-summary-card.bad {
    border-color: rgba(231,76,60,.28);
}

.overview-summary-card.nodata {
    border-color: rgba(108,117,125,.24);
}

.overview-panel {
    overflow: hidden;
}

.overview-head {
    display: grid;
    grid-template-columns: 260px repeat(4, 1fr);
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
}

.overview-row {
    display: grid;
    grid-template-columns: 260px repeat(4, 1fr);
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .16s ease;
}

    .overview-row:hover {
        background: rgba(255,255,255,.02);
    }

    .overview-row:last-child {
        border-bottom: none;
    }

.overview-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-icon {
    color: rgba(225,82,31,.92);
}

.overview-name {
    font-weight: 700;
    line-height: 1.35;
}

.overview-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    border: 1px solid transparent;
}

.overview-badge-ok {
    background: rgba(46,204,113,.12);
    border-color: rgba(46,204,113,.24);
}

.overview-badge-warn {
    background: rgba(241,196,15,.12);
    border-color: rgba(241,196,15,.28);
}

.overview-badge-bad {
    background: rgba(231,76,60,.14);
    border-color: rgba(231,76,60,.30);
}

.overview-badge-nodata {
    background: rgba(108,117,125,.12);
    border-color: rgba(108,117,125,.24);
}

@media (max-width: 1400px) {

    .overview-head,
    .overview-row {
        grid-template-columns: 220px repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {

    .overview-head {
        display: none;
    }

    .overview-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .overview-col-status::before {
        display: block;
        margin-bottom: 8px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .10em;
        color: var(--muted-2);
    }

    .overview-col-status:nth-child(2)::before {
        content: "OK";
    }

    .overview-col-status:nth-child(3)::before {
        content: "Uyarı";
    }

    .overview-col-status:nth-child(4)::before {
        content: "Kritik";
    }

    .overview-col-status:nth-child(5)::before {
        content: "Veri Yok";
    }

    .overview-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .overview-summary-grid {
        grid-template-columns: 1fr;
    }

    .overview-row {
        padding: 14px;
    }

    .overview-summary-card {
        padding: 16px;
    }

    .overview-summary-value {
        font-size: 24px;
    }
}

/* ======================
   OVERVIEW MODES
   ====================== */

.overview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.overview-mode-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-mode-btn,
.overview-mail-btn {
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    color: var(--text);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: all .16s ease;
}

    .overview-mode-btn:hover,
    .overview-mail-btn:hover {
        border-color: rgba(225,82,31,.34);
        background: rgba(225,82,31,.08);
    }

    .overview-mode-btn.active {
        background: rgba(225,82,31,.14);
        border-color: rgba(225,82,31,.34);
    }

.overview-summary-mode {
    display: block;
}

.overview-detail-mode {
    display: none;
}

body.overview-detail-active .overview-summary-mode {
    display: none;
}

body.overview-detail-active .overview-detail-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-empty {
    color: var(--muted-2);
    font-weight: 700;
}

.overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 576px) {

    .overview-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .overview-mode-switch {
        width: 100%;
    }

    .overview-mode-btn,
    .overview-mail-btn {
        flex: 1;
    }
}

