/* ==========================================================
   🌐 General / Global Styles
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  --light: #fff;

  --primary: #cc00cc;
  /* --primary: hsl(300, 100%, 40%); */
  --light-primary: #ffdeff;
  --dark-primary: #990099;
  --text-gray: #6b7280;

  --font-family: "Montserrat";
  --header-bg: #343a40; /* dark gray header background */
  --header-card-bg: #495057; /* slightly lighter gray for header cards */
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
  display: none;
}

/* ---------- Typography ---------- */
body {
  font-family: var(--font-family), sans-serif;
}

.primary-text {
  color: var(--primary);
}
.primary-bg {
  background-color: var(--primary);
}
.gray-text {
  color: #495057;
}
.primary-border {
  border: var(--primary) 1px solid;
}

.gray-border {
  border: #adb5bd 2px solid;
}

/* Custom Typography Classes */
.heading-text {
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.3px;
  line-height: 1;
}

.small-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Ensure large form controls also use this style */
.form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem hsla(300, 100%, 40%, 0.25);
}

/* Override Bootstrap's default focus styles for all form controls */
.form-control:focus,
.form-select:focus,
.form-check-input:focus, 
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem hsla(300, 100%, 40%, 0.25);
}



/* Other form-related styles... */
/* ---------- Images (Custom) ---------- */
.avatar {
  width: 40px;
  height: 40px;
}
.avatar-medium {
  width: 72px;
  height: 72px;
}
.avatar-large {
  width: 100px;
  height: 100px;
}

/* ---------- Buttons (Custom) ---------- */

.btn-action[disabled] {
  background-color: #e5e9ed;
  color: #c8cfd5;
  border-color: #ced4da;
  cursor: not-allowed;
  pointer-events: none;
}

/* Custom class for the light gray background and border on all action buttons */
.btn-action {
  background-color: #e9ecef;
  color: #6c757d;
  font-weight: 500;
}

/* Hover effects for the action buttons */
.btn-action:hover {
  background-color: #e9ecef; /* A slightly darker gray background on hover */
  border-color: #ced4da; /* A slightly darker border on hover */
  color: #5a6268; /* A slightly darker text color on hover */
}
.primary-btn {
  display: inline-block;
  padding: 6px 26px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.primary-btn:hover {
  background-color: var(--dark-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.primary-btn:active {
  background-color: var(--dark-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.secondary-btn {
  display: inline-block;
  padding: 5px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background-color: var(--primary);
  color: var(--light);
}

.secondary-btn:active {
  background-color: var(--dark-primary);
  border-color: var(--dark-primary);
}

/* ---------- Buttons (Bootstrap Overrides) ---------- */
.fixed-width-btn {
  min-width: 150px !important; /* Adjust to your desired minimum width */
}

.btn-gray {
  /* Ensure it doesn't shrink */
  /* max-height: fit-content; */
  padding: 5px 15px;
  background-color: #dee2e6;
  border-radius: 8px;
  font-weight: 400;
  transition: all 0.2s ease;
  color: #1c1c1c;
}

.btn-gray:hover {
  background-color: #bdc0c2;
  transform: translateY(-1px);
}

.btn-primary {
  padding: 5px 25px;
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--dark-primary);
  border-color: var(--dark-primary);
  /* border-color: var(--dark-primary); */
  transform: translateY(-1px);
  color: var(--light) !important;
}

.btn-outline-primary {
  padding: 5px 25px;
  background-color: var(--light);
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  color: var(--light);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  padding: 0.5rem 0.65rem;
  font-weight: normal;
  color: var(--secondary) !important;
  border: 1px solid var(--gray-border, #ddd);
  margin: 0 0.3rem;
  background-color: transparent;
}

.pagination .page-item .page-link.border-0 {
  border: none !important;
  color: var(--secondary) !important;
  padding: 0.5rem 0.25rem;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary) !important;
  color: var(--light) !important;
  border-color: var(--primary) !important;
  font-weight: bold !important;
}

.pagination .page-link:hover {
  background-color: var(--light-primary);
  color: var(--primary) !important;
  border-color: var(--light-primary);
}

.page-item.active .page-link {
  background-color: var(--primary) !important;
  color: var(--light) !important;
  border-color: var(--primary);
}

/* ---------- Modal ---------- */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.modal-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.modal-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.modal-title {
  color: #212529;
  font-size: 1.5rem;
}

/*==================================
  Table Styles
====================================*/
/* Custom styles for table cells and borders */
.table th,
.table td {
  padding: 1rem 1.5rem;
}

.table th {
  /* border-radius: 8px; */
  color: var(--text-gray);
  background-color: #f8f9fa !important;
}

.table thead tr th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.table thead tr th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.table td {
  color: var(--text-gray);
  border-bottom: 1px solid#eef2f5;
}

/* Status Badges */
.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px; /* Pill shape */
  font-size: 0.85rem;
  font-weight: 600;
}

.status-upcoming {
  background-color: #e89e0033;
  color: #e89e00;
}

.status-done {
  background-color: var(--light-primary);
  color: var(--primary);
}
.status-schedule {
  background-color: #adb5bd;
  color: #1c1c1c;
}
.upcoming-events-badge {
  background-color: #F8F9FA;
  color: #6C757D;
}

.status-active {
  /* background-color: var(--light-primary); */
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Form Controls ---------- */
.form-control-lg {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(204, 0, 204, 0.25);
}

.form-label {
  color: #212529;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ---------- Utilities ---------- */
.sidebar {
  position: fixed; /* stays fixed */
  top: 0;
  left: 0;
  height: 100vh; /* full viewport height */
  width: 16.6667%; /* 2 columns in Bootstrap (col-lg-2 ≈ 16.67%) */
  overflow-y: auto; /* independent scrolling */
  border-right: 1px solid #dee2e6; /* optional: divider */
  z-index: 1030; /* keeps above main content */
}

/* Apply margin only on large screens and up */
@media (min-width: 992px) {
  main {
    margin-left: 16.6667%; /* same as sidebar width */
  }
}

@media (max-width: 991.98px) {
  main {
    margin-left: 0; /* no sidebar, full width */
  }
}

.dashed-border {
  border: 2px dashed var(--header-card-bg);
  border-radius: 8px;
}

.active-link,
.active-link i {
  color: var(--primary);
}

.active-link {
  background-color: var(--light-primary);
  border-radius: 12px;
  color: var(--primary) !important;
}

.nav-link:hover {
  /* border-radius: 8px; */
  /* border: 1px solid var(--primary); */
  color: var(--primary) !important;
  /* border-radius: 12px; */
}

/* ==========================================================
   📄 Page-Specific Styles
   ========================================================== */

/* ---------- Events Overview Card ---------- */
.overview-card {
  min-height: 350px;
  background-image: url("../assets/images/spiral.svg");
  background-position: top center;
  background-position-x: 65%;
  background-repeat: no-repeat;
  background-size: 25%;
}

@media (max-width: 767.98px) {
  .overview-card {
    position: relative;
    padding: 1rem;
    min-height: auto;
    background-position: top 10px left -20px;
    background-size: 150px auto;
  }

  .overview-card > .d-flex {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 0;
  }

  .overview-card .me-md-auto {
    padding-top: 3rem;
    padding-left: 1rem;
    text-align: left;
    width: 100%;
  }

  .overview-card button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
  }

  .overview-card h1,
  .overview-card p {
    color: #fff;
  }
}

/* ---------- Manage Events Page ---------- */
.icon-box {
  background: var(--header-card-bg);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--light);
  font-size: 1.5rem;
}

/* ---------- Image Upload ---------- */
.image-upload-area {
  background-color: var(--light);
  border-color: #dee2e6 !important;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-upload-area:hover,
.image-upload-area.dragover {
  border-color: var(--primary) !important;
  background-color: #f4e1f9;
}

.upload-content,
.upload-info {
  pointer-events: none;
}

/* ---------- Speaker Cards ---------- */
.speaker-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speaker-info h6 {
  margin: 0;
  font-weight: 600;
  color: #212529;
}

.speaker-info small {
  color: #6c757d;
}

.speaker-remove {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.speaker-remove:hover {
  background-color: #f8d7da;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1rem;
  }

  .image-upload-area {
    min-height: 150px;
    padding: 2rem 1rem;
  }

  .speaker-form .row {
    flex-direction: column;
  }

  .speaker-form .col-md-4 {
    width: 100%;
  }
}

/* ---------- Notification Page ---------- */
.notification-item.read {
  padding: 5px 10px;
  border-radius: 8px;
  background-color: #ffff;
  border-bottom: 0;
}

.notification-item.unread {
  padding: 5px 10px;
  border-bottom: 1px solid #e9ecef;
}

.notification-item:hover {
  background-color: #f1f3f5;
  padding: 5px 10px;
  border-radius: 8px;
}

/* ---------- Member Page ---------- */

/* Make intl-tel-input take full width */
.iti {
  width: 100% !important;
}

/* Also stretch the input itself */
.iti input {
  width: 100% !important;
}

/* ---------- Member Profile Pending Page ---------- */
.profile-img {
  top: 100%; /* Push image to bottom edge of cover */
}

.cover-photo {
  height: 108px; /* Height for small screens (default) */
  width: 100%;
  object-fit: cover;
}

/* Medium screens (tablets) starting at 768px */
@media (min-width: 768px) {
  .cover-photo {
    height: 220px;
  }
}

/* Large screens (desktops) starting at 992px */
@media (min-width: 992px) {
  .cover-photo {
    height: 335px;
  }
}

.badges {
  font-size: small;
  padding: 5px 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
}

/* Resource Detail Page */
/* Play button centered over image */
.play-btn {
  width: 48px;
  height: 48px;
  background-color: #fee4ff; /* requested round background */
  color: #cc00cc; /* requested icon color */
  border-radius: 50%;
  text-decoration: none;
  z-index: 10; /* sits above the image */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease;
}

/* Make the icon size comfortable inside the 56px circle */
.play-btn .bi {
  font-size: 2rem; /* adjust slightly if you want bigger/smaller */
  line-height: 1;
}

/* small hover effect */
.play-btn:hover {
  transform: scale(1.06);
}

/* ==================== Setting Page =====================================*/

/* Hide the default checkbox input visually */
.pure-toggle-checkbox {
  /* Use 'hidden' attribute in HTML or this CSS */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 1. Track (The Outer Pill/Container) */
.pure-toggle-track {
  /* Dimensions and Shape */
  display: block;
  width: 62px;
  height: 32px;
  border-radius: 32px;

  /* OFF State Colors */
  background-color: #e9ecef;

  /* Required for positioning the thumb */
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;

  /* Ensure no focus outline interferes */
  outline: none;
  box-shadow: none;
}

/* 2. Thumb (The Inner Circle) */
.pure-toggle-track::before {
  content: "";
  position: absolute;

  /* Dimensions and Shape */
  width: 26px;
  height: 26px;
  border-radius: 50%;

  /* OFF State Colors */
  background-color: #adb5bd;

  /* Position the thumb for the OFF state (3px padding all around) */
  top: 3px;
  left: 3px;

  transition: transform 0.3s, background-color 0.3s;
}

/* --- CHECKED (ON) STATE --- */

/* 3. Track ON State (When the HIDDEN checkbox is checked, style the track label) */
.pure-toggle-checkbox:checked + .pure-toggle-track {
  background-color: #cc00cc; /* ON state track color */
}

/* 4. Thumb ON State (When the HIDDEN checkbox is checked, move and color the thumb) */
.pure-toggle-checkbox:checked + .pure-toggle-track::before {
  background-color: #ffffff; /* ON state thumb color (White) */

  /* Calculate translation: 62px (track) - 26px (thumb) - 3px (left padding) = 33px */
  transform: translateX(33px);
}

.profile-edit-icon {
  width: 32px;
  height: 32px;
  background: #E9ECEF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registration-body{
  background-image: url("../assets/images/bg-registration-form.png");
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
}
