  .peer-button {
  color: white;
  border-radius: 10px;
  border: solid;
}

.modal-approve-button{
	background-color: #8D1436;
	margin-right: 20px;
    padding: 5px 8px;
    border-color: #8D1436;
}

.breadcrumb-container {
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  padding: 12px 28px;
  background: linear-gradient(90deg, #800000 0%, #b81f42 100%);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(128,0,0,0.08);
  margin-bottom: 0;
  letter-spacing: 0.5px;
  gap: 10px;
  border: 1px solid #b81f42;
}

.breadcrumb-container i.material-icons {
  color: #fff;
  font-size: 1.3em;
  margin-right: 6px;
  vertical-align: middle;
}

.breadcrumb-container .breadcrumb-arrow {
  color: #ffd6d6;
  font-size: 1.1em;
  margin: 0 4px;
  vertical-align: middle;
}

td {
  text-align: center; 
  padding: 10px;
  border: 1px solid black;
}

.main-peer {
  position: relative;
  width: 100%;
  min-height: 100vh; 
  display: flex;
  justify-content: center;
  align-items: center;
}

div.dataTables_filter {
  text-align: left !important;
  float: left !important;
  margin-bottom: 10px;
}

div.dataTables_filter input {
  width: 100%;
  border: 1px solid #9e9e9e;
  padding: 0.5rem;
  border-radius: 5px;
}
div.dataTables_filter label {
  font-size: 1.2rem;
  color: #000;
  font-weight: bold; 
  margin-left: 10px;
}


.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 190vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/ui/images/counseling-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1; 
}


.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  width: 100%;
  position: relative;
  z-index: 1; 
}


.hero-content {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.text-section {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  gap: 1rem;
}


.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo {
  width: 50vh;
  height: auto;
}


.text-section h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.text-section .highlight {
  color: #8D1436;
  font-weight: bold;
}

.text-section p {
  color: #333;
}

.btn-book-now {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #8D1436;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-book-now:hover {
  background-color: #B81F42;
}


.image-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.carousel img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input-form-tarea {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}
.text-bold {
  font-weight: bold;
}


@media (max-width: 768px) {
  .image-section {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    gap: 0;
  }

  .text-section {
    flex: 1;
    padding: 1rem;
    text-align: center;
  }

  .logo {
    width: 30vh;
    margin-bottom: 1.5rem;
  }

  .text-section h1 {
    font-size: 2rem;
  }

  .btn-book-now {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

.flex-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.schedule-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(128,0,0,0.08);
    padding: 20px 24px 24px 24px; 
    min-width: 340px;
    max-width: 480px;
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: none;
    transition: box-shadow 0.2s;
}
.schedule-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.schedule-card .card-header .user-icon {
    color: #800000;
    margin-right: 10px;
    font-size: 1.5em; 
    vertical-align: middle;
    display: flex;
    align-items: center;
    height: 1.2em;
    background: #f3e5e5;
    border-radius: 50%;
    width: 1.8em;
    height: 1.8em;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(128,0,0,0.08);
}
.schedule-card .card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0; 
    display: flex;
    align-items: center;
}
.schedule-card .card-status {
    font-weight: 500;
    margin-bottom: 8px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    background: #bdbdbd;
    font-size: 0.9em; 
    padding: 4px 14px;
    min-width: 80px;
    max-width: 140px;
    width: auto;
    white-space: nowrap;
}

.schedule-card .card-status.feedback {
    background: #1d9ee9;
    font-size: 0.9em; 
    padding: 5px 16px;
    min-width: 90px;
    max-width: 180px;
    white-space: nowrap;
}

.schedule-card .card-status.booked {
    background: #159609;
    font-size: 0.9em; 
    padding: 5px 16px;
    min-width: 90px;
    max-width: 150px;
    white-space: nowrap;
}
.schedule-card .card-status.pending {
    margin-bottom: 20px;
    background: #ffa000;
    font-size: 0.9em; 
    padding: 4px 14px;
    min-width: 80px;
    max-width: 140px;
    white-space: nowrap;
}
.schedule-card .card-status.cancelled {
    background: #d32f2f;
    font-size: 0.8em;
    padding: 3px 12px;
    min-width: 70px;
    max-width: 120px;
    white-space: nowrap;
}
.schedule-card .card-status.done {
    background: #388e3c;
    font-size: 0.88em;
    padding: 4px 14px;
    min-width: 85px;
    max-width: 140px;
    white-space: nowrap;
}
.schedule-card .card-status.answer-feedback {
    background: #1976d2 !important;
    color: #fff !important;
    font-size: 1em;
    padding: 6px 18px;
    min-width: 110px;
    max-width: 180px;
    white-space: nowrap;
}
.schedule-card .card-details {
    font-size: 0.98em;
    margin-bottom: 4px;
}
.schedule-card .card-location {
    font-size: 0.95em;
    color: #616161;
}
.schedule-card:hover {
    box-shadow: 0 4px 16px rgba(128,0,0,0.16);
}
.reminders-modern-card {
    background: linear-gradient(90deg, #fffde4 0%, #f7e7b7 100%);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(128,0,0,0.08);
    padding: 24px 32px;
    margin-bottom: 24px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.reminders-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.reminders-icon {
    color: #ffa000;
    font-size: 2em;
    margin-right: 10px;
}
.reminders-title {
    font-size: 1.15em;
    font-weight: bold;
    color: #6d4c00;
    letter-spacing: 0.5px;
}
.reminders-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.reminders-list li {
    font-size: 1em;
    color: #5d4037;
    margin-bottom: 8px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reminders-list li b {
    color: #1976d2;
    font-weight: 600;
}

select#select-cluster,
select#select-subject,
select#select-tutor {
  background: #fff;
  border: 1.5px solid #800000;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 1.08em;
  color: #5d4037;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(128,0,0,0.08);
  margin-bottom: 12px;
  transition: border-color 0.2s;
  outline: none;
}

select#select-cluster:focus,
select#select-subject:focus,
select#select-tutor:focus {
  border-color: #1976d2;
  background: #fff;
}


ul.tabs {
  display: flex;
  border-bottom: none;
  background: none;
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 0;
  justify-content: flex-start;
}

ul.tabs li.tab {
  flex: 0 0 auto;
  margin: 0 9px 0 0; 
  background: none;
}

ul.tabs li.tab:last-child {
  margin-right: 0; 
}

ul.tabs li.tab a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 40px;
  min-width: 90px;
  text-align: center;
  font-size: 1.08em;
  font-weight: 500;
  color: #800000;
  background: #fff;
  border-radius: 12px; 
  margin: 0;
  box-shadow: 0 2px 8px rgba(128,0,0,0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid #800000;
  letter-spacing: 1px;
}

ul.tabs li.tab.active a,
ul.tabs li.tab a.active,
ul.tabs li.tab a:focus,
ul.tabs li.tab a:hover {
  background: #800000;
  color: #fff;
  border-color: #800000;
}


ul.tabs .indicator {
  display: none !important;
}


#book-modal select {
    display: block !important;
    width: 100% !important;
    height: 3rem !important;
    padding: 0 1rem !important;
    margin: 0.5rem 0 1rem 0 !important;
    border: 1px solid #9e9e9e !important;
    border-radius: 2px !important;
    background-color: transparent !important;
    font-size: 1rem !important;
    outline: none !important;
}

#book-modal textarea {
    width: 100% !important;
    min-height: 3rem !important;
    padding: 1rem !important;
    margin: 0.5rem 0 1rem 0 !important;
    border: 1px solid #9e9e9e !important;
    border-radius: 2px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    outline: none !important;
    resize: vertical !important;
}

#book-modal label {
    color: #212121 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}


.modern-modal {
    z-index: 9999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.modern-modal.open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modern-modal-content {
    width: 600px;
    max-width: 98vw;
    min-width: 320px;
    border-radius: 16px;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;   
    max-height: 90vh;
    height: auto;
    overflow-y: auto;
}


.modal-header {
    background: linear-gradient(135deg, #800000 0%, #a52a2a 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    z-index: 10001 !important;
    margin: 0;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon .material-icons {
    font-size: 22px;
    color: white;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}


.modal-body {
    padding: 24px;
    overflow: visible;
    flex: 1;
    z-index: 10001 !important;
    margin: 0;
}


.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow: visible;
}

.info-header {
    background: #800000;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.info-header .material-icons {
    margin-right: 10px;
    font-size: 20px;
}

.info-content {
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #212529;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.slots-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}


.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .material-icons {
    margin-right: 8px;
    font-size: 18px;
    color: #800000;
}

.required {
    color: #dc3545;
    margin-left: 4px;
}


.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10002 !important;
}


.modern-select {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    background: white !important;
    font-size: 14px !important;
    color: #495057 !important;
    transition: all 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    z-index: 10003 !important;
    position: relative !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 45px !important;
}

.modern-select:focus {
    border-color: #800000 !important;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1) !important;
    outline: none !important;
}

.select-arrow {
    position: absolute;
    right: 12px;
    color: #6c757d;
    pointer-events: none;
    font-size: 20px;
    z-index: 10004 !important;
}


.modern-textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    background: white !important;
    font-size: 14px !important;
    color: #495057 !important;
    font-family: inherit !important;
    resize: vertical !important;
    transition: all 0.2s ease !important;
    min-height: 80px !important;
    z-index: 10002 !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.modern-textarea:focus {
    border-color: #800000 !important;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1) !important;
    outline: none !important;
}

.modern-textarea::placeholder {
    color: #adb5bd;
}


.modal-footer {
    padding-top: 5px !important;
    padding-right: 24px !important;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    z-index: 10001 !important;
    margin: 0;
    margin-bottom: 15px;
}


.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    z-index: 10002 !important;
    position: relative !important;
}

.btn-primary {
    background: linear-gradient(135deg, #800000 0%, #a52a2a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(128, 0, 0, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary .material-icons,
.btn-secondary .material-icons {
    font-size: 18px;
}


#book-modal select.modern-select,
#book-modal .modern-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    background: white !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 14px !important;
    color: #495057 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 45px !important;
}


#book-modal .select-wrapper .select-dropdown,
#book-modal .dropdown-trigger,
#book-modal .caret {
    display: none !important;
}

#book-modal input[type="checkbox"] {
  /* left blank to allow visually-hidden to work */
}

#book-modal label[for="data_privacy_agree"] {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.modern-checkbox-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.modern-checkbox-label {
  display: flex;
  align-items: center;
  font-size: 1.08em;
  color: #495057;
  font-weight: 600;
  cursor: pointer;
  gap: 10px;
}

.modern-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #800000;
  border-radius: 6px;
  background: #fff;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  vertical-align: middle;
}

.modern-checkbox-input:checked + .custom-checkbox {
  background: #800000;
  border-color: #800000;
}

.modern-checkbox-input:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  display: block;
}

@media (max-width: 768px) {
    .modern-modal-content {
        width: 95% !important;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        padding-bottom: 25px;
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


body.modal-open {
    overflow: hidden !important;
}


#book-modal select {
    display: block !important;
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    margin: 0 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    background-color: white !important;
    font-size: 14px !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

#book-modal textarea {
    width: 100% !important;
    min-height: 80px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    outline: none !important;
    resize: vertical !important;
}

#book-modal label {
    color: #495057 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}


#select-schedule-modal #filter-search,
.modal #filter-search {
    width: 100%;
    padding: 12px 40px 12px 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 16px !important;
    color: #495057 !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: 45px !important;
    min-height: 45px !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    background-clip: padding-box !important;
}


#select-schedule-modal #filter-search,
.modal #filter-search {
    border-bottom: none !important;
    box-shadow: none !important;
    background: #fff !important;
}


#select-schedule-modal #filter-search:focus,
.modal #filter-search:focus {
    border-color: #800000 !important;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08) !important;
    background: #fff !important;
}


#select-schedule-modal #filter-search:-webkit-autofill,
.modal #filter-search:-webkit-autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #495057 !important;
}


#select-schedule-modal .input-field label,
.modal .input-field label {
    transform: none !important;
    top: auto !important;
    left: auto !important;
    font-size: 0 !important;
    color: transparent !important;
    pointer-events: none !important;
}


#select-schedule-modal .input-field .highlight,
.modal .input-field .highlight {
    display: none !important;
    opacity: 0 !important;
}


#select-schedule-modal .filter-search-icon,
.modal .filter-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #800000;
    font-size: 22px;
    pointer-events: none;
    z-index: 2;
}

#filter-search,
.modern-search-input#filter-search {
    border: 2px solid #b81f42 !important;
    box-shadow: none !important;
    z-index: 2 !important;
}

#filter-search:not(:focus) {
    box-shadow: none !important;
    border: 2px solid #b81f42 !important;
}

.visually-hidden {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
}