body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #334e68;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

.app-container {
    text-align: center;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header h1 {
    font-weight: 300;
    color: #243b53;
}

body.dark-mode header h1 {
    color: #f7fafc;
}

header p {
    font-size: 1.1rem;
    color: #627d98;
}

body.dark-mode header p {
    color: #a0aec0;
}

.emdr-area {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 2px solid #d9e2ec;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .emdr-area {
    background-color: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.ball {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #a2d2ff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(162, 210, 255, 0.6);
    transition: left 0s linear;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

input[type="range"] {
    cursor: pointer;
}

button {
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #486581;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #334e68;
}

footer {
    font-size: 0.8rem;
    color: #8592a3;
    margin-top: 10px;
}