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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
}

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

.stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

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

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.counter-section {
    margin-bottom: 30px;
}

.counter-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.counter-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.counter-btn.minus {
    background: #ff6b6b;
}

.counter-btn.plus {
    background: #51cf66;
}

.counter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    min-width: 80px;
    text-align: center;
}

.add-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

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

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.quick-btn {
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

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

.calendar-section {
    margin-bottom: 30px;
}

.calendar-section h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.pending {
    background: #e0e0e0;
    color: #999;
}

.calendar-day.completed {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.3);
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.streak-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    border-radius: 15px;
    color: white;
}

.streak-info {
    font-size: 1.2rem;
}

.streak-label {
    margin-right: 10px;
}

.streak-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification.warning {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.notification.success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stats-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .counter-display {
        gap: 15px;
    }

    .counter-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .calendar {
        gap: 5px;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    .notification {
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
        padding: 15px 20px;
        font-size: 1rem;
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .counter-value {
        font-size: 2rem;
    }

    .calendar-day {
        font-size: 0.65rem;
    }
}

