:root {
    --brand: #0d6efd; /* Bootstrap primary */
    --brand-600: #0b5ed7;
    --brand-100: #e7f1ff;
    --ok: #16a34a; /* yeşil */
    --warn: #f59e0b; /* turuncu */
    --danger: #dc3545; /* kırmızı */
    --muted: #6c757d;
    --ink: #212529;
    --card: #ffffff;
    --soft: #f8f9fa;
}

html, body {
    background: var(--soft);
}

.navbar {
    transition: box-shadow .2s ease;
}

    .navbar .navbar-brand {
        font-weight: 700;
        letter-spacing: .3px;
    }

    .navbar .nav-link {
        border-radius: .5rem;
        transition: color .15s ease, background-color .15s ease;
    }

        .navbar .nav-link:hover {
            background: var(--brand-100);
            color: var(--brand) !important;
        }

        .navbar .nav-link.active {
            background: var(--brand);
            color: #fff !important;
        }

.btn {
    transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Tablo görünümü */
.table.app-table {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

    .table.app-table thead th {
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1;
        font-weight: 600;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .table.app-table tbody tr:hover {
        background: rgba(13,110,253,.04);
    }

/* Yakın tarih ve gecikme vurgusunu yumuşat */
.table-warning {
    background: #fff8e6 !important;
}

.table-danger {
    background: #ffe8ea !important;
}

    .table-warning td,
    .table-danger td {
        border-top-color: transparent !important;
    }

/* Durum rozetleri */
.badge.status-badge {
    font-weight: 600;
    letter-spacing: .2px;
    padding: .45rem .6rem;
    border-radius: 999px;
}

.status-badge--new {
    background: #e7f1ff;
    color: #0d6efd;
}

.status-badge--inprogress {
    background: #e8fff3;
    color: #16a34a;
}

.status-badge--completed {
    background: #e8fff3;
    color: #16a34a;
}

.status-badge--waiting {
    background: #fff3e0;
    color: #f59e0b;
}

/* Rol rozetleri */
.badge.role-admin {
    background: #212529;
    color: #fff;
}

.badge.role-manager {
    background: #0d6efd;
    color: #fff;
}

.badge.role-user {
    background: #6c757d;
    color: #fff;
}

/* Login ekranı tam sayfa kart */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(420px, 92vw);
}

/* Küçük başlık/stats satırı */
.page-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
}

    .page-head .btn {
        border-radius: .75rem;
    }

/* Filtre paneli */
.filter-bar {
    background: #fff;
    border-radius: 1rem;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Küçük etkileşim iyileştirmeleri */
.form-control, .form-select {
    border-radius: .75rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
/* === Login page styling === */
.login-wrap {
    min-height: calc(100vh - 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    padding: 32px 16px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    padding: 28px 28px 18px;
    animation: cardIn .35s ease-out both;
    border: 1px solid rgba(0,0,0,.06);
}

@keyframes cardIn {
    from {
        transform: translateY(10px);
        opacity: .0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.login-head {
    text-align: center;
    margin-bottom: 12px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.logo-dot {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg,#1e63ff,#2ea9ff);
    box-shadow: 0 8px 20px rgba(30,99,255,.25);
    display: inline-block;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin: 12px 0 2px;
}

.login-sub {
    color: #6c757d;
    margin: 0 0 10px;
}

.login-form .form-control {
    border-radius: 12px;
    padding: 10px 12px;
}

    .login-form .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(30,99,255,.15);
        border-color: #1e63ff;
    }

.btn-login {
    min-width: 140px;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(30,99,255,.22);
}

    .btn-login:hover {
        transform: translateY(-1px);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-foot {
    margin-top: 18px;
}

/* Navbar hover iyileştirmesi (genel görünüm için) */
.navbar .nav-link {
    border-radius: 10px;
    transition: background-color .15s ease, color .15s ease;
}

    .navbar .nav-link:hover {
        background: rgba(30,99,255,.08);
        color: #1e63ff !important;
    }

    .navbar .nav-link.active {
        background: rgba(30,99,255,.12);
        color: #1e63ff !important;
    }

/* Tablo estetiği küçük dokunuş */
.table thead th {
    font-weight: 700;
    letter-spacing: .2px;
    border-bottom-width: 1px;
}

.table td, .table th {
    vertical-align: middle;
}



/* ===== TABLE LAYOUT – uzun metinler sarsın, işlem sütunu kaybolmasın ===== */

/* Tablo tamamen akışkan olsun, tarayıcı genişliği paylaştırsın */
.table.app-table {
    table-layout: auto; /* fixed yerine auto */
    width: 100%;
}

    /* Hücrelerde yatay kaymayı engelle, uzun kelimeleri kır */
    .table.app-table th,
    .table.app-table td {
        white-space: normal;
        word-break: break-word; /* asaaaaaaaa gibi kelimeleri kır */
        overflow-wrap: anywhere; /* boşluksuz uzun stringleri kır */
        vertical-align: middle;
    }

    /* — Colgroup ile sütun genişlikleri — */
    /* (Razor’da <colgroup> varsa class’ları bunlar olsun) */
    .table.app-table col.col-id {
        width: 6ch;
    }
    /* ID: sabit küçük */
    .table.app-table col.col-title {
        width: 14%;
    }
    /* Başlık: biraz küçültüldü */
    .table.app-table col.col-desc {
        width: auto;
    }
    /* Açıklama: en esnek sütun */
    .table.app-table col.col-status {
        width: 11%;
    }
    /* Durum */
    .table.app-table col.col-due {
        width: 13%;
    }
    /* Teslim Tarihi */
    .table.app-table col.col-asg {
        width: 14%;
    }
    /* Atanan */
    .table.app-table col.col-actions {
        width: 1%;
        min-width: 260px;
    }
/* İşlem: daralmayıp görünür kalsın */

/* İşlem hücresindeki form düzeni */
.complete-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: nowrap; /* masaüstünde tek satırda */
}

.cell-actions {
    white-space: nowrap;
}

/* Not kutusu: içerik kadar, ama minimum genişlikte */
.note-input {
    min-width: 160px;
    width: auto; /* sabit yüzde yerine içerik kadar */
    max-width: 100%;
}

/* Küçük ekranda form alt alta düşsün */
@media (max-width: 576px) {
    .complete-form {
        flex-direction: column;
        align-items: stretch !important;
    }

    .cell-actions {
        white-space: normal;
    }

    .note-input {
        width: 100%;
    }
}
html, body {
    font-size: 1rem; /* Bootstrap varsayılanı 1rem, biraz küçültüldü */
}
.table {
    font-size: 0.9rem;
}
