/* Layout and Sidebar Styles for Velocireporter Dashboard */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--code-bg); /* Use consistent dark blue from global styles */
    color: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.2rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-links li a:hover {
    background-color: #334155;
    color: white;
}

.nav-divider {
    height: 1px;
    background-color: #334155;
    margin: 10px 20px;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px; /* Allow wider layout for dashboard pages */
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
}

/* Common UI Elements */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.85rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.text-muted {
    color: var(--text-muted);
}
