/* Custom CSS for School Management System */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    border-bottom: 1px solid #e3e6f0;
    background-color: #fff;
}

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

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Table Styles */
.table th {
    border-top: none;
    font-weight: 600;
    color: #6e707e;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Button Styles */
.btn {
    border-radius: 0.35rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Sidebar Styles (if needed) */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
}

.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar .nav-item .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Dashboard Stats Cards */
.card-border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.card-border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.card-border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.card-border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, .card-header .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Custom Badge Styles */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Form Styles */
.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

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

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

.modal-header {
    border-bottom: 1px solid #e3e6f0;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
}