/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fc;
    color: #333;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-notification {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
    color: white;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-warning {
    background-color: #ffc107;
    color: #343a40;
}

.toast-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* Modern form controls */
.form-control-modern {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Modern buttons */
.btn-modern {
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-modern-primary {
    background-color: #4361ee;
    color: white;
}

.btn-modern-primary:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.25);
}

/* Navbar Styles */
.navbar-modern {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-modern .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.border-left-primary {
    border-left: 5px solid #4e73df;
}

.border-left-success {
    border-left: 5px solid #1cc88a;
}

.border-left-info {
    border-left: 5px solid #36b9cc;
}

.border-left-warning {
    border-left: 5px solid #f6c23e;
}

.text-primary-soft {
    color: rgba(78, 115, 223, 0.7);
}

.text-success-soft {
    color: rgba(28, 200, 138, 0.7);
}

.text-info-soft {
    color: rgba(54, 185, 204, 0.7);
}

.text-warning-soft {
    color: rgba(246, 194, 62, 0.7);
}

/* Modern Cards */
.modern-card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
}

.modern-card .card-header {
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card .card-body {
    padding: 20px;
}

/* Table Styles */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px 15px;
}

.table-modern td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Action buttons */
.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .dashboard-card .h4 {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    .print-area {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
}