/* ====== GLOBAL STYLES ====== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f8fa;
}

/* ====== NAVBAR ====== */
.navbar {
  background: #003366;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  justify-content: space-between;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 38px;
  margin-right: 12px;
}

.brand-name {
  font-weight: bold;
  font-size: 1.3em;
}

.navbar-center {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.navbar-center li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.navbar-center li a.active,
.navbar-center li a:hover {
  background: #0056b3;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#doctor-credentials {
  font-size: 1em;
  color: #bde0ff;
  margin-right: 10px;
  white-space: nowrap;
}

.login-btn, .logout-btn {
  color: #fff;
  text-decoration: none;
  background: #0056b3;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.login-btn:hover, .logout-btn:hover {
  background: #0074d9;
}

/* ====== MAIN SECTION ====== */
.main-section {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 16px;
}

.main-section h1 {
  color: #003366;
  margin-bottom: 24px;
  text-align: center;
}

/* ====== SYSTEM GRID & BOXES ====== */
.system-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.system-box {
  background: #0188df;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  width: 320px;
  min-height: 70px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
  padding: 24px 28px 18px 28px;
  font-size: 1.18em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.system-box:hover {
  background: #0056b3;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ====== SUBSYSTEM & DOCTOR DISPLAY ====== */
.subsystem-list {
  width: 100%;
  margin-top: 15px;
  background: #e6f0ff;
  border-radius: 12px;
  padding: 15px;
}

.subsystem-item {
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.subsystem-header {
  color: #003366;
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-card {
  padding: 8px;
  margin: 5px 0;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.95em;
}

.doctor-name {
  font-weight: 500;
  color: #2c3e50;
}

.doctor-phone {
  color: #7f8c8d;
  font-size: 0.9em;
}

.no-assignments {
  color: #95a5a6;
  font-style: italic;
}

/* ====== FORM STYLES ====== */
.form-container {
  background: #fff;
  padding: 40px 32px 32px 32px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  max-width: 400px;
  margin: 40px auto;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #b0c4de;
  border-radius: 7px;
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
}

input:focus, select:focus {
  border: 1.5px solid #0188df;
}

button.btn, .btn {
  width: 100%;
  padding: 12px 0;
  background: #0188df;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1em;
  margin-bottom: 0;
}

button.btn:hover, .btn:hover {
  background: #0056b3;
}

/* Leave Button */
#leave-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
  width: auto;
  display: inline-block;
}

#leave-btn:hover {
  background: #c0392b;
}

/* ====== MESSAGES & FEEDBACK ====== */
#success-message {
  color: #27ae60;
  margin-top: 10px;
  font-size: 1em;
  min-height: 22px;
  text-align: center;
}

#error-message, .error-message {
  color: #e74c3c;
  margin-top: 10px;
  font-size: 1em;
  min-height: 22px;
  text-align: center;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 700px) {
  .system-box {
    width: 95vw;
    min-width: unset;
    font-size: 1em;
    padding: 18px 8px 14px 8px;
  }
  
  .navbar-center {
    gap: 12px;
  }
  
  .navbar-center li a {
    padding: 6px 8px;
    font-size: 0.9em;
  }
  
  .login-btn, .logout-btn {
    padding: 6px 12px;
    font-size: 0.95em;
  }

  .form-container {
    padding: 28px 8px;
    max-width: 99vw;
  }
}

/* ====== UTILITY CLASSES ====== */
.text-center {
  text-align: center;
}
.text-bold {
  font-weight: bold;
}
