:root {
    --primary: #FF5C00;
    --background: #080808;
    --card-bg: #000000;
    --text: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.03);
}

body.light-mode {
    --background: #F0F0F2;
    --card-bg: #FFFFFF;
    --text: #000000;
    --text-dim: rgba(0, 0, 0, 0.5);
    --border: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--background);
    transition: background-color 0.5s ease, color 0.5s ease;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

body:not(.light-mode) {
    background-image:
        radial-gradient(circle at 0% 0%, rgba(255, 92, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
}

.planner-card {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 80px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: all 0.5s ease;
}

body:not(.light-mode) .planner-card {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 1);
}

.planner-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 10;
}

.theme-toggle {
    position: absolute;
    top: 30px;
    right: 40px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    user-select: none;
    padding: 8px 16px;
    z-index: 20;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    text-transform: uppercase;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--card-bg);
}

.brand-header {
    margin-bottom: 60px;
    border-left: 5px solid var(--primary);
    padding-left: 30px;
}

.brand-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.8;
}

.brand-title span {
    color: var(--primary);
}

.sub-brand {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-top: 15px;
    opacity: 0.6;
    text-transform: uppercase;
}

.planner-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    font-family: 'Courier New', monospace;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 900;
}

.meta-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    padding: 5px 0;
    outline: none;
    width: 200px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.todo-list,
.detail-list {
    list-style: none;
    margin-bottom: 50px;
}

.todo-item,
.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.todo-num {
    color: var(--primary);
    font-weight: 900;
    font-family: 'Courier New', monospace;
}

.todo-input,
.detail-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    outline: none;
}

.todo-input::placeholder,
.detail-input::placeholder {
    color: var(--text-dim);
}

.todo-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.todo-check.checked {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.actions {
    display: flex;
    gap: 20px;
    margin-top: 60px;
}

.btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: black;
}

.btn:hover {
    background: var(--text);
    color: var(--card-bg);
    border-color: var(--text);
}

/* State & Modal Styles */
input:disabled {
    color: var(--text-dim) !important;
    cursor: not-allowed;
    border-bottom: 1px solid transparent !important;
}

.todo-check.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

body.light-mode .modal-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.modal-content {
    text-align: center;
    padding: 80px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    max-width: 650px;
    width: 90%;
}

/* Slider Component */
.slider-container {
    width: 100%;
    max-width: 320px;
    height: 70px;
    margin: 0 auto;
    position: relative;
}

.slider-track {
    width: 100%;
    height: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-text {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-dim);
    user-select: none;
    background: linear-gradient(90deg, var(--text-dim) 0%, var(--text) 50%, var(--text-dim) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.slider-handle {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 92, 0, 0.3);
    transition: transform 0.1s ease-out;
}

.slider-handle:active {
    cursor: grabbing;
}

.arrow-svg {
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .planner-card {
        box-shadow: none;
        border: 2px solid black;
        background: white;
        color: black;
    }

    .btn,
    .actions {
        display: none;
    }
}

/* Mobile Optimized */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .planner-card {
        padding: 40px 20px;
    }

    .brand-header {
        padding-left: 15px;
        margin-bottom: 40px;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .sub-brand {
        font-size: 0.75rem;
    }

    .planner-meta {
        flex-direction: column;
        gap: 20px;
    }

    .meta-input {
        width: 100%;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .todo-input,
    .detail-input {
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        padding: 16px;
        font-size: 0.9rem;
    }

    .slider-container {
        width: 100%;
        max-width: 280px;
    }
}

/* Landing Page & Hero Section */
.landing-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.landing-view.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.hero-section {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -4px;
}

.hero-title span {
    color: var(--primary);
    display: block;
}

.cta-btn {
    font-size: 1.2rem;
    padding: 1.5rem 4rem;
    display: inline-block;
    text-decoration: none;
    margin-top: 3rem;
}

.floating-text {
    position: absolute;
    font-weight: 900;
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
    text-transform: uppercase;
}