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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90vw;
    backdrop-filter: blur(10px);
}

header h1 {
    color: #e74c3c;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 300;
}

.timer-display {
    position: relative;
    margin-bottom: 2rem;
}

.session-type {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.time {
    font-size: 3.5rem;
    font-weight: 200;
    color: #e74c3c;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.progress-ring {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    width: 200px;
    height: 200px;
}

.progress-ring-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.3s ease;
    stroke-dasharray: 553;
    stroke-dashoffset: 553;
    stroke-linecap: round;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: #3498db;
    color: white;
}

.btn-tertiary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-settings {
    background: #f39c12;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-settings:hover {
    background: #e67e22;
}

.session-info {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pomodoros-completed {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #e74c3c;
    font-weight: 500;
}

.session-counter {
    color: #666;
    font-size: 0.9rem;
}

.label {
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.setting-group {
    margin-bottom: 1rem;
    text-align: left;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.setting-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.setting-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        margin: 1rem;
        width: 95vw;
    }

    .time {
        font-size: 3rem;
    }

    .controls {
        gap: 0.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 70px;
    }

    .progress-ring {
        width: 160px;
        height: 160px;
        margin: 0.5rem auto;
    }

    .progress-ring-svg {
        width: 160px;
        height: 160px;
    }

    .progress-ring-circle,
    .progress-ring-circle-bg {
        r: 70;
    }
}

/* Animation for session transitions */
.session-transition {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(40, 40, 40, 0.95);
        color: #fff;
    }

    .session-type {
        color: #ccc;
    }

    .session-counter {
        color: #aaa;
    }

    .session-info {
        background: rgba(255, 255, 255, 0.1);
    }

    .modal-content {
        background-color: #333;
        color: #fff;
    }

    .setting-group input[type="number"] {
        background: #444;
        color: #fff;
        border-color: #555;
    }
}
