* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.counter-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.counter-card h2 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.counter-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.days {
    text-align: center;
    flex: 1;
}

.number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
    margin-bottom: 10px;
}

.label {
    display: block;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reset-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reset-btn:hover {
    background: #764ba2;
}

.reset-btn:active {
    transform: scale(0.98);
}

.date-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .counters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .counter-display {
        gap: 20px;
        padding: 15px;
    }

    .number {
        font-size: 2.5em;
    }
}
