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

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    color: #0d6efd;
    background-color: #e7f1ff;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard Cards */
.card-stats {
    transition: transform 0.2s;
}

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

.card-stats .card-body {
    padding: 1.5rem;
}

.card-stats .card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-stats .card-text {
    font-size: 2rem;
    font-weight: bold;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-page .card {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-page .card-header {
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

/* Tables */
.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: #f5f8ff;
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Buttons */
.btn i {
    margin-right: 5px;
}

/* Modals */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Form Controls */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        padding-top: 0;
    }
    
    .card-stats .card-text {
        font-size: 1.5rem;
    }
    
    .notification {
        min-width: 250px;
        max-width: 350px;
        top: 10px;
        right: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

/* ============================================================
   FULL WIDTH CONTENT - NO SIDEBAR
   ============================================================ */
.main-content {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
}

/* Remove any left margin from content */
.col-md-9, .col-lg-10 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* For pages that still have sidebar classes */
.ms-sm-auto {
    margin-left: 0 !important;
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}