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

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

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.breath-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 3s ease-in-out;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.3);
}

.inner-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #2C5AA0;
    opacity: 0.5;
    position: absolute;
    transition: all 3s ease-in-out;
}

.breath-text {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.pattern-selector {
    margin-bottom: 20px;
}

.pattern-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.pattern-select,
.color-select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pattern-select:hover,
.color-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pattern-select option,
.color-select option {
    background: #333;
    color: #fff;
}

.custom-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
}

.setting-group label {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.setting-group input {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.setting-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.color-settings {
    margin-bottom: 30px;
}

.start-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.start-button.active {
    background: rgba(255, 100, 100, 0.3);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-item span:first-child {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-item span:last-child {
    font-size: 24px;
    font-weight: 600;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

@media (max-width: 600px) {
    .breath-circle {
        width: 250px;
        height: 250px;
    }
    
    .inner-circle {
        width: 160px;
        height: 160px;
    }
    
    .breath-text {
        font-size: 24px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .controls {
        padding: 20px;
    }
    
    .custom-settings {
        grid-template-columns: 1fr;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}