/* ===== Schedule Page Specific Styles ===== */

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f9ff;
  color: #333;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #4a90e2;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 10px 0 0;
  font-size: 1.2rem;
}

nav {
  background-color: #357ABD;
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
}

main {
  flex: 1;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.form-section {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-section h2 {
  font-size: 2rem;
  color: #4a90e2;
  margin-bottom: 10px;
  text-align: center;
}

.form-section p {
  margin-bottom: 30px;
  font-size: 1rem;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px 0;
}

legend {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.4);
}

.submit-btn {
  background: linear-gradient(135deg, #4a90e2, #357ABD);
  color: #fff;
  padding: 14px 35px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  align-self: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #357ABD, #2c5f9c);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.4);
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ===== Dark Mode & Theme Modal ===== */

body.dark-mode {
  background-color: #121212;
  color: #eee;
}

body.dark-mode header {
  background-color: #222;
}

body.dark-mode nav {
  background-color: #333;
}

body.dark-mode .form-section {
  background-color: #1e1e1e;
  color: #eee;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode select {
  background: #333;
  color: #eee;
  border: 1px solid #555;
}

body.dark-mode footer {
  background-color: #111;
}

body.dark-mode .submit-btn {
  background: linear-gradient(135deg, #555, #333);
}

body.dark-mode .submit-btn:hover {
  background: linear-gradient(135deg, #444, #222);
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 999; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  text-align: center;
  border-radius: 8px;
}

body.dark-mode .modal-content {
  background-color: #222;
  color: #eee;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 20px 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: .4s;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 34px;
}

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

input:checked + .slider {
  background-color: #4a90e2;
}

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

.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 50px; height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.theme-btn:hover {
  background: #357ABD;
}
