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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #b0b0b0;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 0.5rem;
}

/* Dates section */
.dates-section {
    margin-bottom: 3rem;
}

#dates-list {
    margin-bottom: 1rem;
}

.date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.date-item-info {
    display: flex;
    flex-direction: column;
}

.date-item-label {
    font-weight: 600;
    color: #e0e0e0;
}

.date-item-value {
    font-size: 0.85rem;
    color: #888;
}

.date-item-delete {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.date-item-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.add-date-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.add-date-form input[type="text"],
.add-date-form input[type="date"] {
    flex: 1;
    min-width: 150px;
    padding: 0.6rem 0.8rem;
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.add-date-form input:focus {
    outline: none;
    border-color: #667eea;
}

.add-date-form button {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.add-date-form button:hover {
    opacity: 0.9;
}

/* Milestone filters */
.milestone-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-btn:hover:not(.active) {
    border-color: #667eea;
    color: #b0b0b0;
}

/* Milestones */
.milestones-section,
.pairs-section {
    margin-bottom: 3rem;
}

.pairs-hint {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.milestone-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.milestone-card:hover {
    border-color: #3a3a5a;
}

.milestone-card.past {
    opacity: 0.7;
}

.milestone-card.today {
    border-color: #f1c40f;
    background: #1a1a2e;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.1);
}

.milestone-card.upcoming-soon {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.1);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.milestone-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f0f0f0;
}

.milestone-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-fibonacci {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.badge-power2 {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.badge-round {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.badge-power10 {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.milestone-date-label {
    font-size: 0.8rem;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.milestone-date {
    font-size: 0.9rem;
    color: #888;
}

.milestone-countdown {
    font-size: 0.8rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.milestone-countdown.past-label {
    color: #888;
}

.no-milestones {
    color: #555;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }

    .add-date-form {
        flex-direction: column;
    }

    .add-date-form input[type="text"],
    .add-date-form input[type="date"] {
        min-width: 100%;
    }

    .milestone-header {
        flex-direction: column;
        gap: 0.3rem;
    }
}
