/* PrepMCQ Admin Dashboard Styles */

/* General */
body {
    background-color: #f8f9fa;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

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

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border: none;
}

/* Progress bars */
.progress {
    border-radius: 0.5rem;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Truncate text */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Clickable rows */
tr[onclick] {
    cursor: pointer;
}

tr[onclick]:hover {
    background-color: #e9ecef !important;
}

/* Alert customization */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 0.375rem !important;
    border: none;
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
}

/* List group */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Code styling */
code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

/* Loading state */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
