/* css/style.css */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --primary-color: #007bff;
    --card-bg-color: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background-color: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

h1 {
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.description {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: left;
}

.features {
    display: grid;
    gap: 1rem;
    text-align: left;
}

.features p {
    margin: 0;
    padding: 0.5rem 0;
    color: #34495e;
}

#recordBtn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 48px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    min-width: 280px; /* Ensure button doesn't resize too much */
}

#recordBtn:hover {
    background-color: #0056b3;
}

#recordBtn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#recordBtn:active {
    transform: scale(0.98);
}

.record-button {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.record-button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.slider-container {
    margin: 2rem 0;
}

#durationSlider {
    width: 80%;
}

#qrImg {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.copyright a {
    color: inherit;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f0f0f0;
        --text-color: #1a1a1a;
        --card-bg-color: #ffffff;
    }
}
