:root {
    --bg-color: #0f172a;
    --sidebar-bg: #1e293b;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-bg: #334155;
    --secondary-hover: #475569;
    --border-color: #334155;
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --highlight-color: #8b5cf6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

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

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 0 24px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.logo i {
    color: var(--primary-color);
}

.sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar nav a:hover {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.sidebar nav a.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.user-profile {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.user-profile .name { font-weight: 600; font-size: 14px; }
.user-profile .role { font-size: 12px; color: var(--text-secondary); }

/* Main Content Styling */
.main-content {
    flex: 1;
    padding: 32px 48px;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-secondary {
    background-color: var(--secondary-bg);
    color: white;
}
.btn-secondary:hover { background-color: var(--secondary-hover); }

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
}
.btn-text:hover { text-decoration: underline; }

/* Dashboard Cards */
.content-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.badge {
    background-color: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* AI Results Specific */
.ai-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-box.info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.icon-box.warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.insight-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.insight-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.insight-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 24px;
    border-radius: 12px;
    margin-top: 12px;
}

.insight-box h4 {
    color: #c4b5fd;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-box p {
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.6;
}

/* Table */
.session-table {
    width: 100%;
    border-collapse: collapse;
}

.session-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.session-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.session-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* States */
.hidden { display: none !important; }

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    padding: 40px 0;
    text-align: center;
    color: #ef4444;
}
.error-state i {
    font-size: 32px;
    margin-bottom: 12px;
}
