/* =========================================
   PLANNING POD STYLE (Organizer Dashboard)
   ========================================= */
:root {
    --pp-bg: #f4f7f6;
    --pp-surface: #ffffff;
    --pp-text: #333333;
    --pp-brand: #3b82f6;
    /* BMD Blue */
    --pp-brand-hover: #2563eb;
    --pp-ring-gray: #e0e0e0;
}

.pp-layout.pp-dark {
    --pp-bg: #0f172a;
    --pp-surface: #1e293b;
    --pp-text: #f8fafc;
    --pp-text-dim: #94a3b8;
    --pp-border: #334155;
}

.pp-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    /* Clean sans */
    background-color: var(--pp-bg);
    color: var(--pp-text);
}

.pp-sidebar {
    background-color: var(--pp-brand);
    /* Teal */
    color: white;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.pp-sidebar-header {
    padding: 0 1.5rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.pp-nav-item {
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.pp-nav-item:hover,
.pp-nav-item.active {
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
}

.pp-main {
    padding: 2rem;
    overflow-y: auto;
}

.pp-header {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.pp-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pp-metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.pp-ring-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 1rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple donut implementation using conic-gradient */
.pp-ring-activity {
    background: conic-gradient(#66BB6A 0% 65%, #edf2f7 65% 100%);
}

.pp-ring-upcoming {
    background: conic-gradient(#42A5F5 0% 0%, #edf2f7 0% 100%);
}

/* Empty for now */
.pp-ring-overdue {
    background: conic-gradient(#EF5350 0% 100%, #edf2f7 100% 100%);
}

/* Full */
.pp-ring-waiting {
    background: conic-gradient(#FFA726 0% 30%, #edf2f7 30% 100%);
}

.pp-ring-inner {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.pp-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.pp-list-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pp-module-item {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    font-size: 0.9rem;
}

.pp-module-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #444;
    font-weight: 500;
}

.pp-module-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* =========================================
   VENTIXE STYLE (Admin Dashboard)
   ========================================= */
.vx-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
}


/* Ventixe-Style Admin Dashboard (.vx- prefix) */
.vx-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--pp-bg);
    /* Use same vars as PP but updated for theme */
    color: var(--pp-text);
}

.vx-sidebar {
    width: 260px;
    background-color: var(--pp-surface);
    border-right: 1px solid var(--pp-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.vx-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-brand);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vx-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--pp-text);
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.vx-nav-item:hover,
.vx-nav-item.active {
    background-color: var(--pp-brand);
    color: white;
}

.vx-nav-item svg {
    width: 20px;
    height: 20px;
}

.vx-main {
    flex: 1;
    margin-left: 260px;
    /* Offset for fixed sidebar */
    padding: 2rem;
    overflow-y: auto;
}

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

.vx-search {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    width: 300px;
    color: var(--pp-text);
}

.vx-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vx-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pp-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Stats Cards */
.vx-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vx-card {
    background: var(--pp-surface);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--pp-border);
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.03); removed for cleaner look, flat is trendy */
}

.vx-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.1);
    /* Pinkish bg */
    color: #ec4899;
    /* Pinkish text */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.vx-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.vx-stat-label {
    color: var(--pp-text-dim);
    font-size: 0.9rem;
}

/* Charts Area */
.vx-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vx-chart-box {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.vx-chart-placeholder {
    flex: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-top: 2rem;
    gap: 5px;
}

.vx-bar {
    width: 100%;
    background: var(--pp-brand);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 0.5s;
}

.vx-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pp-border);
}

.vx-list-item:last-child {
    border-bottom: none;
}


.vx-layout.vx-dark .vx-sidebar {
    background: #1f2937;
    border-right: 1px solid #374151;
}

.vx-layout.vx-dark .vx-logo {
    color: #f9fafb;
}

.vx-layout.vx-dark .vx-header h1 {
    color: #f9fafb !important;
}

.vx-layout.vx-dark .vx-header p {
    color: #9ca3af !important;
}

.vx-layout.vx-dark .vx-search {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.vx-layout.vx-dark .vx-card {
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.vx-layout.vx-dark .vx-card h3 {
    color: #f9fafb !important;
}

.vx-layout.vx-dark .vx-stat-val {
    color: #f9fafb;
}

.vx-layout.vx-dark .vx-stat-label {
    color: #9ca3af;
}

.vx-layout.vx-dark .vx-nav-item {
    color: #9ca3af;
}

.vx-layout.vx-dark .vx-nav-item:hover,
.vx-layout.vx-dark .vx-nav-item.active {
    background: #374151;
    color: #6896af;
    /* Keep accent */
}

.vx-layout.vx-dark .vx-bg-pink {
    background: #374151;
    color: #f472b6;
}

.vx-layout.vx-dark .vx-bg-purple {
    background: #374151;
    color: #a78bfa;
}

.vx-layout.vx-dark .vx-bg-orange {
    background: #374151;
    color: #fb923c;
}

.vx-layout.vx-dark button.btn {
    border-color: #4b5563 !important;
    background: #374151 !important;
    color: #f9fafb !important;
}

.vx-layout.vx-dark button.btn-primary {
    background: #155f84 !important;
    color: white !important;
    border: none !important;
}

.vx-layout.vx-dark select {
    background: #374151 !important;
    color: #f9fafb !important;
    border: none !important;
}

.vx-sidebar {
    background: white;
    padding: 2rem 1.5rem;
    border-right: 1px solid #f0f0f0;
}

.vx-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 3rem;
}

.vx-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #888;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.vx-nav-item:hover,
.vx-nav-item.active {
    color: #155f84;
    /* Primary */
    background: #d9dbda;
    /* Secondary/Silver */
}

.vx-main {
    padding: 2rem;
}

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

.vx-search {
    background: white;
    border: 1px solid #f0f0f0;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    width: 300px;
    color: #666;
}

.vx-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.vx-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.vx-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.vx-stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.2rem;
}

.vx-stat-label {
    color: #888;
    font-size: 0.9rem;
}

.vx-grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.vx-bg-pink {
    background: #e0e8eb;
    /* Light Blue */
    color: #155f84;
    /* Deep Blue */
}

.vx-bg-purple {
    background: #e8eaec;
    /* Light Silver */
    color: #4b6b7c;
    /* Muted Blue */
}

.vx-bg-orange {
    background: #dfeef5;
    /* Light Blue Accent */
    color: #6896af;
    /* Accent Blue */
}

/* Global Override for these views to ensure light mode works */
.light-mode-force {
    background-color: #f4f7f6;
    color: #333;
}

.light-mode-force h1,
.light-mode-force h2,
.light-mode-force h3 {
    color: #111;
}

.light-mode-force input {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}