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

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
    overflow: hidden; /* Prevent sidebar from scrolling */
}

.sidebar .position-sticky {
    position: sticky;
    top: 0;
    height: 100vh; /* Full height */
    overflow-y: hidden; /* Prevent vertical scrolling */
}

.sidebar .nav-link {
    color: #ced4da;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #0d6efd;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
    padding-right: 0;
}

.sidebar.collapsed .nav-link {
    padding: 0.75rem 0;
    text-align: center;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

/* Ensure smooth transition for main content */
main {
    transition: all 0.3s ease;
}

/* Card Styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.card-body {
    padding: 1.25rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

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

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

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Dashboard Cards */
.card .display-5, .card .display-6 {
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
        width: 100%;
        height: auto;
        min-height: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        overflow: hidden;
    }
    
    #sidebar .position-sticky {
        height: 100%;
        overflow-y: hidden;
    }
    
    #sidebar.show {
        transform: translateX(0);
    }
    
    main {
        margin-top: 60px;
    }
} 