@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #faf9f7;
    color: #2c2c2c;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    font-size: 2rem;
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

label {
    font-size: 0.95rem;
    color: #5a5a5a;
    font-weight: 500;
}

input[type="text"] {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    width: 100%;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    background-color: #fff;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Monaco', monospace;
    text-align: center;
    box-sizing: border-box;
    font-weight: 400;
}

input[type="text"]:focus {
    outline: none;
    border-color: #8b7355;
}

button {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #8b7355;
    color: #fff;
    transition: background-color 0.2s ease;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

button:hover {
    background-color: #6f5a43;
}

button:disabled {
    background-color: #c4c4c4;
    cursor: not-allowed;
}

#controls button:last-child {
    background-color: #d9d9d9;
    color: #2c2c2c;
}

#controls button:last-child:hover {
    background-color: #c4c4c4;
}

#steps {
    margin-top: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.step-label {
    font-weight: 500;
    color: #2c2c2c;
    flex: 0 0 auto;
    min-width: 140px;
}

.step-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.step-actions button {
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
}

.step-actions button:last-child {
    background-color: #d9d9d9;
    color: #2c2c2c;
}

.step-actions button:last-child:hover {
    background-color: #c4c4c4;
}

.step-timer {
    font-family: 'IBM Plex Mono', 'SF Mono', 'Monaco', monospace;
    color: #8b7355;
    font-size: 1rem;
    font-weight: 500;
    min-width: 60px;
    margin-left: auto;
}

#activeStep {
    margin-top: 2rem;
    padding: 1.25rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    color: #8b7355;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    word-break: break-all;
}

.session-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

#log {
    display: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        max-width: 100%;
    }
    
    #controls {
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .step-label {
        min-width: auto;
        width: 100%;
    }
    
    .step-timer {
        min-width: auto;
        margin-left: 0;
        order: -1;
    }
    
    .step-actions {
        width: 100%;
        margin-left: 0;
    }
    
    .step-actions button {
        flex: 1;
    }
    
    #activeStep {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem;
    }
    
    button {
        font-size: 0.9rem;
    }
    
    .step {
        padding: 0.875rem;
    }
}
