/* Theme CSS */
:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --sidebar-width: 250px;
    --topbar-height: 60px;
}

/* Layout */
body {
    min-height: 100vh;
    background-color: #f5f7fb;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,.05);
}

#sidebar.active {
    margin-left: calc(var(--sidebar-width) * -1);
}

#sidebar .sidebar-header {
    padding: 1rem;
    background: rgba(255,255,255,.05);
}

#sidebar .nav-link {
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

#sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

#sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

#sidebar .nav-header {
    padding: 0.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
}

#sidebar .nav-header .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,.5) !important;
    display: block;
    padding: 0.5rem 1.5rem;
}

/* Content */
#content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
}

#content.active {
    margin-left: 0;
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 1rem;
    background: #fff;
}

#sidebarCollapse {
    padding: 0.5rem;
    color: var(--bs-dark);
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 1rem 1.25rem;
}

/* Stats Cards */
.stats-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-card .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.stats-card .content {
    flex: 1;
}

.stats-card .number {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.stats-card .label {
    color: var(--bs-secondary);
    margin: 0;
}

/* Tables */
.table-container {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,.05);
    padding: 1rem;
}

.table thead th {
    background: var(--bs-light);
    border-bottom: 2px solid rgba(0,0,0,.05);
    padding: 1rem;
    font-weight: 600;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,.1);
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    #content.active {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
} 