body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.sidebar {
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar .nav-link {
    padding: 15px 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fff;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #fff;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #4e73df;
}

.badge {
    font-size: 0.8em;
}

.dashboard-stat {
    text-align: center;
    padding: 20px;
}

.dashboard-stat h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 700;
}

.dashboard-stat p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        transition: all 0.3s;
        z-index: 999;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        width: 100%;
    }
    
    .overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: all 0.5s ease-in-out;
    }
    
    .overlay.active {
        display: block;
        opacity: 1;
    }
}

/* Notification badges */
.nav-link .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Seat availability styling */
.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.seat {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.seat-available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.seat-occupied {
    background-color: #f8d7da;
    color: #842029;
}

.seat-selected {
    background-color: #cfe2ff;
    color: #084298;
    border: 2px solid #084298;
}

/* Registration form styling */
.registration-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.invalid-feedback {
    display: block;
}

/* Modal styling */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #4e73df;
    color: white;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-title {
    font-weight: 600;
}

/* Responsive adjustments for registration form */
@media (max-width: 768px) {
    .registration-container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Profile page specific styles */
.profile-avatar {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    font-weight: bold;
}

.card .border-rounded {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    transition: all 0.3s;
}

.card .border-rounded:hover {
    box-shadow: 0 0.15rem 0.75rem rgba(58, 59, 69, 0.15);
    transform: translateY(-2px);
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #e74a3b;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74a3b'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74a3b' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    border-color: #e74a3b;
    box-shadow: 0 0 0 0.2rem rgba(231, 74, 59, 0.25);
}

/* Statistics cards */
.stats-card {
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Students record specific styles */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table td {
    vertical-align: middle;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Modal form styles */
.modal .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal .form-text {
    font-size: 0.8rem;
}

/* Badge styles */
.badge.bg-info {
    background: linear-gradient(135deg, #36b9cc 0%, #2c9faf 100%);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #858796 0%, #6c757d 100%);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

/* Export section checkboxes */
.form-check {
    margin-bottom: 0.25rem;
}

.form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .avatar-sm {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}