/* General styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Header */
.header {
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  padding: 5px 20px;
  justify-content: space-between;
}

.utrgv-text {
  font-family: Times, serif;
  font-size: 1.5em;
  font-weight: bold;
}

.utrgv-text .rgv {
  color: white;
}

.utrgv-text a {
  color: #E35205; /* UT in orange */
  text-decoration: none;
}

.top-nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
}

.top-nav a:hover {
  color: #E35205;
}

/* Content Layout */
.content {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  flex-direction: column;
}

/* Main Content */
.main-content {
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  margin-bottom: 20px;
}

.main-content h1 {
  color: #333;
  font-size: 1.5em;
}

.main-content p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.button {
  display: inline-block;
  background-color: #E35205;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  margin-top: 10px;
}

.button:hover {
  background-color: #c74300;
}

/* View Info */
.view-info {
  margin-top: 10px;
  font-size: 0.85em;
}

.view-info p {
  margin: 0;
}

/* Schedule Navigation Bar */
.schedule-nav {
  background-color: #333;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-nav .nav-left,
.schedule-nav .nav-center,
.schedule-nav .nav-right {
  display: flex;
  align-items: center;
}

.schedule-nav button,
.schedule-nav select {
  margin: 0 5px;
  padding: 5px 10px;
  background-color: #555;
  border: none;
  color: white;
  cursor: pointer;
}

.schedule-nav button.active,
.schedule-nav button.selected {
  background-color: #777;
}

.schedule-nav select {
  background-color: #555;
  color: white;
  border: none;
}

/* Category Tabs */
.categories {
  padding: 10px;
  background-color: #f1f1f1;
  max-width: 800px;
  margin: auto;
}

.category-tab {
  margin: 0 5px;
  padding: 5px 10px;
  background-color: #ddd;
  border: none;
  cursor: pointer;
}

.category-tab.active {
  background-color: #bbb;
}

/* Schedule Table */
/* Schedule Table */
#scheduleTable {
  width: 90%;
  border-collapse: collapse;
  margin: 10px auto;
  table-layout: fixed;
}

#scheduleTable th:nth-child(1), 
#scheduleTable td:nth-child(1) {
  width: 25%;  /* Changed from 35% to give more space to other columns */
}

#scheduleTable th:nth-child(2), 
#scheduleTable td:nth-child(2) {
  width: 25%;  /* Increased from 15% for tutor names */
}

#scheduleTable th:nth-child(3), 
#scheduleTable td:nth-child(3),
#scheduleTable th:nth-child(4), 
#scheduleTable td:nth-child(4) {
  width: 25%;  /* Kept at 25% for each time column */
}

/* Add these new rules to handle text overflow */
#scheduleTable td {
  white-space: nowrap;         /* Prevent text from wrapping */
  overflow: hidden;            /* Hide overflow */
  text-overflow: ellipsis;     /* Show ... for overflow text */
}

#scheduleTable td:hover {
  white-space: normal;         /* Allow text to wrap on hover */
  overflow: visible;           /* Show overflow on hover */
  position: relative;          /* For z-index to work */
  z-index: 1;                 /* Bring hovered cell to front */
  background-color: inherit;   /* Maintain cell background color */
}

#scheduleTable th,
#scheduleTable td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.class-row {
  border-top: 3px solid #000;
}

.in-person {
  background-color: #c8e6c9; /* Green */
}

.online {
  background-color: #f8bbd0; /* Pink */
}

.time-slot-divider {
  margin: 5px 0;
  border-top: 1px dashed #aaa;
}

.day-divider {
  background-color: #e0e0e0;
  text-align: center;
  font-weight: bold;
}

.hidden {
  display: none;
}

/* Contact Us Section at the Bottom */
.contact-us {
  background-color: #e6e6e6;
  padding: 20px;
  border-radius: 5px;
  max-width: 800px;
  margin: 20px auto;
}

.contact-us h3 {
  background-color: #333;
  color: white;
  padding: 10px;
  margin-top: 0;
}

.contact-us p {
  font-size: 0.9em;
  color: #333;
}

.contact-us a {
  color: #E35205;
  text-decoration: none;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  position: relative;
}

/* X Icon */
.icon-x {
  background-color: #E35205;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: bold;
}

/* Instagram Icon */
.icon-ig {
  width: 30px;
  height: 30px;
  background-color: #E35205; /* Orange background */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.icon-ig::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid white; /* White border square */
  border-radius: 5px; /* Rounded corners */
  position: absolute;
}

.icon-ig::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #E35205; /* Center orange circle */
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
}

.icon-ig-circle {
  content: '';
  width: 5px;
  height: 5px;
  background-color: white; /* White filled circle */
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 5px;
}

/* Facebook Icon */
.icon-fb {
  background-color: #E35205;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 1.5em;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* Admin Button at the Bottom */
.admin-button {
  text-align: center;
  margin: 20px 0;
}

.admin-button button {
  background-color: transparent;
  border: none;
  font-size: 2em;
  cursor: pointer;
}

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

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  width: 50%;
  position: relative;
}

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

.error-message {
  color: red;
  font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .header, .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav a {
    margin-left: 0;
    margin-top: 5px;
  }

  .main-content {
    padding: 15px;
  }

  .schedule-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-nav .nav-left,
  .schedule-nav .nav-center,
  .schedule-nav .nav-right {
    margin-bottom: 10px;
  }

  #scheduleTable {
    width: 100%;
  }

  .modal-content {
    width: 80%;
  }

  .contact-us {
    width: 90%;
  }
}
