﻿/* ========== ETIMET Modern Tema ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --bg: #f4f7fb;
    --bg-2: #eef2f7;
    --surface: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --nav: rgba(13,18,32,.85);
    --nav-hover: #152038;
    --accent: #22c55e;
    --accent-600: #16a34a;
    --ring: 0 10px 28px rgba(2,6,23,.14);
    --ring-strong: 0 16px 42px rgba(2,6,23,.18);
    --br: 16px;
    --br-sm: 12px;
    --glow: 0 0 0 3px rgba(34,197,94,.18);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: radial-gradient(1200px 480px at 90% -10%, rgba(34,197,94,.12), transparent 60%), linear-gradient(180deg,#fafcff 0%, var(--bg) 40%, var(--bg-2) 100%);
}

/* --------- Layout --------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

main {
    padding-top: 76px;
}

.container-fluid {
    padding: 0;
}

.full-width-iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

/* --------- Navbar --------- */
.navbar {
    background: var(--nav) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e5edf7 !important;
}

.nav-link {
    color: #cbd5e1 !important;
    font-size: 12.5px !important;
    transition: color .2s, transform .12s;
}

    .nav-link:hover {
        color: #ffffff !important;
        transform: translateY(-1px);
    }

.nav-link-info {
    color: var(--accent) !important;
    font-size: 10.5px !important;
}
.nav-link-infoad {margin-right:10px;
    color: var(--accent) !important;
    font-size: 8.5px !important;
}
    .nav-link-info:hover {
        color: var(--accent-600) !important;
    }

/* Toggler */
.navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
}

    .navbar .navbar-toggler:focus {
        box-shadow: none;
    }

/* --------- Sidebar --------- */
.sidebar {
    width: 230px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 58px;
    background: #0e172b;
    border-right: 1px solid rgba(255,255,255,.07);
    transform: translateX(-260px);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
    box-shadow: var(--ring);
    font-size: 12px; /* Burada 14px yerine 16px */
    border-radius: 0 var(--br) var(--br) 0;
}

    .sidebar.expanded {
        transform: translateX(0);
        box-shadow: var(--ring-strong);
    }

    .sidebar a {
        color: #e5e7eb;
        text-decoration: none;
        padding: 12px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(148,163,184,.08);
        transition: background .18s, padding-left .18s;
        font-size: 12px; /* Linkler için de garantiye al */
    }

        .sidebar a:hover {
            background: #162444;
            padding-left: 12px;
            color: #fff;
        }

/* --------- Rozetler --------- */
#arızacount,
#sikayetcount,
#ıscount2,
#ıscount,
#kapıcount,
#eysCount,
#kurulCount,
#kuruldışıCount,
#mesaicount,
#projelerimcount,
#projecount {
    background: #ffffff;
    color: #000000;
    border-radius: 6px;
    width: 32px;
    height: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: flex-start; /* Dikeyde üste hizala */
    justify-content: center; /* Yatayda ortala */
    padding-top: 4px; /* Yukarıdan biraz boşluk */
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    transition: transform .15s, background .2s;
}

    #arızacount:hover,
    #sikayetcount:hover,
    #ıscount2:hover,
    #ıscount:hover {
        transform: translateY(-2px);
        background: #f3f4f6;
    }
/* --------- Dropdown --------- */
.dropdown-menu {
    background: #0f192d;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 14px;
    padding: 10px;
    min-width: 240px;
    box-shadow: 0 14px 34px rgba(2,6,23,.35);
    animation: dropdownIn .16s ease-out;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.dropdown-item {
    color: #e5e7eb;
    font-size: 12.5px;
    border-radius: 9px;
    padding: .45rem .75rem;
    transition: background .16s, transform .12s;
}

    .dropdown-item:hover {
        background: #1a2a4d;
        color: #fff;
        transform: translateX(2px);
    }

/* Çok seviyeli - SOLA aç */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        right: auto;
        margin-top: -2px;
        margin-right: 8px;
        border-radius: 12px;
        transform-origin: right top;
    }

    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu .dropdown-menu.show {
        display: block;
    }

/* --------- Tipografi & Link vurguları --------- */
h1, h2, h3 {
    letter-spacing: .2px;
}

a.link-underline {
    text-decoration: none;
    border-bottom: 2px solid rgba(34,197,94,.35);
    transition: border-color .2s;
}

    a.link-underline:hover {
        border-color: var(--accent);
    }

/* --------- Kartlar / Paneller --------- */
.glass-card {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--br);
    box-shadow: var(--ring);
}

.card-modern {
    background: var(--surface);
    border: 1px solid #e7ecf3;
    border-radius: var(--br);
    box-shadow: var(--ring);
}

    .card-modern .card-header {
        background: linear-gradient(180deg,#ffffff, #f7f9fc);
        border-bottom: 1px solid #e9eef5;
        border-top-left-radius: var(--br);
        border-top-right-radius: var(--br);
        font-weight: 700;
    }

/* --------- Butonlar --------- */
.btn-modern {
    border-radius: 12px;
    font-weight: 600;
    padding: .55rem 1rem;
    border: 1px solid transparent;
    transition: transform .12s, box-shadow .2s, background .2s, color .2s;
}

    .btn-modern:focus {
        outline: none;
        box-shadow: var(--glow);
    }

.btn-accent {
    background: var(--accent);
    color: #062512;
}

    .btn-accent:hover {
        background: var(--accent-600);
        color: #041a0d;
        transform: translateY(-1px);
    }

.btn-ghost {
    background: transparent;
    border: 1px solid #d8e0ea;
    color: #0f172a;
}

    .btn-ghost:hover {
        background: #eef3f8;
    }

/* --------- Tablo görünümü --------- */
.table-modern {
    --row: #f8fbff;
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ring);
}

    .table-modern thead th {
        background: linear-gradient(180deg,#fff,#f6f9fe);
        color: #0f172a;
        font-weight: 700;
        border-bottom: 1px solid #e6eef6;
    }

    .table-modern tbody tr:nth-child(even) {
        background: var(--row);
    }

    .table-modern tbody tr:hover {
        background: #eef5ff;
    }

/* --------- Scrollbar --------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* --------- Küçük düzeltmeler --------- */
.badge {
    font-size: 11px !important;
    border-radius: 12px;
}

.msj {
    background: #2563eb;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .85em;
}

/* --------- Dark Mode (opsiyonel) --------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1220;
        --bg-2: #0a1020;
        --surface: #101a2f;
        --ink: #e6edf7;
        --muted: #9fb0c7;
        --nav: rgba(8,13,26,.9);
        --nav-hover: #0e1a33;
        --ring: 0 10px 28px rgba(0,0,0,.35);
    }

    .navbar {
        border-color: rgba(255,255,255,.06);
    }

    .sidebar {
        background: #0a1326;
    }

    .dropdown-menu {
        background: #0b1831;
    }

    .card-modern {
        border-color: #1d2b48;
    }

    .table-modern {
        background: #0f1a31;
        border-color: #1d2b48;
    }

        .table-modern thead th {
            background: #0e1a33;
            border-color: #1d2b48;
            color: #e6edf7;
        }
}
.same-menu-navbar {
    background: #0d1628 !important; /* sidebar ile aynı renk */
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    .same-menu-navbar .navbar-brand {
        font-weight: 800;
        color: #e2e8f0 !important;
        letter-spacing: .08em;
    }

    .same-menu-navbar .nav-link {
        color: #cbd5e1 !important;
        font-size: 13px;
    }

        .same-menu-navbar .nav-link:hover {
            color: #fff !important;
        }
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060
}

.same-menu-navbar {
    background: #0d1628 !important;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.06)
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
}

.bg-layer {
    pointer-events: none
}

@media (max-width:991.98px) {
    .navbar .navbar-collapse {
        background: #0d1628;
        border-radius: 0 0 12px 12px;
        padding: .5rem 1rem
    }
}
