body {
    font-family: Arial, sans-serif;
    background-color: #8fb1a8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    background-color: #ebfff9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    border: 2px solid #3b797c;
}

h1 {
    color: #333;
    margin-bottom: 25px;
}

.hidden {
    display: none;
}

.controls {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

#mood-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#custom-mood {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#time-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#level-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

#setting-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#generate-btn {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#generate-btn:hover {
    background-color: #0056b3;
}

.result-box {
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    min-height: 150px;
}

#meditation-output p {
    color: #444;
    line-height: 1.6;
}

.safety-text {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

/* Loading Spinner (optional, but good for UX) */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #007bff;
    animation: spin 1s ease infinite;
    margin: 20px auto;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    .container {
        padding: 10px;
        max-width: 80%;
        border-radius: 12px;
        box-shadow: none;
        margin-top: 20px;
        border: 2px solid #3b797c;
    }
    h1 {
        font-size: 1.5em;
    }
    .controls label,
    .controls select,
    .controls input,
    .controls button {
        font-size: 1em;
    }
    #generate-btn {
        width: 100%;
        padding: 16px 0;
        font-size: 1.1em;
    }
    .result-box {
        padding: 10px;
        min-height: 100px;
    }
}

/* Make touch targets larger */
select,
input[type="text"],
button {
    min-height: 44px;
    font-size: 1em;
    touch-action: manipulation;
}

.audio-controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.audio-controls button {
    min-width: 80px;
    padding: 10px 16px;
    font-size: 1em;
}