/**
 * Fee Management Module Styles
 */

/* Fee Overview Cards */
.fee-card {
    transition: transform 0.2s;
}

.fee-card .card-title {
    color: white;
    font-weight: 600;
}

.fee-card .card-text {
    font-size: 2rem;
    font-weight: 300;
}

/* Fee Management Buttons */
.fee-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Fee Tables */
.fee-table {
    font-size: 0.875rem;
}

.fee-table th {
    background-color: #495057;
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 0.5rem;
}

.fee-table td {
    vertical-align: middle;
    padding: 0.5rem;
}

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

/* Status Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.bg-warning { background-color: #ffc107; }
.bg-info { background-color: #0dcaf0; }
.bg-success { background-color: #198754; }
.bg-danger { background-color: #dc3545; }
.bg-secondary { background-color: #6c757d; }

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-left: 1rem;
    font-size: 1.1rem;
}

/* Modal Enhancements */
.modal-xl .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-xl .form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.modal-xl .form-row .form-group {
    flex: 1;
    min-width: 0;
}

.modal-xl .form-check-input {
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fee-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modal-xl .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fee-table {
        font-size: 0.75rem;
    }
    
    .fee-table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
}
