/**
 * backend-theme.css
 * Dezentes Bootstrap-4-Upgrade für das Nanas Deutschkurs Backend.
 * Ergänzt site.css — überschreibt nichts Destruktives.
 */

/* ══════════════════════════════════════
   1. TYPOGRAPHY & BASE
   ══════════════════════════════════════ */

body {
    color: #18181b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: #18181b;
    font-weight: 600;
}

a {
    transition: color .15s ease;
}

hr {
    border-color: #e8ecf1;
}


/* ══════════════════════════════════════
   2. NAVBAR – minimal polish
   ══════════════════════════════════════ */

.navbar.bg-light {
    background-color: #fff !important;
    border-bottom: 1px solid #edf0f4;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: .875rem;
    color: #3f3f46;
    transition: color .15s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #FF3642;
}

.navbar .dropdown-menu {
    border: 1px solid #edf0f4;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-radius: 6px;
    padding: .35rem 0;
}

.navbar .dropdown-item {
    font-size: .875rem;
    padding: .45rem 1.1rem;
    transition: background .1s;
}

.navbar .dropdown-item:hover {
    background-color: #f7fafc;
}


/* ══════════════════════════════════════
   3. BREADCRUMBS
   ══════════════════════════════════════ */

.breadcrumb {
    background: transparent;
    padding-left: 0 !important;
    font-size: .825rem;
    margin-bottom: .5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e0;
}

.breadcrumb-item a {
    color: #718096;
}

.breadcrumb-item.active {
    color: #18181b;
}


/* ══════════════════════════════════════
   4. PAGE HEADINGS
   ══════════════════════════════════════ */

h1 {
    font-size: 1.5rem;
    margin-bottom: .25rem;
}


/* ══════════════════════════════════════
   5. TABLES & GRIDVIEW
   ══════════════════════════════════════ */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f7f9fc;
    border-bottom: 2px solid #edf0f4;
    border-top: none;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #718096;
    font-weight: 600;
    padding: .7rem .85rem;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    border-color: #f0f3f7;
    color: #18181b;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafbfd;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

/* Kartik GridView panel cleanup */
.kv-grid-container {
    border-radius: 8px;
    overflow: hidden;
}

.grid-view .summary {
    color: #a0aec0;
    font-size: .8rem;
}


/* ══════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════ */

.btn {
    font-weight: 500;
    font-size: .875rem;
    border-radius: 6px;
    transition: all .15s ease;
}

.btn-primary {
    background-color: #FF3642;
    border-color: #FF3642;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e6303b;
    border-color: #e6303b;
    box-shadow: 0 2px 6px rgba(255,54,66,.25);
}

.btn-success {
    border-radius: 6px;
}

.btn-success:hover {
    box-shadow: 0 2px 6px rgba(40,167,69,.25);
}

.btn-danger:hover {
    box-shadow: 0 2px 6px rgba(220,53,69,.25);
}

.btn-outline-secondary {
    color: #718096;
    border-color: #e2e8f0;
}

.btn-outline-secondary:hover {
    background-color: #f7fafc;
    color: #18181b;
    border-color: #cbd5e0;
}

.btn-group .btn {
    border-radius: 6px;
}

/* keep btn-group buttons flush */


/* ══════════════════════════════════════
   7. BADGES
   ══════════════════════════════════════ */

.badge {
    font-weight: 600;
    font-size: .75rem;
    padding: .3em .6em;
    border-radius: 4px;
    letter-spacing: .02em;
}


/* ══════════════════════════════════════
   8. CARDS & DETAIL VIEW
   ══════════════════════════════════════ */

.card {
    border: 1px solid #edf0f4;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #edf0f4;
    font-weight: 600;
}

/* Yii DetailView */
.table.detail-view th {
    background: #f7f9fc;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #718096;
    width: 200px;
    border-color: #edf0f4;
}

.table.detail-view td {
    border-color: #edf0f4;
}


/* ══════════════════════════════════════
   9. FORMS
   ══════════════════════════════════════ */

.form-control {
    border-color: #e2e8f0;
    border-radius: 6px;
    font-size: .875rem;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    border-color: #FF3642;
    box-shadow: 0 0 0 3px rgba(255,54,66,.12);
}

label, .control-label {
    font-weight: 600;
    font-size: .825rem;
    color: #3f3f46;
    margin-bottom: .3rem;
}

.help-block {
    font-size: .78rem;
    color: #a0aec0;
}


/* ══════════════════════════════════════
   10. ALERTS
   ══════════════════════════════════════ */

.alert {
    border-radius: 6px;
    font-size: .875rem;
    border-width: 0;
    border-left-width: 4px;
}


/* ══════════════════════════════════════
   11. PAGINATION
   ══════════════════════════════════════ */

.pagination .page-link {
    color: #3f3f46;
    border-color: #e2e8f0;
    font-size: .85rem;
    border-radius: 5px;
    margin: 0 2px;
    padding: .35rem .7rem;
}

.pagination .page-item.active .page-link {
    background-color: #18181b;
    border-color: #18181b;
}

.pagination .page-link:hover {
    background-color: #f7fafc;
    color: #18181b;
}


/* ══════════════════════════════════════
   12. FOOTER
   ══════════════════════════════════════ */

.footer {
    background-color: #f9fafb;
    border-top: 1px solid #edf0f4;
    color: #a0aec0;
    font-size: .8rem;
}


/* ══════════════════════════════════════
   13. UTILITIES
   ══════════════════════════════════════ */

.text-muted {
    color: #a0aec0 !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}
