/* AdminLTE v3 Inspired Styles */
:root {
    --main-bg: #f4f6f9;
    --sidebar-dark: #343a40;
    --sidebar-dark-item: #c2c7d0;
    --primary: #007bff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--main-bg);
    font-size: 0.9rem;
    color: #212529;
}

/* Layout Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.main-sidebar {
    width: 250px;
    background-color: var(--sidebar-dark);
    color: var(--sidebar-dark-item);
    position: fixed;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1030;
    overflow-y: auto;
}

.brand-link {
    display: block;
    padding: 0.8125rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #4b545c;
    text-decoration: none;
    transition: color 0.15s;
}

.brand-link:hover {
    color: #fff;
}

.nav-sidebar {
    padding: 10px;
}

.nav-link {
    color: var(--sidebar-dark-item);
    border-radius: 0.25rem;
    margin-bottom: 2px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    transition: background-color 0.15s, color 0.15s;
}

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

.nav-link.active {
    background-color: var(--primary);
    color: #fff;
}

.nav-link i {
    width: 2rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Content Area */
.content-wrapper {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-content {
    padding: 1.5rem;
    flex: 1;
}

/* UI Elements */
.card {
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.table thead th {
    border-top: 0;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
}

/* Mobile Sidebar Toggle Effect */
.sidebar-closed .main-sidebar {
    margin-left: -250px;
}

.sidebar-closed .content-wrapper {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .main-sidebar {
        margin-left: -250px;
    }
    .content-wrapper {
        margin-left: 0;
    }
    .sidebar-open .main-sidebar {
        margin-left: 0;
    }
    .sidebar-open .sidebar-overlay {
        display: block;
    }
}

.sidebar-overlay {
    background-color: rgba(0,0,0,.1);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1029;
}
