/*
 * Student Portal Fallback CSS for cPanel compatibility
 * This file contains essential styles with !important declarations
 */

/* Card styling */
.card {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 25px !important;
}

.card-header {
    padding: 15px 20px !important;
}

.card-header h3 {
    margin-bottom: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: white !important;
}

.card-body {
    padding: 20px !important;
}

/* Form styling */
.form-label {
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

.form-control {
    border-radius: 6px !important;
    padding: 10px 15px !important;
    border: 1px solid #ced4da !important;
}

.form-select {
    border-radius: 6px !important;
    padding: 10px 15px !important;
    border: 1px solid #ced4da !important;
}

/* Button styling */
.btn {
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background-color: #0071bc !important;
    border-color: #0071bc !important;
    color: white !important;
}

.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

.btn-light {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Table styling */
.table {
    margin-bottom: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.table th {
    font-weight: 600 !important;
    background-color: #f8f9fa !important;
}

.table-primary {
    background-color: #0071bc !important;
    color: white !important;
}

.table-primary th {
    background-color: #0071bc !important;
    color: white !important;
    border-color: #005a95 !important;
}

.table-bordered {
    border: 1px solid #dee2e6 !important;
}

.table-bordered th, .table-bordered td {
    border: 1px solid #dee2e6 !important;
    padding: 8px !important;
}

/* Alert styling */
.alert {
    border-radius: 8px !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
}

.alert-success {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

.alert-info {
    background-color: #cff4fc !important;
    border-color: #b6effb !important;
    color: #055160 !important;
}

/* Background colors */
.bg-primary {
    background-color: #0071bc !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Text colors */
.text-white {
    color: white !important;
}

.text-primary {
    color: #0071bc !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h3 {
        font-size: 1.3rem !important;
    }

    .btn {
        padding: 8px 16px !important;
    }

    .table {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .card-header h3 {
        font-size: 1.2rem !important;
    }

    .table {
        font-size: 0.8rem !important;
    }

    .table th, .table td {
        padding: 0.5rem !important;
    }
}

/* Fix for dropdown menus in the header */
.dropdown-menu {
    position: absolute !important;
    z-index: 1000 !important;
    display: none !important;
    min-width: 10rem !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    color: #212529 !important;
    text-align: left !important;
    list-style: none !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.25rem !important;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.25rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #f8f9fa !important;
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff !important;
    text-decoration: none !important;
    background-color: #0071bc !important;
}
