body {
    background: #f6f7f9;
    color: #17202a;
    font-family: Tahoma, Arial, sans-serif;
}

.navbar-brand {
    color: #1c4c7c;
}

.page-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.panel {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 1.25rem;
}

.panel h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.login-shell {
    min-height: calc(100vh - 140px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.login-shell h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.25;
    color: #173b61;
}

.login-shell p {
    max-width: 620px;
    color: #566573;
    font-size: 1.1rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tabs a {
    color: #1c4c7c;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    padding: .55rem .9rem;
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 1rem;
}

.stat span {
    display: block;
    color: #1c4c7c;
    font-size: 2rem;
    font-weight: 700;
}

.stat strong {
    color: #566573;
}

.badge {
    font-weight: 600;
}



.actions {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.trainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.trainer-card {
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 1rem;
}

.trainer-card h3 {
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.trainer-card p {
    color: #6c757d;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}

.slot {
    border: 1px solid #d8dee4;
    border-radius: 8px;
    padding: .85rem;
    display: grid;
    gap: .55rem;
    background: #fff;
}

.slot.disabled {
    background: #f1f3f5;
    color: #7a838b;
}

@media (max-width: 768px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .users-table thead {
        display: none;
    }

    .users-table,
    .users-table tbody,
    .users-table tr,
    .users-table td {
        display: block;
        width: 100%;
    }

    .users-table tr {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 10px;
    }

    .users-table td {
        text-align: right;
        padding: 8px;
        border: none;
    }

    .users-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #1c4c7c;
        margin-bottom: 4px;
    }

    .users-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* =========================================
   تحسين الجداول على الهاتف
========================================= */

@media (max-width: 768px) {

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,.05);
    }

    .table td {
        border: none;
        padding: 8px;
        text-align: right;
    }

    .table td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #1c4c7c;
        margin-bottom: 4px;
    }

    .btn {
        width: 100%;
        margin-bottom: 6px;
    }

    form {
        width: 100%;
    }
}

/* =========================================
   تحسين النماذج على الهاتف
========================================= */

@media (max-width: 768px) {

    .row.g-3 > div {
        width: 100%;
    }

    .form-control,
    .form-select {
        min-height: 45px;
    }

    .panel {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.3rem;
    }
}

/* =========================================
   تحسين أزرار التبويب
========================================= */

@media (max-width: 768px) {

    .tabs {
        flex-direction: column;
    }

    .tabs a {
        text-align: center;
        width: 100%;
    }
}


.badge.status-pending {
    background: #ffc107 !important;
    color: #000 !important;
}

.badge.status-approved {
    background: #198754 !important;
    color: #fff !important;
}

.badge.status-completed {
    background: #0d6efd !important;
    color: #fff !important;
}

.badge.status-cancelled {
    background: #6c757d !important;
    color: #fff !important;
}

.badge.status-rejected {
    background: #dc3545 !important;
    color: #fff !important;
}
