/* Base Layout */
body {
  font-family: Arial, sans-serif;
  background: #f0f8ff;
  margin: 0;
  padding: 30px 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 60px; /* height of footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 50px; /* height of header */
  min-height: 100vh;
}

/* Containers */
.container, .content-box {
  max-width: 900px;
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1, h2 {
  text-align: center;
  color: #2596be;
  margin-bottom: 20px;
}

/* Class List Grid */
.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.class-card {
  background: #f9fdff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
}

.class-card h3 {
  margin-top: 0;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

form.display-inline {
  display: inline;
  flex-direction: row;
  gap: 0;
}

/* Inputs */
select, input[type="text"] {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Buttons */
button {
  background: #2596be;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #1a7ea3;
}

/* Special Buttons (Cancel/Reschedule) */
form.display-inline button {
  background: #e74c3c;
  padding: 6px 10px;
  font-size: 0.9em;
  margin-left: 8px;
}

form.display-inline button:hover {
  background: #c0392b;
}

/* Reschedule */
.reschedule-form {
  margin-top: 10px;
}

.hidden {
  display: none;
}

/* Booking List */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: #fff;
  margin: 10px 0;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Calendar */
#calendar {
  max-width: 900px;
  margin: auto;
}

/* Error Messages */
.error {
  color: red;
  font-size: 0.9em;
  display: none;
}

/* Navbar */
.navbar {
  background: #2596be;
  color: white;
  padding: 10px;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  margin-left: 10px;
}

.navbar-links a:hover {
  text-decoration: underline;
}

/* App Header */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: #2596be;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.app-title {
  font-size: 1.25rem;
}

.header-right {
  font-size: 1rem;
}

.header-link {
  color: white;
  text-decoration: none;
  margin-left: 12px;
}

/* App Footer */
.app-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #2596be;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: white;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.2);
  font-weight: 600;
  z-index: 1000;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover {
  color: #bbdefb;
}

.footer-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

/* Main Container */
.main-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive: Hide menu btn on wider screens */
@media(min-width: 768px) {
  .menu-btn {
    display: none;
  }
}


.success {
  color: #2e7d32;
  background-color: #c8e6c9;
  border: 1px solid #388e3c;
  padding: 10px;
  border-radius: 6px;
  margin: 20px auto;
  max-width: 900px;
  text-align: center;
  font-weight: 600;
}

/*****************my bookings*********************/
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: #fff;
  margin: 10px 0;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  position: relative;
}

li button {
  margin-left: 10px;
  background: #2596be;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

li button:hover {
  background: #1a7ea3;
}

li form.display-inline button {
  background: #e74c3c;
}

li form.display-inline button:hover {
  background: #c0392b;
}

.reschedule-form {
  margin-top: 10px;
  background: #f1f9fc;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.reschedule-form input[type="text"] {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

.error, .success {
  margin: 15px auto;
  padding: 10px;
  max-width: 900px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.error {
  background-color: #ffcdd2;
  color: #b71c1c;
  border: 1px solid #e57373;
}

.success {
  background-color: #c8e6c9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

