
/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a; /* Dark background as default */
    color: #e0e0e0;
    margin: 0;
    padding: 2rem;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body.light-mode {
    background-color: #f4f7f9; /* Light mode background */
    color: #333;
}

.container {
    width: 100%;
    max-width: 700px;
}

/* Theme Switcher */
.theme-switcher-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555; /* Default slider color for dark theme */
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ccc; /* Light mode toggle background */
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

body.light-mode .hero-section h1 {
    color: #2c3e50;
}

.hero-section p {
    font-size: 1.1rem;
    color: #bdc3c7;
    max-width: 500px;
    margin: 0 auto;
}

body.light-mode .hero-section p {
    color: #555;
}

/* Form Styles */
#speaker-form-container {
    background-color: #242424; /* Darker container */
    border-radius: 12px;
    border: 1px solid #333;
    padding: 2.5rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode #speaker-form-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

#speaker-form-container h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-top: 0;
    margin-bottom: 2rem;
}

body.light-mode #speaker-form-container h2 {
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ced4da;
}

body.light-mode .form-group label {
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #2b2b2b;
    color: #f0f0f0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.light-mode .form-group input[type="text"],
body.light-mode .form-group input[type="email"],
body.light-mode .form-group textarea {
    background-color: #fff;
    border-color: #ced4da;
    color: #333;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #5A85B3; /* Muted blue focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 133, 179, 0.3);
}

body.light-mode .form-group input[type="text"]:focus,
body.light-mode .form-group input[type="email"]:focus,
body.light-mode .form-group textarea:focus {
    border-color: #5A85B3;
    box-shadow: 0 0 0 3px rgba(90, 133, 179, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    display: block;
    width: 100%;
    background-color: #3B597A; /* Serious, desaturated blue */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: #4A6A8A;
}

body.light-mode button[type="submit"] {
    background-color: #3B597A;
}

body.light-mode button[type="submit"]:hover {
    background-color: #4A6A8A;
}


button[type="submit"]:active {
    transform: scale(0.99);
}

/* Comments Section */
#comments {
    margin-top: 3rem;
}
