:root {
    --bg-color: #0f1115;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b0;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);
    --error-color: #ef4444;
    --success-color: #10b981;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Branding */
.brand-logo {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.brand-logo img {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .brand-logo {
        top: 15px;
        left: 15px;
    }

    .brand-logo img {
        height: 30px;
    }
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    bottom: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

/* Containers */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
    padding: 30px;
    margin-bottom: 24px;
}

/* Input Section */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    gap: 12px;
}

input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.manual-toggle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.half-input-row {
    display: flex;
    gap: 20px;
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.error-text {
    color: var(--error-color);
    font-size: 0.9rem;
}

/* Dashboard Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.metric-card {
    text-align: center;
}

.metric-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.metric-sub {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 5px;
}

/* Charts */
.chart-container {
    height: 450px;
    position: relative;
    padding-bottom: 60px;
}

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

.chart-toggles {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 10px;
    display: flex;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Roadmap */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roadmap-item {
    padding: 24px;
    border-left: 3px solid var(--accent-color);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.roadmap-item:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.week-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.roadmap-tasks ul {
    list-style: none;
}

.roadmap-tasks li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.roadmap-tasks li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Context Form */
.styled-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

/* Monthly Master Plan */
.monthly-master-plan {
    margin-bottom: 24px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.month-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
}

.month-card.month-2::before {
    background: #8b5cf6;
}

.month-card.month-3::before {
    background: #10b981;
}

.month-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.month-goal-main {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.month-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 15px 0;
}

.month-card.month-2 .month-stat {
    color: #8b5cf6;
}

.month-card.month-3 .month-stat {
    color: #10b981;
}

.month-focus-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.month-focus-list li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
}

.month-focus-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: white;
}

@media (max-width: 768px) {
    .month-grid {
        grid-template-columns: 1fr;
    }
}

/* Infographic Styling */
.infographic-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.infographic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.month-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.month-card.month-2 .month-badge {
    background: #8b5cf6;
}

.month-card.month-3 .month-badge {
    background: #10b981;
}

.month-growth {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.infographic-list {
    flex-grow: 1;
}

.infographic-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
    padding-left: 24px;
}

.infographic-list li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 900;
    position: absolute;
    left: 0;
}

.infographic-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.month-goal-main {
    font-size: 1.2rem;
    /* Adjusted for list fit */
    margin-bottom: 15px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .half-input-row {
        flex-direction: column;
    }
}

/* PDF Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .background-globes,
    #input-section,
    #context-section,
    .chart-toggles,
    #download-btn {
        display: none !important;
    }

    .app-container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .card,
    .glass-panel {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        color: black !important;
        break-inside: avoid;
    }

    .metric-value,
    .month-goal-main,
    h1,
    h2,
    h3 {
        color: #000 !important;
    }

    .metric-sub,
    .month-growth,
    .instruction-text,
    .subtitle,
    .roadmap-stats-mini,
    p,
    li {
        color: #444 !important;
    }

    .month-badge,
    .week-badge {
        background: #eee !important;
        color: black !important;
        border: 1px solid #ccc;
    }

    #growthChart {
        max-height: 400px;
    }

    .strategic-disclaimer {
        color: #666 !important;
        border-top: 1px solid #eee !important;
    }
}

/* Strategic Hacks Styling */
.hack-benefit {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.roadmap-item.hack-item {
    border-left: 4px solid var(--accent-color);
}

@media (max-width: 768px) {
    .hacks-grid {
        grid-template-columns: 1fr;
    }
}