/* Global Styles */
:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
    --primary-color: #3490dc;
    --secondary-color: #6c757d;
    --success-color: #38c172;
    --danger-color: #e3342f;
    --warning-color: #ffed4a;
    --info-color: #6cb2eb;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: var(--dark-color);
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.active {
    width: var(--sidebar-collapsed-width);
    text-align: center;
}

.sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar.active .sidebar-header h3,
.sidebar.active .sidebar-header p,
.sidebar.active ul li a span,
.sidebar.active .sidebar-footer {
    display: none;
}

.sidebar ul li a {
    padding: 10px 20px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar ul ul a {
    padding: 10px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar.active ul ul {
    position: absolute;
    left: var(--sidebar-collapsed-width);
    width: 200px;
    white-space: nowrap;
}

.sidebar.active ul ul a {
    padding: 10px 20px;
}

.sidebar.active .dropdown-toggle::after {
    display: none;
}

.sidebar .sidebar-footer {
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

/* Content Styles */
#content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

#content.active {
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.card-body {
    padding: 1.25rem;
}

/* Stat Card */
.stat-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-title {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Status badges */
.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50rem;
}

.status-pending {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-in-progress {
    background-color: #cfe2ff;
    color: #0d6efd;
}

.status-completed {
    background-color: #d1e7dd;
    color: #198754;
}

.status-archived {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
        text-align: center;
    }
    
    .sidebar .sidebar-header h3,
    .sidebar .sidebar-header p,
    .sidebar ul li a span,
    .sidebar .sidebar-footer {
        display: none;
    }
    
    #content {
        width: calc(100% - var(--sidebar-collapsed-width));
    }
    
    .sidebar.active {
        width: var(--sidebar-width);
        text-align: left;
    }
    
    .sidebar.active .sidebar-header h3,
    .sidebar.active .sidebar-header p,
    .sidebar.active ul li a span,
    .sidebar.active .sidebar-footer {
        display: block;
    }
    
    #content.active {
        width: calc(100% - var(--sidebar-width));
    }
}