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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.card {
    background: #0d0d0d;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grid {
    display: grid;
    gap: 8px;
}

.grid.year-view {
    grid-template-columns: repeat(20, 1fr);
}

.grid.life-view {
    grid-template-columns: repeat(52, 1fr);
    gap: 2px;
}

.grid.life-view .dot {
    width: 4px;
    height: 4px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3a3a;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dot:hover {
    transform: scale(1.4);
}

.dot.lived {
    background: #ffffff;
}

.dot.current {
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.footer span:first-child {
    color: #888;
}

.controls {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.controls:hover {
    opacity: 1;
}

.tab {
    padding: 6px 12px;
    font-family: inherit;
    font-size: 12px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.tab:hover {
    border-color: #666;
    color: #888;
}

.tab.active {
    background: #333;
    border-color: #555;
    color: #aaa;
}

.date-input {
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    width: 100px;
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.hidden-picker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.date-input:hover, .date-input:focus {
    border-color: #666;
    color: #888;
    outline: none;
}

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

/* Force dark mode for native date picker */
.hidden-picker {
    color-scheme: dark;
}
