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

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(15, 15, 40, 0.8);
    --bg-card-hover: rgba(20, 20, 50, 0.9);
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    --border-color: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --progress-green: linear-gradient(90deg, #10b981, #34d399);
    --progress-orange: linear-gradient(90deg, #f59e0b, #fbbf24);
    --progress-red: linear-gradient(90deg, #ef4444, #f87171);
    
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.stars {
    background: #fff url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzIiBoZWlnaHQ9IjMiPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIzIiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8Y2lyY2xlIGN4PSIuNSIgY3k9Ii41IiByPSIuNSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+') repeat;
    z-index: 0;
    opacity: 0.5;
    animation: animateStars 100s linear infinite;
}

.stars2 {
    background: #fff url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzIiBoZWlnaHQ9IjMiPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIzIiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8Y2lyY2xlIGN4PSIuNSIgY3k9Ii41IiByPSIuNSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+') repeat;
    z-index: 0;
    opacity: 0.3;
    animation: animateStars 150s linear infinite;
    transform: scale(2);
}

.stars3 {
    background: #fff url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzIiBoZWlnaHQ9IjMiPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIzIiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8Y2lyY2xlIGN4PSIuNSIgY3k9Ii41IiByPSIuNSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+') repeat;
    z-index: 0;
    opacity: 0.2;
    animation: animateStars 200s linear infinite;
    transform: scale(3);
}

@keyframes animateStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1000px);
    }
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    max-width: 1100px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
}

.left-column > *,
.right-column > * {
    margin-bottom: 24px;
}

.left-column > *:last-child,
.right-column > *:last-child {
    margin-bottom: 0;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 28px;
}

.input-section {
    margin-bottom: 18px;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.slider-section {
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.slider-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.progress-section {
    margin-bottom: 28px;
}

.progress-bar-container {
    margin-bottom: 16px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 26px;
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 16px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    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-fill.green {
    background: linear-gradient(90deg, #10b981, #34d399);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.progress-fill.orange {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.progress-fill.red {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.progress-percentage {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.stat-card.primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.stat-card.secondary {
    background: rgba(255, 255, 255, 0.03);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-card.primary .stat-number {
    color: #667eea;
}

.stat-card.secondary .stat-number {
    color: rgba(255, 255, 255, 0.7);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.years-remaining {
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 24px;
}

.years-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.years-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #764ba2;
    margin: 0 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
}

.week-grid-section {
    margin-bottom: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 2px;
    margin-bottom: 16px;
}

.week-box {
    aspect-ratio: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.week-box.lived {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.week-box.remaining {
    background: rgba(255, 255, 255, 0.08);
}

.week-box:hover {
    transform: scale(1.3);
    z-index: 10;
}

.week-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.legend-box.lived {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.legend-box.remaining {
    background: rgba(255, 255, 255, 0.08);
}

.chart-section {
    margin-bottom: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-container {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    height: 250px;
}

.milestones-section {
    margin-bottom: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.milestone-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.milestone-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.time-capsule-section {
    margin-bottom: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.capsule-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.capsule-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    resize: vertical;
    transition: all 0.3s ease;
}

.capsule-textarea:hover {
    border-color: rgba(102, 126, 234, 0.6);
}

.capsule-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.capsule-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.capsule-year-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.capsule-year-section .input-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.capsule-select {
    flex: 1;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capsule-select:hover {
    border-color: rgba(102, 126, 234, 0.6);
}

.capsule-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.capsule-select option {
    background: #302b63;
    color: #ffffff;
}

.capsule-btn {
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.capsule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.capsule-btn:active {
    transform: translateY(0);
}

.capsule-display {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.capsule-message {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    font-style: italic;
}

.capsule-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.quote-section {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(102, 126, 234, 0.3);
    position: absolute;
    top: 8px;
    left: 16px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-style: italic;
    padding: 0 20px;
}

.refresh-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.disclaimer {
    padding: 18px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.disclaimer p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.about-section {
    padding: 24px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-text:last-of-type {
    margin-bottom: 0;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.about-features li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.about-features li:last-child {
    border-bottom: none;
}

.about-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1rem;
}

.footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-email {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.email-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-link:hover {
    text-decoration: underline;
    color: var(--accent-secondary);
}

.footer-copyright {
    font-size: 0.825rem;
    color: var(--text-tertiary);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .right-column > * {
        margin-bottom: 20px;
    }
    
    .right-column > *:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 24px 18px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .progress-percentage {
        font-size: 1.4rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .week-grid {
        grid-template-columns: repeat(26, 1fr);
    }

    .chart-container {
        height: 220px;
    }

    .milestone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .milestone-value {
        font-size: 1.15rem;
    }

    .capsule-year-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .week-grid {
        grid-template-columns: repeat(13, 1fr);
    }
}
