* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1F7A63 0%, #0F5C4A 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #2FA37F 0%, #0F5C4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.streak {
    background: #FFD400;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
}

.user-name {
    font-weight: 600;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.timer-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timer-display {
    text-align: center;
    margin-bottom: 30px;
}

.session-type {
    font-size: 18px;
    color: #1F7A63;
    font-weight: 600;
    margin-bottom: 10px;
}

.time {
    font-size: 72px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2FA37F 0%, #0F5C4A 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(15, 92, 74, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.current-task {
    background: #F2F5F4;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.current-task h3 {
    color: #1F7A63;
    margin-bottom: 10px;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #CFE7DE;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2FA37F 0%, #0F5C4A 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.pomodoro-count {
    font-weight: 600;
    color: #1F7A63;
}

.today-progress {
    background: #F2F5F4;
    padding: 20px;
    border-radius: 10px;
}

.today-progress h3 {
    margin-bottom: 15px;
    color: #333;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-item strong {
    color: #1F7A63;
}

.tasks-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #333;
}

.add-task-btn {
    background: #1F7A63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add-task-btn:hover {
    background: #0F5C4A;
}

.add-task-form {
    display: none;
    background: #F2F5F4;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.add-task-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1F7A63;
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.task-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #1F7A63;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.task-item.completed {
    opacity: 0.6;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-details {
    flex: 1;
    cursor: pointer;
}

.task-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-subject {
    font-size: 12px;
    color: #888;
}

.task-pomodoros {
    background: #E6F3EE;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.subject-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
}

.subject-math {
    background: #E6F3EE;
    color: #0F5C4A;
}

.subject-physics {
    background: #EAF7F2;
    color: #1F7A63;
}

.subject-chemistry {
    background: #E0F4ED;
    color: #2FA37F;
}

.subject-biology {
    background: #E8F7F1;
    color: #1F7A63;
}

.stats-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    grid-column: 1 / -1;
}

.stats-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #2FA37F 0%, #0F5C4A 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .timer-section {
        padding: 20px;
    }

    .time {
        font-size: 48px;
    }

    .timer-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }

    .time {
        font-size: 40px;
    }

    .stat-value {
        font-size: 28px;
    }
}