:root {
    --primary-color: #4f46e5;
    --sidebar-width: 220px;
}

body {
    font-size: 0.875rem;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.sidebar .nav-link:hover {
    background: #e9ecef;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

main {
    margin-left: var(--sidebar-width);
    padding-top: 56px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.users { border-left-color: #10b981; }
.stat-card.conversations { border-left-color: #f59e0b; }
.stat-card.tasks { border-left-color: #3b82f6; }
.stat-card.errors { border-left-color: #ef4444; }

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-card .stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.table {
    font-size: 0.875rem;
}

.table th {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

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

.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #dbeafe; color: #1e40af; }

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.page-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.form-label {
    font-weight: 500;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
    
    main {
        margin-left: 0;
    }
}
