/* Responsive CSS for Student Information System */

/* Global Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Center year display on mobile */
    .alert.text-end {
        text-align: center !important;
    }

    /* Adjust navbar brand size */
    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Stack buttons in groups */
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
        border-radius: 5px !important;
    }

    /* Ensure modals take full width on small phones */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Ensure images always fit container */
img {
    max-width: 100%;
    height: auto;
}

/* DataTables Responsive override */
.dataTables_wrapper .dataTables_filter {
    float: none;
    text-align: center;
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_length {
    float: none;
    text-align: center;
}

/* Premium UI Global Styles from User Management */
.card {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.table thead th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    color: #495057 !important;
    font-weight: 600 !important;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5 !important;
}

.nav-pills .nav-link {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.btn {
    border-radius: 8px;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}
