/* dualtalim.uz — umumiy uslublar (UIX-11: base.html ichidan ko'chirildi) */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.card-hover {
    transition: transform .2s, box-shadow .2s;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success { border-left-color: var(--success-color); }
.stat-card.info { border-left-color: var(--info-color); }
.stat-card.warning { border-left-color: var(--warning-color); }

.footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
}

.badge-status {
    padding: .5em .8em;
    font-size: .875rem;
}

.pre-line {
    white-space: pre-line;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* Didaktik model zanjiri (TZ 5) */
.model-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
}

.model-chain li {
    position: relative;
    flex: 1 1 10rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 4px solid var(--primary-color);
    border-radius: .5rem;
    padding: .75rem .75rem .75rem 2.5rem;
    font-weight: 500;
    counter-increment: step;
}

.model-chain li::before {
    content: counter(step);
    position: absolute;
    left: .6rem;
    top: .7rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: .8rem;
    line-height: 1.5rem;
    text-align: center;
}

/* Login sahifasi */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b3d91 0%, #0d6efd 55%, #4f9cff 100%);
}

.auth-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
}

/* Panel oq .card ichida turadi — shaffof fon oq ustida oq matn beradi, shuning uchun o'z to'q foni bo'lishi shart. */
.auth-brand {
    background: linear-gradient(160deg, #0b3d91 0%, #0d6efd 100%);
    color: #fff;
}

.auth-brand .model-chain li {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    border-top-color: #ffc107;
    color: #fff;
    flex-basis: 45%;
    font-size: .85rem;
}

.auth-brand .model-chain li::before {
    background: #ffc107;
    color: #212529;
}

.table-framework th,
.table-framework td {
    vertical-align: top;
    font-size: .92rem;
}

@media print {
    .navbar, .footer, .btn, form { display: none !important; }
    .card { box-shadow: none; }
}
