/* Custom Styles for Budget Approval System */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Customization */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Table Enhancements */
.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

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

/* Badge Enhancements */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    height: 20px;
}

.progress-bar {
    border-radius: 10px;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Footer */
/*footer {
    margin-top: auto;
}*/

/* Footer Styles */
.footer-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.footer-dark-gradient {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

.footer-purple-gradient {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.footer-teal-gradient {
    background: linear-gradient(135deg, #0f2b37 0%, #354348 50%, #2c5364 100%);
}

.footer-orange-gradient {
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%);
}

.copyright-year {
    font-size: 0.8rem;
    opacity: 0.8;
}


/* Login Page Background */
.login-bg {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8)), 
                url('../images/login-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Dashboard Stats Cards */
.card.bg-primary, .card.bg-success, .card.bg-warning {
    border: none;
    border-radius: 10px;
}

/* Quick Action Buttons */
.btn-quick-action {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.btn-quick-action:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

/* Category Rows for Budget Creation */
.category-row {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
}

/* Search Results Dropdown */
#search-results {
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
        border-radius: 6px !important;
    }
}

/* Animation for alerts */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    animation: slideIn 0.3s ease-out;
}
