.wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: #004d40;
    color: #fff;
    transition: all 0.3s;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #00695c;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover {
    background: #00695c;
}

#sidebar ul li.active > a {
    background: #00796b;
}

#content {
    width: calc(100% - 250px);
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #004d40, #00796b);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .card-title {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .display-6 {
    color: #004d40;
    font-weight: 600;
    margin: 0.5rem 0;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
    color: #004d40;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #004d40;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* Table Styling */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
}

.text-muted {
    color: #6c757d !important;
}

/* Empty state styling */
.table td.text-center.py-4 {
    padding: 3rem !important;
}

.table td.text-center.py-4 i {
    display: block;
    margin-bottom: 0.5rem;
}

.btn-info {
    background-color: #00796b;
    border-color: #00796b;
    color: white;
}

.btn-info:hover {
    background-color: #00695c;
    border-color: #00695c;
    color: white;
}

/* Chart Container */
.chart-container {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: #00796b;
}

/* Responsive Sidebar Toggle */
#sidebarCollapse {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#sidebarCollapse:hover {
    background: #004d40;
}

/* Navigation Bar */
.navbar {
    padding: 1rem;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-radius: 15px;
    margin-bottom: 2rem;
}

/* Navbar Styles */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.02);
    z-index: 1030;
}

.navbar .nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover {
    color: #004d40;
}

/* Notifications */
.notification-dropdown {
    width: 300px;
    padding: 0;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border: none;
    margin-top: 0.5rem;
}

.notification-dropdown .dropdown-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.notification-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.notification-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* User Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #004d40;
}

/* Badge positioning */
.nav-item .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    margin-left: -0.8rem;
    margin-top: -0.5rem;
}

/* User Profile Dropdown */
.user-profile {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-profile .user-info {
    line-height: 1.2;
}

.user-profile .user-name {
    font-weight: 600;
    color: #004d40;
}

.user-profile .user-role {
    font-size: 0.8rem;
    color: #666;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00796b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004d40;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
    }
    
    #content.active {
        width: calc(100% - 250px);
    }
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #004d40, #00695c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    padding: 15px;
}

.login-box {
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.login-form .input-group-text {
    background: transparent;
    border-right: none;
    color: #004d40;
}

.login-form .form-control {
    border-left: none;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #004d40, #00695c);
    border: none;
    padding: 12px;
    font-weight: 500;
}

.login-form .btn-primary:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-error {
    background-color: #fdecea;
    color: #932419;
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    color: #004d40;
    background-color: #f8f9fa;
    text-decoration: none;
}

.dropdown-item.active, 
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #004d40;
}

/* User Profile Dropdown specific */
.nav-item.dropdown .nav-link {
    cursor: pointer;
}

.nav-item.dropdown .dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}