:root {
    --primary-color: #0078C9;
    --primary-dark: #005a9c;
    --primary-light: #00AEEF;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.with-sidebar {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--gray-50);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--white) 0%, #fafbff 100%);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    list-style: none;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--primary-color);
    background-color: var(--gray-50);
    border-left-color: var(--primary-color);
}

.sidebar-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.sidebar-user-role {
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* Dashboard Components */
.dashboard {
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Card Components */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

/* Entrepreneur Cards */
.entrepreneur-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.entrepreneur-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

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

.entrepreneur-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entrepreneur-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.entrepreneur-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.1rem;
}

.entrepreneur-company {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.entrepreneur-stage {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entrepreneur-stage.early-stage {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.entrepreneur-stage.growth-stage {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.entrepreneur-stage.scale-stage {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.entrepreneur-progress {
    margin-bottom: 1rem;
}

.progress-bar-container {
    background-color: var(--gray-200);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.progress-stats div:first-child {
    font-weight: 600;
    color: var(--gray-900);
}

.progress-stats div:last-child {
    color: var(--gray-600);
}

.entrepreneur-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
}

.action-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

/* Table Styles */
.table-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--gray-50);
}

/* Form Styles */
.main-header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.main-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-separator {
    font-size: 2rem;
    color: var(--gray-400);
}

.main-content {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
}

.login-form {
    text-align: left;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-900);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Admin Styles */
.admin-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Admin pages: use full width and left-aligned content */
.admin-container .main-content {
    max-width: 100%;
    text-align: left;
}

.admin-header {
    margin-bottom: 3rem;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.admin-section-header {
    padding: 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.admin-section-description {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.admin-section-content {
    padding: 1.5rem;
}

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

.admin-nav-item {
    margin-bottom: 0.75rem;
}

.admin-nav-item:last-child {
    margin-bottom: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.admin-nav-link:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    border-color: var(--gray-200);
}

.admin-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Journey Progress Styles */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.progress-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: var(--gray-400);
    border: 3px solid var(--white);
    box-shadow: var(--box-shadow);
}

.progress-step.complete .progress-step-circle {
    background: var(--success-color);
}

.progress-step.active .progress-step-circle {
    background: var(--primary-color);
}

.progress-step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.progress-step.complete .progress-step-label,
.progress-step.active .progress-step-label {
    color: var(--gray-900);
    font-weight: 600;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

:root {
    --status-complete: var(--success-color);
    --status-inprogress: var(--warning-color);
    --status-incomplete: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    .with-sidebar {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .dashboard {
        padding: 1rem;
    }
    
    .entrepreneur-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .entrepreneur-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .action-btn {
        flex: 1;
        text-align: center;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Integration Diagram Styles */
.integration-diagram {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.integration-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.integration-system {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.integration-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.integration-name {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.integration-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.integration-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.knowns-unknowns {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    padding: 2rem;
}

.knowns-unknowns h2 {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.knowns-unknowns h3 {
    color: var(--gray-900);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.knowns-unknowns ul {
    list-style: none;
    padding-left: 0;
}

.knowns-unknowns li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.knowns-unknowns li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Role and Status Badges */
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-super_admin {
    background-color: rgba(147, 51, 234, 0.1);
    color: #7c3aed;
}

.role-admin {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.role-coach {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.role-entrepreneur {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-inactive {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--gray-50);
}

/* Form Input Styles */
.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 201, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-900);
}

/* Flex Header for Admin Pages */
.admin-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Animation for Modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tab Navigation Styles */
.tab-container {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-600);
}

.loading-state i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-state {
    color: var(--danger-color);
}

/* Stage and Status Badges */
.stage-badge,
.learning-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.stage-discovering,
.stage-ideating {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stage-concepting,
.stage-committing {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stage-validating,
.stage-scaling {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.stage-establishing,
.stage-leading {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.learning-badge {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    text-transform: none;
}

/* Analytics Cards */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.analytics-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.analytics-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-card li:last-child {
    border-bottom: none;
}

.analytics-card strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Table Responsive Enhancements */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tab-container {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
        justify-content: center;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}
