/* ========================================
   ROADMAP - Liquid Glass Night Sky Theme
   ======================================== */

/* Hide scrollbars while maintaining scroll functionality */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Background image container - base styles (overridden by inline styles in template) */
.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -9999;
    pointer-events: none;
}

/* Main container with sidebar + content */
.roadmap-container {
    display: flex;
    height: 100vh;          /* Lock layout to viewport height */
    padding: 0;
    margin: 0;
    overflow: hidden;       /* Sidebar stays fixed; main scrolls */
}

/* ========================================
   GLASSMORPHISM PANELS
   ======================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

/* ========================================
   SIDEBAR
   ======================================== */
.roadmap-sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 32px 20px;
    margin: 0;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-left: none;
    border-top: none;
    border-bottom: none;
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: #60a5fa;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item svg {
    width: 20px;
    flex-shrink: 0;
}

.nav-item span {
    flex: 1;
    text-align: left;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.roadmap-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;       /* Scrollable content area */
    height: 100vh;          /* Match container height so only this column scrolls */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.page-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ========================================
   BUTTONS & ACTIONS
   ======================================== */
.btn-primary {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    color: #000;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    padding: 10px 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}

.btn-ghost:hover {
    color: #fff;
}

/* ========================================
   FORM ELEMENTS - SELECT/DROPDOWN
   ======================================== */
select,
.form-select,
select.btn-secondary {
    padding: 12px 40px 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

select:hover,
.form-select:hover,
select.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

select:focus,
.form-select:focus,
select.btn-secondary:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Select options styling */
select option {
    background: #fff;
    color: #000;
    padding: 10px;
}

/* ========================================
   STATUS CHIPS
   ======================================== */
.status-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-chip.not-started {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-chip.in-progress {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-chip.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-chip.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-chip.high {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-chip.medium {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 8px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #60a5fa;
    margin-top: 8px;
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.content-card {
    padding: 24px;
    transition: all 0.2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.card-body {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    margin: 40px 0;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.4;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 35, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-panel {
    padding: 40px 60px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(96, 165, 250, 0.2);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ========================================
   ERROR STATES
   ======================================== */
.error-panel {
    padding: 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
}

.error-title {
    font-size: 18px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 8px;
}

.error-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

/* ========================================
   TAGS & PILLS
   ======================================== */
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 6px;
    margin-bottom: 6px;
}

.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover,
.pill.active {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

/* ========================================
   UTILITIES
   ======================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.text-sm {
    font-size: 14px;
}

.text-white {
    color: #fff;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .roadmap-sidebar {
        width: 240px;
    }
    
    .roadmap-main {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .roadmap-container {
        flex-direction: column;
    }
    
    .roadmap-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-item span {
        display: none;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LIGHT THEME STYLES - Only Font Colors
   ======================================== */
[data-theme="light"] .page-title,
[data-theme="light"] .section-title,
[data-theme="light"] .card-title,
[data-theme="light"] .empty-state-title,
[data-theme="light"] .error-title {
    color: #1a1a1a;
}

[data-theme="light"] .page-subtitle,
[data-theme="light"] .card-subtitle,
[data-theme="light"] .empty-state-text,
[data-theme="light"] .error-text,
[data-theme="light"] .card-body,
[data-theme="light"] .progress-text {
    color: #4a4a4a;
}

[data-theme="light"] .nav-item {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .nav-item:hover {
    color: #000000;
}

[data-theme="light"] .nav-item.active {
    color: #3b82f6;
}

[data-theme="light"] .text-white {
    color: #1a1a1a;
}

[data-theme="light"] .text-muted {
    color: #6a6a6a;
}

