html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    color: #eaf2ff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(40, 80, 180, 0.30), transparent 30%), radial-gradient(circle at top right, rgba(0, 180, 255, 0.18), transparent 25%), linear-gradient(135deg, #081120 0%, #0b1830 35%, #10264b 65%, #081120 100%);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.custom-navbar {
    background: rgba(8, 16, 32, 0.78);
    min-height: 82px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(120, 170, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
}

.brand-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 10px;
    padding: 0;
}

.brand-logo {
    width: 240px;
    height: 70px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.custom-nav-link {
    color: #dbe8ff !important;
    font-weight: 500;
    transition: 0.2s ease;
}

    .custom-nav-link:hover {
        color: #7fd3ff !important;
    }

.container,
.container-fluid {
    color: #eaf2ff;
}

.card {
    background: rgba(13, 23, 43, 0.72);
    border: 1px solid rgba(128, 173, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    color: #eaf2ff;
}

.card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(128, 173, 255, 0.10);
    color: #ffffff;
    font-weight: 600;
}

.card-body p,
.text-muted {
    color: #aebfdc !important;
}

.table {
    color: #eaf2ff;
    margin-bottom: 0;
}

    .table thead {
        background: rgba(255,255,255,0.04);
    }

        .table thead th {
            color: #bcd3ff;
            border-bottom: 1px solid rgba(140, 180, 255, 0.20);
            font-weight: 600;
            font-size: 0.95rem;
        }

    .table td {
        border-color: rgba(140, 180, 255, 0.10);
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.bg-light {
    background: rgba(255,255,255,0.03) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1570ef 0%, #3aa0ff 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(21, 112, 239, 0.25);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0f62d7 0%, #238af0 100%);
    }

.btn-outline-dark {
    color: #dbe8ff;
    border-color: rgba(180, 210, 255, 0.30);
}

    .btn-outline-dark:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
        border-color: rgba(180, 210, 255, 0.50);
    }

.btn-outline-danger {
    border-radius: 10px;
}

.badge {
    border-radius: 10px;
    padding: 0.5em 0.75em;
}

.progress {
    background-color: rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #1d8fff, #7cd9ff);
    font-weight: 600;
    font-size: 0.75rem;
}

.alert-success {
    background: rgba(30, 120, 70, 0.18);
    color: #b7ffd3;
    border: 1px solid rgba(70, 180, 110, 0.25);
    border-radius: 14px;
}

.alert-danger {
    background: rgba(120, 30, 45, 0.18);
    color: #ffd0d8;
    border: 1px solid rgba(220, 80, 110, 0.25);
    border-radius: 14px;
}

.modal-content {
    background: #0d1730;
    color: #eaf2ff;
    border: 1px solid rgba(128, 173, 255, 0.18);
    border-radius: 18px;
}

.modal-header,
.modal-footer {
    border-color: rgba(128, 173, 255, 0.10);
}

.form-control,
.form-select,
textarea {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(150, 190, 255, 0.16) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}

    .form-control:focus,
    .form-select:focus,
    textarea:focus {
        border-color: #4ea4ff !important;
        box-shadow: 0 0 0 0.15rem rgba(78, 164, 255, 0.25) !important;
    }

.form-label {
    color: #d7e7ff;
    font-weight: 500;
}

.custom-footer {
    color: #8fa7ca;
    border-top: 1px solid rgba(128, 173, 255, 0.10);
    background: rgba(7, 14, 28, 0.70);
    padding: 16px 0;
}

/* Table hover yazı rengi düzeltmesi */
.table-hover > tbody > tr:hover > * {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.035) !important;
}

.table tbody td strong {
    color: #ffffff !important;
}

.table-hover tbody tr:hover td strong {
    color: #ffffff !important;
}

.table-hover tbody tr:hover .text-muted {
    color: #b8cfff !important;
}

.table-hover tbody tr:hover a {
    color: #8fd6ff !important;
}

.table-light th {
    color: #081120 !important; /* üstteki koyu lacivert tona yakın */
}

.table-light {
    --bs-table-color: #081120 !important;
}
.navbar-menu {
    display: flex !important;
    align-items: center !important;
}

    .navbar-menu .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        gap: 18px;
    }

.custom-nav-link {
    color: #dbe8ff !important;
    font-weight: 600;
    opacity: 0.95;
}

    .custom-nav-link:hover {
        color: #7fd3ff !important;
    }


.edit-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.edit-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

    .edit-card-header h5 {
        margin: 0;
        color: #ffffff;
        font-weight: 700;
    }

    .edit-card-header span {
        display: block;
        margin-top: 4px;
        color: #9fb7da;
        font-size: 0.85rem;
    }

.edit-card-body {
    padding: 20px;
}

.form-label {
    color: #dbeafe;
    font-weight: 600;
    font-size: 0.86rem;
}

.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #ffffff;
    border-radius: 10px;
}

    .form-control:focus,
    .form-select:focus {
        background-color: rgba(15, 23, 42, 0.96);
        color: #ffffff;
        border-color: #38bdf8;
        box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.16);
    }

    .form-control[readonly] {
        background-color: rgba(30, 41, 59, 0.9);
        color: #94a3b8;
    }

.payment-summary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 16px;
    padding: 18px;
}

    .payment-summary span {
        display: block;
        color: #9fb7da;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .payment-summary strong {
        display: block;
        font-size: 1.7rem;
        font-weight: 800;
    }

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Edit/Create dropdown fix */
.form-select,
.edit-card .form-select,
.modal .form-select {
    background-color: #0f1b2f !important;
    color: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 10px !important;
}

    /* Dropdown açılınca option arka planı */
    .form-select option,
    .edit-card .form-select option,
    .modal .form-select option {
        background-color: #0f1b2f !important;
        color: #ffffff !important;
    }

        /* Seçili option */
        .form-select option:checked,
        .edit-card .form-select option:checked,
        .modal .form-select option:checked {
            background-color: #006b3f !important;
            color: #ffffff !important;
        }

        /* Hover / focus option - Celtic koyu yeşil */
        .form-select option:hover,
        .form-select option:focus,
        .edit-card .form-select option:hover,
        .edit-card .form-select option:focus,
        .modal .form-select option:hover,
        .modal .form-select option:focus {
            background-color: #006b3f !important;
            color: #ffffff !important;
            box-shadow: 0 0 10px 100px #006b3f inset !important;
        }

    /* Select focus olunca kenarlık */
    .form-select:focus {
        background-color: #0f1b2f !important;
        color: #ffffff !important;
        border-color: #006b3f !important;
        box-shadow: 0 0 0 0.2rem rgba(0, 107, 63, 0.25) !important;
    }

/* ================================
   RESPONSIVE BASE
================================ */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Büyük ekranlarda nefes alan panel */
@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 34px;
        padding-right: 34px;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .container-fluid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .d-flex.justify-content-between.align-items-center {
        gap: 16px;
        align-items: flex-start !important;
    }
}

/* Mobil */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1, h2 {
        font-size: 1.35rem;
    }

    h5 {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
}

/* ================================
   EDIT PAGE RESPONSIVE
================================ */

.edit-card {
    min-height: 100%;
}

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Laptop altı */
@media (max-width: 1199.98px) {
    .edit-card {
        min-height: auto;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .edit-actions {
        justify-content: stretch;
    }

        .edit-actions .btn {
            flex: 1;
        }
}

/* Mobil */
@media (max-width: 575.98px) {
    .edit-card-header {
        padding: 14px 16px;
    }

    .edit-card-body {
        padding: 16px;
    }

    .edit-actions {
        flex-direction: column-reverse;
    }

        .edit-actions .btn {
            width: 100%;
        }

    textarea.form-control {
        min-height: 140px;
    }

    .payment-summary strong {
        font-size: 1.35rem;
    }
}

/* ================================
   PROJECT TABLE RESPONSIVE
================================ */

.ops-project-table {
    min-width: 1000px;
}

/* Tablet ve altında tablo yatay scroll */
@media (max-width: 991.98px) {
    .card-body.p-0 {
        overflow-x: auto;
    }

    .ops-project-table {
        min-width: 920px;
    }
}

/* Mobilde tabloyu kart yap */
@media (max-width: 767.98px) {
    .card-body.p-0 {
        overflow-x: visible;
    }

    .ops-project-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 14px;
    }

        .ops-project-table thead {
            display: none;
        }

        .ops-project-table tbody,
        .ops-project-table tr,
        .ops-project-table td {
            display: block;
            width: 100%;
        }

            .ops-project-table tbody tr:not(.collapse) {
                background: rgba(15, 23, 42, 0.88);
                border: 1px solid rgba(148, 163, 184, 0.18);
                border-radius: 18px;
                padding: 14px;
                margin-bottom: 14px;
                box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
            }

                .ops-project-table tbody tr:not(.collapse) td {
                    border: none;
                    padding: 9px 4px;
                    display: flex;
                    justify-content: space-between;
                    gap: 16px;
                    align-items: center;
                    color: #ffffff;
                }

                    .ops-project-table tbody tr:not(.collapse) td::before {
                        content: attr(data-label);
                        color: #9fb7da;
                        font-weight: 700;
                        font-size: 0.78rem;
                        min-width: 115px;
                    }

                    .ops-project-table tbody tr:not(.collapse) td:first-child {
                        display: block;
                        padding-bottom: 12px;
                        border-bottom: 1px solid rgba(148, 163, 184, 0.14);
                    }

                        .ops-project-table tbody tr:not(.collapse) td:first-child::before {
                            display: none;
                        }

                    .ops-project-table tbody tr:not(.collapse) td.text-end {
                        justify-content: flex-start;
                        flex-wrap: wrap;
                        padding-top: 14px;
                    }

                        .ops-project-table tbody tr:not(.collapse) td.text-end::before {
                            display: none;
                        }

                        .ops-project-table tbody tr:not(.collapse) td.text-end .btn,
                        .ops-project-table tbody tr:not(.collapse) td.text-end form {
                            flex: 1;
                        }

                        .ops-project-table tbody tr:not(.collapse) td.text-end .btn {
                            width: 100%;
                        }

        .ops-project-table .progress {
            width: 170px;
            max-width: 100%;
        }

        .ops-project-table tr.collapse td {
            display: block;
            padding: 0 !important;
            background: transparent !important;
        }

        .ops-project-table tr.collapse.show {
            display: block;
            margin-top: -8px;
            margin-bottom: 14px;
        }

            .ops-project-table tr.collapse.show td > div {
                border-radius: 18px;
                border: 1px solid rgba(148, 163, 184, 0.18);
            }

    /* =========================
   SENCAR LOGIN FINAL
========================= */

    .auth-body {
        margin: 0 !important;
        min-height: 100vh !important;
        background: #020817 !important;
        overflow-x: hidden !important;
    }

    .auth-login-page {
        min-height: 100vh !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        color: #ffffff !important;
        background: radial-gradient(circle at 12% 12%, rgba(14, 165, 233, 0.18), transparent 30%), radial-gradient(circle at 88% 88%, rgba(37, 99, 235, 0.20), transparent 28%), linear-gradient(135deg, #020817 0%, #071327 42%, #0a1f45 100%) !important;
    }

    .auth-login-bg-grid {
        position: absolute !important;
        inset: 0 !important;
        background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) !important;
        background-size: 42px 42px !important;
        pointer-events: none !important;
    }

    .auth-login-orb {
        position: absolute !important;
        border-radius: 999px !important;
        filter: blur(80px) !important;
        opacity: 0.72 !important;
        pointer-events: none !important;
    }

    .auth-login-orb-left {
        width: 320px !important;
        height: 320px !important;
        background: rgba(14, 165, 233, 0.22) !important;
        top: 12% !important;
        left: 6% !important;
    }

    .auth-login-orb-right {
        width: 360px !important;
        height: 360px !important;
        background: rgba(37, 99, 235, 0.20) !important;
        right: 8% !important;
        bottom: 8% !important;
    }

    .auth-login-shell {
        position: relative !important;
        z-index: 2 !important;
        min-height: 100vh !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr) !important;
    }

    .auth-login-left,
    .auth-login-right {
        min-height: 100vh !important;
    }

    .auth-login-left {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 48px !important;
    }

    .auth-login-left-inner {
        width: 100% !important;
        max-width: 820px !important;
    }

    .auth-login-hero-logo {
        width: 100% !important;
        max-width: 650px !important;
        max-height: 330px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto 34px auto !important;
        border-radius: 26px !important;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
    }

    .auth-login-hero-text {
        max-width: 760px !important;
    }

    .auth-login-pill {
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 14px !important;
        border-radius: 999px !important;
        background: rgba(56, 189, 248, 0.12) !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        color: #8fdcff !important;
        font-size: 0.82rem !important;
        margin-bottom: 16px !important;
    }

    .auth-login-hero-text h1 {
        color: #ffffff !important;
        font-size: clamp(2rem, 3vw, 3.1rem) !important;
        line-height: 1.12 !important;
        font-weight: 900 !important;
        margin-bottom: 16px !important;
    }

    .auth-login-hero-text p {
        color: #b7cbea !important;
        font-size: 1.02rem !important;
        line-height: 1.75 !important;
        margin-bottom: 24px !important;
    }

    .auth-login-features {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .auth-login-feature {
        display: flex !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 16px 18px !important;
        border-radius: 18px !important;
        background: rgba(15, 23, 42, 0.62) !important;
        border: 1px solid rgba(148, 163, 184, 0.16) !important;
        backdrop-filter: blur(14px) !important;
        box-shadow: 0 14px 36px rgba(0,0,0,0.20) !important;
    }

        .auth-login-feature > span {
            width: 46px !important;
            height: 46px !important;
            min-width: 46px !important;
            border-radius: 14px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(14,165,233,0.18)) !important;
            border: 1px solid rgba(148, 163, 184, 0.16) !important;
        }

        .auth-login-feature strong {
            display: block !important;
            color: #ffffff !important;
            font-size: 0.98rem !important;
            margin-bottom: 3px !important;
        }

        .auth-login-feature small {
            color: #a9c2e7 !important;
            line-height: 1.5 !important;
        }

    .auth-login-right {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 42px 44px !important;
    }

    .auth-login-card {
        width: 100% !important;
        max-width: 520px !important;
        padding: 36px 32px !important;
        border-radius: 28px !important;
        background: rgba(8, 15, 30, 0.76) !important;
        border: 1px solid rgba(148, 163, 184, 0.18) !important;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32) !important;
        backdrop-filter: blur(18px) !important;
    }

    .auth-login-mobile-logo-wrap {
        display: none !important;
    }

    .auth-login-card-header {
        margin-bottom: 28px !important;
    }

    .auth-login-mini-badge {
        display: inline-flex !important;
        padding: 8px 14px !important;
        border-radius: 999px !important;
        background: rgba(34, 197, 94, 0.12) !important;
        border: 1px solid rgba(34, 197, 94, 0.24) !important;
        color: #8cf0b1 !important;
        font-size: 0.78rem !important;
        margin-bottom: 16px !important;
    }

    .auth-login-card-header h2 {
        margin: 0 0 8px 0 !important;
        color: #ffffff !important;
        font-size: 2rem !important;
        font-weight: 900 !important;
    }

    .auth-login-card-header p {
        margin: 0 !important;
        color: #a9c2e7 !important;
    }

    .auth-login-input {
        min-height: 52px !important;
        background: rgba(226, 232, 240, 0.96) !important;
        border: 1px solid rgba(148, 163, 184, 0.35) !important;
        color: #020817 !important;
        border-radius: 14px !important;
        font-weight: 600 !important;
    }

        .auth-login-input::placeholder {
            color: #64748b !important;
        }

        .auth-login-input:focus {
            background: #ffffff !important;
            border-color: #38bdf8 !important;
            box-shadow: 0 0 0 0.22rem rgba(56, 189, 248, 0.18) !important;
        }

    .auth-login-extra {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        margin: 10px 0 26px 0 !important;
        color: #dbeafe !important;
    }

        .auth-login-extra .form-check-label {
            color: #ffffff !important;
            font-weight: 600 !important;
        }

        .auth-login-extra span {
            color: #9fb7da !important;
            font-size: 0.86rem !important;
            text-align: right !important;
        }

    .auth-login-submit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 54px !important;
        border: 0 !important;
        border-radius: 15px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
        box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36) !important;
        transition: all 0.22s ease !important;
    }

        .auth-login-submit:hover {
            color: #ffffff !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 20px 42px rgba(37, 99, 235, 0.46) !important;
        }

    /* Laptop */
    @media (max-width: 1199.98px) {
        .auth-login-shell {
            grid-template-columns: 1fr 1fr !important;
        }

        .auth-login-left,
        .auth-login-right {
            padding: 34px !important;
        }

        .auth-login-hero-logo {
            max-height: 280px !important;
        }
    }

    /* Tablet + Mobile */
    @media (max-width: 991.98px) {
        .auth-login-shell {
            display: flex !important;
            min-height: 100vh !important;
        }

        .auth-login-left {
            display: none !important;
        }

        .auth-login-right {
            width: 100% !important;
            min-height: 100vh !important;
            padding: 28px 18px !important;
        }

        .auth-login-card {
            max-width: 540px !important;
            padding: 30px 24px !important;
        }

        .auth-login-mobile-logo-wrap {
            display: block !important;
            text-align: center !important;
            margin-bottom: 24px !important;
        }

        .auth-login-mobile-logo {
            width: 100% !important;
            max-width: 280px !important;
            max-height: 145px !important;
            object-fit: contain !important;
            border-radius: 20px !important;
            box-shadow: 0 18px 46px rgba(0, 0, 0, 0.30) !important;
        }

        .auth-login-card-header {
            text-align: center !important;
        }
    }

    /* Phone */
    @media (max-width: 575.98px) {
        .auth-login-page {
            min-height: 100dvh !important;
        }

        .auth-login-right {
            align-items: center !important;
            padding: 18px 12px !important;
        }

        .auth-login-card {
            padding: 24px 18px !important;
            border-radius: 24px !important;
        }

        .auth-login-mobile-logo {
            max-width: 245px !important;
            max-height: 125px !important;
        }

        .auth-login-card-header h2 {
            font-size: 1.7rem !important;
        }

        .auth-login-card-header p {
            font-size: 0.92rem !important;
        }

        .auth-login-extra {
            align-items: flex-start !important;
            flex-direction: column !important;
            gap: 8px !important;
        }

            .auth-login-extra span {
                text-align: left !important;
            }

        .auth-login-input {
            min-height: 50px !important;
        }

        .auth-login-submit {
            min-height: 52px !important;
        }
    }

}