/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #212529;
    overflow-y: auto;
    z-index: 1000;
    color: #adb5bd;
}

.sidebar-brand {
    color: white;
    border-bottom: 1px solid #343a40;
}

.sidebar-brand h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    background-color: #343a40;
    border-left-color: #0d6efd;
}

.nav-link.active {
    color: white;
    background-color: #343a40;
    border-left-color: #0d6efd;
}

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

/* Main Content */
.main-wrapper {
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper .navbar {
    margin-left: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.main-content {
    padding: 20px;
    flex-grow: 1;
}

/* Status Cards */
.status-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-card h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

/* Activity Table */
.table {
    font-size: 0.875rem;
}

.table thead {
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Cards */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-header h5 {
    font-weight: 600;
    color: #212529;
}

/* Login Page */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
}

.login-container .card {
    border: none;
}

/* Badge Colors */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .main-wrapper .navbar {
        margin-left: 0;
    }

    .status-card h2 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-muted {
    color: #6c757d;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #343a40;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #495057;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
