/* Dedoose AI - Custom Styles */

:root {
    /* Override Radzen with our colors */
    --rz-primary: #6366f1;
    --rz-primary-light: #818cf8;
    --rz-primary-lighter: rgba(99, 102, 241, 0.2);
    --rz-primary-dark: #4f46e5;
    --rz-primary-darker: #4338ca;
    --rz-secondary: #8b5cf6;
    --rz-info: #6366f1;
    --rz-success: #10b981;
    --rz-warning: #f59e0b;
    --rz-danger: #ef4444;
    --rz-base-background-color: #f3f4f6;
    
    /* Our custom variables */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --muted: #6b7280;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f3f4f6;
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: block;
    padding: 0.625rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.875rem;
}

.nav-item:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-item.active {
    background: #eef2ff;
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f3f4f6;
    min-height: 100vh;
}

.page-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--dark);
    margin: 0;
}

.page-content {
    padding: 0 2rem 2rem;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Override Radzen Card styling to match prototype */
.rz-card {
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.rz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Stat Cards with gradient top border */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Card Component */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Removed duplicate - see line 378 */

.stat-value.primary {
    color: var(--primary);
}

.stat-value.secondary {
    color: var(--secondary);
}

.stat-value.accent {
    color: var(--accent);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-content {
        padding: 0 1rem 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Override Radzen Panel Menu styling */
.rz-panel-menu {
    background: transparent !important;
    padding: 0 !important;
}

.rz-panel-menu-item {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0.625rem 1.5rem !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.rz-panel-menu-item:hover {
    background: var(--light) !important;
    color: var(--primary) !important;
}

.rz-panel-menu-item-active,
.rz-panel-menu-item-active:hover {
    background: #eef2ff !important;
    color: var(--primary) !important;
}

.rz-panel-menu-item-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.rz-panel-menu-item-icon {
    margin-right: 0.75rem !important;
    color: inherit !important;
    width: 18px !important;
    height: 18px !important;
}

/* Project Selector Styling */
.project-selector {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.project-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Override Radzen Text styles for stats */
.stat-label {
    color: var(--muted) !important;
    font-size: 0.875rem !important;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

/* Quick action cards */
.action-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent !important;
}

.action-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Status badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Override body background */
body {
    background: #f3f4f6 !important;
}

/* Ensure sidebar is white */
.rz-sidebar,
.sidebar .rz-card {
    background: white !important;
}