@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

html {
  scroll-behavior: smooth !important;
}

/* Individual Page Background Images */
.login-page,
.register-page,
.forgot-password-page,
.password-reset-page {
  background-image: url(../images/background_login.png) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 100vh !important;
  width: 100% !important;
}

/* Register Success Page - Clean White Background */
.register-success-page {
  background-color: #ffffff !important;
  background-image: none !important;
  min-height: 100vh !important;
  width: 100% !important;
}

/* Links */
a:hover {
  color: #af1733 !important;
}

/* Buttons */
.btn1 {
  background-color: #710014 !important;
  color: white !important;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
}

.btn1:hover {
  background-color: #4e0c17 !important;
}

/* Seal CSS */
.cics_seal {
  width: 15% !important;
  height: 15% !important;
}

/* Card Shadow */
#login-card,
#register-card,
#forgot-card,
#reset-card {
  box-shadow: 5px 5px 50px 20px rgba(51, 51, 51, 0.253) !important;
}

/* Page Background Colors */
.homepage,
.consultation-page,
.student-dashboard,
.student-profile,
.student-announcement {
  background-color: #e2e4ed !important;
}

/* Homepage CSS */

#sidebar {
  min-width: 250px;
  max-width: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #710014, #4e0c17);
  /* background: linear-gradient(180deg, #1a1a1a, #2d2d2d) !important; */
  padding: 1rem;
}

#sidebar .nav-link {
  font-weight: 500;
  margin: 0.3rem 0;
  border-radius: 0.5rem;
  color: #fff;
  transition: all 0.2s ease;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background-color: #450707 !important;
  color: #fff !important;
}

/* Logout Button */
#sidebar .btn-danger {
  background: linear-gradient(90deg, #710014, #9a1e2e);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#sidebar .btn-danger:hover {
  background: linear-gradient(90deg, #9a1e2e, #710014);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Nav Pills */
.nav-pills .nav-link {
  color: #710014;
  border-radius: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
  background-color: #710014 !important;
  color: #fff !important;
}

.nav-pills .nav-link:hover {
  background-color: #9a1e2e;
  color: #fff !important;
}

/* Navbar Search */
.search-form input {
  width: 220px;
}

@media (max-width: 992px) {
  .search-form input {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .search-form {
    width: 100%;
  }

  .search-form input {
    flex: 1;
  }
}

/* Sidebar Mobile Toggle */
@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    z-index: 1040;
  }

  #sidebar.show {
    transform: translateX(0);
  }

  #page-content-wrapper {
    margin-left: 0 !important;
  }

  .card-body {
    padding: 1rem !important;
  }
}

/* Professor Cards */
.row-cols-1 .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.row-cols-1 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card .btn-danger {
  background: linear-gradient(90deg, #710014, #9a1e2e);
  border: none;
}

.card .btn-danger:hover {
  background: linear-gradient(90deg, #9a1e2e, #710014);
}

/* Pagination */
.pagination .page-link {
  color: #710014;
}

.pagination .active .page-link {
  background-color: #710014;
  border-color: #710014;
}

/* Filter Card */
.card.bg-dark {
  background: linear-gradient(180deg, #1a1a1a, #2d2d2d) !important;
}

.form-check-input:checked {
  background-color: #710014;
  border-color: #710014;
}

/* Consultation Booking Page */

.consultation-page .page-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #0f1720 !important;
}

.consultation-page .card {
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06) !important;
}

/* card body spacing */
.consultation-page .card .card-body {
  padding: 1.25rem !important;
}

.consultation-page .fc .fc-button {
  background: transparent !important;
  border: none !important;
  color: #333 !important;
  box-shadow: none !important;
}

.consultation-page .fc .fc-button:hover {
  background: rgba(113, 0, 20, 0.05) !important;
}


/* time slot buttons */
.consultation-page .time-slot {
  display: inline-block !important;
  background: #fff !important;
  border: 1px solid #e9ecef !important;
  color: #222 !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04) !important;
  cursor: pointer !important;
  font-weight: 500 !important;
}

.consultation-page .time-slot:hover {
  background-color: #898989 !important;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06) !important;
  transform: translateY(-2px) !important;
}

/* selected time-slot state */
.consultation-page .time-slot.selected {
  background: #710014 !important;
  color: #fff !important;
  border-color: #710014 !important;
  box-shadow: 0 8px 20px rgba(113, 0, 20, 0.18) !important;
}

/* form inputs */
.consultation-page .form-control {
  border-radius: 6px !important;
  border: 1px solid #e6e6e9 !important;
  background: #fff !important;
}

/* appointment queue list */
.consultation-page .queue-list .d-flex {
  align-items: center !important;
  gap: .5rem !important;
}

.consultation-page .queue-list .badge {
  width: 12px !important;
  height: 12px !important;
  display: inline-block !important;
  border-radius: 50% !important;
  margin-right: .75rem !important;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04) !important;
}

.consultation-page .queue-list .bg-warning {
  background: #ff9900 !important;
}

.consultation-page .queue-list .bg-info {
  background: #ffd84d !important;
}

.consultation-page .queue-list .bg-secondary {
  background: #bfc2c7 !important;
}

.submit-consult-btn {
  background: linear-gradient(90deg, #710014, #9a1e2e) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

/* responsive tweaks */
@media (max-width: 992px) {

  .consultation-page .page-title {
    font-size: 22px !important;
  }
}

.custom-prof-modal {
  border-radius: 28px;
  border: 4px solid #9b59b6;
  /* purple outline like the reference */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* circular close button positioned top-right */
.modal-close-circle {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  z-index: 1051;
  border: none;
}

/* online status dot over avatar */
.status-dot {
  width: 20px;
  height: 20px;
  bottom: 0;
  right: 0;
  transform: translate(30%, 30%);
  border: 3px solid #fff;
}

/* announcement grey rounded placeholders */
.announcement-placeholder {
  height: 52px;
  background: rgba(0, 0, 0, 0.08);
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.45);
}

/* small responsive tweak */
@media (max-width: 767.98px) {
  .custom-prof-modal {
    border-radius: 18px;
  }

  .modal-body {
    padding: 1rem;
  }
}

/* Student Dashboard */

.student-dashboard .dashboard-wrap {
  padding: 28px;
}

.student-dashboard .page-header {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.student-dashboard .calendar-panel {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(19, 24, 28, 0.08);
  overflow: hidden;
}

.student-dashboard .calendar-top {
  margin-bottom: 12px;
}

.student-dashboard .month-title {
  font-weight: 700;
  color: #222;
}

.student-dashboard .btn-book {
  border-radius: 999px;
  padding: .45rem .9rem;
  font-weight: 600;
}

.student-dashboard .weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #7a0b14;
  color: #fff;
  font-weight: 600;
}

.student-dashboard .weekdays>div {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.student-dashboard .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 100px;
}

.student-dashboard .calendar-cell {
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  background: #fff;
}

.student-dashboard .calendar-cell:nth-child(7n) {
  background: #f2f2f4;
}

.student-dashboard .day-number {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.85rem;
  color: #333;
  font-weight: 600;
}

.student-dashboard .side-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(19, 24, 28, 0.06);
  margin-bottom: 18px;
}

.student-dashboard .reminders-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 6px;
}

.student-dashboard .reminders-list li {
  margin: 8px 0;
}

/* Announcements */

/* Header bar */
.announcement-header {
  background: linear-gradient(90deg, #710014, #9a1e2e);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.announcement-header i {
  font-size: 1.5rem;
}

/* Announcement cards */
.announcement-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Emergency look */
.announcement-card.emergency {
  border-left: 6px solid #dc3545;
}

.announcement-card.emergency .card-header {
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  color: #fff;
}

/* Card header & body */
.announcement-card .card-header {
  width: 100%;
  padding: .75rem 1rem;
  font-weight: 600;
  background: #f8f9fa;
}

.announcement-card .card-body {
  padding: 1rem 1.25rem;
}

/* Student Profile */

/* Profile Card */
.student-profile .card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 24, 28, 0.08);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Profile Picture */
.student-profile .card img {
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.student-profile .card img:hover {
  transform: scale(1.05);
}

/* Profile Name + Details */
.student-profile h4 {
  font-weight: 700;
  color: #222;
}

.student-profile p {
  margin-bottom: .25rem;
  color: #555;
  font-size: 0.95rem;
}

/* Edit Details Button */
.student-profile .btn-outline-secondary {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.student-profile .btn-outline-secondary:hover {
  background: #710014;
  color: #fff !important;
  border-color: #710014;
}

/* Settings Section */
.student-profile .card h5,
.student-profile .card h3 {
  color: #710014;
  font-weight: 700;
}

.student-profile .btn-outline-primary,
.student-profile .btn-outline-secondary,
.student-profile .btn-outline-danger {
  border-radius: 8px;
  font-weight: 600;
  padding: .5rem 1rem;
  transition: all 0.2s ease;
}

.student-profile .btn-outline-primary:hover {
  background: #710014;
  color: #fff;
}

.student-profile .btn-outline-secondary:hover {
  background: #6c757d;
  color: #fff;
}

.student-profile .btn-outline-danger:hover {
  background: #dc3545;
  color: #fff;
}

/* Consultation History Table */
.student-profile table {
  border-radius: 10px;
  overflow: hidden;
}

.student-profile thead {
  background: linear-gradient(90deg, #710014, #9a1e2e);
  color: #fff;
}

.student-profile th {
  font-weight: 600;
  text-align: center;
}

.student-profile td {
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
}

/* Search Box */
.student-profile .search-box input {
  border-radius: 20px;
  padding: .4rem 1rem;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.student-profile .search-box input:focus {
  border-color: #710014;
  box-shadow: 0 0 0 0.2rem rgba(113, 0, 20, 0.25);
}

/* Modal */
.student-profile .modal-content {
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.15);
}

.student-profile .modal-header {
  border-bottom: none;
}

.student-profile .modal-footer {
  border-top: none;
}
