
/* ======== FONT IMPORT ======== */
/* ======== FONT IMPORT ======== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
}
:root {
  --primary-color:    #0F5D8B;   /* deep blue from logo */
  --accent-color:     #1AC6FF;   /* aqua gradient */
  --secondary-color:  #ffffff;
  --surface:          #FFFFFF;
  --border-color:     #E0E0E0;
  --text-color:       #1C2D3A;
  --muted-color:      #7A8A99;
  --shadow:           0 2px 10px 0 rgba(15,93,139,0.07);
  --success-bg:       #dafbe1;
  --success-color:    #137547;
  --danger-bg:        #fdecf0;
  --danger-color:     #ae2e2e;
  --warning-bg:       #fff4ce;
  --warning-color:    #b58900;
  --info-bg:          #e9f3fc;
  --info-color:       #3178ba;
  --remove-bg:        #fceff2;
  --remove-color:     #a14559;
}
/* ========= GENERAL BUTTON BASE ============ */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.11;
  padding: 0.38em 1.45em;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  outline: none;
  transition: background 0.18s, color 0.14s, box-shadow 0.16s;
  background: var(--surface);
  color: var(--text-color);
}
.btn i {
  font-size: 1.13em;
}
.d-flex.gap-2 > form {
  margin: 0;
}
.btn:focus {
  box-shadow: 0 0 0 2px var(--accent-color)33;
}
/* ========= PRIMARY ============ */
.btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 1.5px solid var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-color);
  color: var(--surface);
  border-color: var(--accent-color);
}
/* ========= SECONDARY ============ */
.btn-secondary {
  background: var(--surface);
  color: var(--primary-color);
  border: 1.5px solid var(--border-color);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--border-color);
}
/* ========= SUCCESS ============ */
.btn-success {
  background: var(--success-bg);
  color: var(--success-color);
  border: 1.5px solid var(--success-bg);
}
.btn-success:hover,
.btn-success:focus {
  background: #5edba6;
  color: var(--success-color);
}
/* ========= WARNING ============ */
.btn-warning {
  background: var(--warning-bg);
  color: var(--warning-color);
  border: 1.5px solid var(--warning-bg);
}
.btn-warning:hover,
.btn-warning:focus {
  background: #ffe8a4;
  color: #8b5e00;
}
/* ========= DANGER ============ */
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-color);
  border: 1.5px solid var(--danger-bg);
}
.btn-danger:hover,
.btn-danger:focus {
  background: var(--danger-color);
  color: var(--secondary-color);
}
/* ========= REMOVE ============ */
.btn-remove {
  background: var(--remove-bg);
  color: var(--remove-color);
  border: 1.5px solid var(--remove-bg);
}
.btn-remove:hover,
.btn-remove:focus {
  background: var(--remove-color);
  color: var(--secondary-color);
}
/* ========= INFO ============ */
.btn-info {
  background: var(--info-bg);
  color: var(--info-color);
  border: 1.5px solid var(--info-bg);
}
.btn-info:hover,
.btn-info:focus {
  background: #cfebfa;
  color: #205888;
}
/* ========= DISABLED ============ */
.btn:disabled,
.btn.disabled {
  opacity: 0.7;
  background: var(--border-color) !important;
  color: #999 !important;
  border-color: var(--border-color) !important;
  pointer-events: none;
}
/* base html page  */
/* Notification Button (Modern Floating Style) */
.btn-notify {
  background: #f3f4f6;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: 0.25s ease;
}
.btn-notify:hover {
  background: #e5e7eb;
}
/* Notification Badge */
.notify-badge {
  top: -4px;
  right: -4px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 50%;
  display: none; /* JS will show when needed */
  animation: popIn 0.3s ease;
}
/* Dropdown Styling */
.notify-dropdown {
  min-width: 320px;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 12px;
  border: none;
}
/* Optional: notification list items */
.notify-dropdown li a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s;
}
.notify-dropdown li a:hover {
  background: #f2f2f2;
}
/* Shared Floating Icon Button */
.btn-nav-icon {
  background: #f3f4f6;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none; /* for <a> */
}
.btn-nav-icon:hover {
  background: #e5e7eb;
  color: #111;
}
.btn-nav-icon i {
  pointer-events: none; /* prevents accidental clicks on the icon */
}
/* profile sidebar page  */
.sidebar-group-btn {
    width: 100%;
    background: none;
    border: none;
    color: #333;
    padding: 2px 5px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
/* Submenu */
.sidebar-sub {
    margin-left: 1.8rem;
    padding-left: 5px;
    border-left: 2px solid #e5e5e5;
}
.sidebar-sub li {
    margin: 6px 0;
}
.sidebar-sub a {
    color: #444;
    font-size: 0.88rem;
    text-decoration: none;
}
/* Arrow rotation */
.sidebar-group-btn .arrow {
    transition: transform .25s ease;
}
.sidebar-group-btn[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}
/* ======== GLOBAL STYLES ======== */
html, body {
  font-family: "Inter", sans-serif !important;
  background-color: #f5f5f5 !important;
  margin: 0;
  padding: 0;
  color: #333;
  font-weight: 400;
  height: 100%;
  overflow: hidden; /* Prevent full page scroll */
}
.row > * {
  padding-right: 0;
  padding-left: 0;
}
/* ======== MAIN CONTENT AREA ======== */
main {
  height: calc(100vh - 70px);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
main .container {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
main .main-row {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
/* Make each column scrollable independently */
.scrollable-column {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 5px;
  /* Hide scrollbar for all browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
/* Optional: Clean scrollbar */
.scrollable-column::-webkit-scrollbar {
  display: none; 
}
.scrollable-column::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
/* Text and Utility Styles */
a {
  text-decoration: none;
  color: #007bff;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}
.text-primary {
  color:  var(--primary-color) !important;
}
/* ======== PROFESSIONAL NAVBAR ======== */
.navbar-custom {
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1032;
  transition: background-color 0.3s ease;
}
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: color 0.3s;
}
.navbar-custom .navbar-brand img {
  border-radius: 0.25rem;
}
.navbar-custom .nav-link,
.navbar-custom .dropdown-toggle {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-left: 1.25rem;
  transition: color 0.3s, background-color 0.2s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .dropdown-toggle:hover {
  color: var(--primary-color);
}
.navbar-custom .form-control {
  font-size: 0.9rem;
  color: var(--text-color);
  box-shadow: none;
  transition: border-color 0.3s ease;
}
.navbar-custom .form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.1rem rgba(15, 93, 139, 0.15);
}
.navbar-custom .dropdown-menu {
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}
.navbar-custom .dropdown-item {
  font-size: 0.9rem;
  padding: 3px 12px;
  color: var(--text-color);
  transition: background-color 0.2s, color 0.2s;
}
.navbar-custom .dropdown-item:hover {
  background-color: var(--info-bg);
  color: var(--primary-color);
}
.navbar-custom .badge {
  font-size: 0.65rem;
  font-weight: 600;
}
#map { height: 180px; }
/* Middle nav icons */
.navbar-custom .nav-link i {
  font-size: 1.2rem;
  vertical-align: middle;
}
/* Mobile bottom nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  border-top: 1px solid #e0e0e0;
}
.mobile-bottom-nav .nav-link {
  color: var(--primary-color);
  font-size: 1.25rem;
  padding: 0.5rem 0;
  flex-grow: 1;
}
.mobile-bottom-nav .nav-link.active,
.mobile-bottom-nav .nav-link:focus,
.mobile-bottom-nav .nav-link:hover {
  color: #452c63;
}
/* ======== CONTENT PROFILE PART ======== */
.profile-card {
  padding: 0;
  overflow: hidden;
}
.profile-card .cover-photo {
  object-fit: cover;
  height: 190px;
  width: 100%;
}
.profile-card .profile-img-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -10px;
  z-index: 10;
}
.profile-card .profile-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 30%;
  border: 3px solid #fff;
}
.profile-card .name-section {
  margin-top: 40px;
  text-align: center;
}
.profile-card .name-section h5 {
  margin-bottom: 0;
}
.profile-card .name-section p {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
.profile-card .nav-links {
  padding-left: 1.5rem;
  padding-bottom: 1rem;
}
.profile-card .nav-links li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  transition: background-color 0.2s;
  list-style: none;
}
.profile-card .nav-links li:last-child {
  border-bottom: none;
}
.profile-card .nav-links li:hover {
  color: var(--primary-color);
  cursor: pointer;
}
/* ======== FOOTER ======== */
.footer {
  background-color: var(--light-gray);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-color);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}
/* ======== AUTH PAGES (LOGIN / SIGNUP) ======== */
/* .login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
} */
.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); */
  width: 100%;
  max-width: 500px;
}
.login-box header h3 {
  font-weight: 700;
  color: #0d6efd;
}
.signup-box {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); */
  width: 100%;
  max-width: 600px;
}
.toggle-password {
  cursor: pointer;
}
.signup-redirect small {
  font-size: 14px;
}
.form-buttons {
  margin-top: 1rem;
}
.signup-redirect {
  margin-top: 1rem;
}
.brand-row {
  gap: 0.5rem;
}
.brand-row img {
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.brand-row img:hover {
  transform: scale(1.05);
}
.brand-row h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #212529;
  font-size: 1.75rem;
}
/* Tagline */
.brand-logo p {
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.alert {
  max-width: 540px;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}
/* ======== Input Field Styles (Themed) ======== */
.input-container {
  position: relative !important;
  margin-bottom: 1.5rem !important;
}
.input-field {
  width: 100% !important;
  padding: 10px 35px 10px 35px !important; /* space for icons */
  font-size: 0.95rem !important;
  border: none !important;
  border-bottom: 2px solid var(--primary-color) !important;
  outline: none !important;
  background-color: transparent !important;
  color: var(--text-color) !important;
}
.select-field {
  display: block !important;
  width: 100% !important;
  padding: 10px 35px 10px 35px !important; /* space for icons */
  font-size: 0.95rem !important;
  border: none !important;
  /* border-bottom: 2px solid var(--primary-color) !important; */
  outline: none !important;
  background-color: transparent !important;
  color: var(--text-color) !important;
}
.input-label {
  position: absolute !important;
  top: 12px !important;
  left: 35px !important;
  font-size: 0.95rem !important;
  color: var(--primary-color) !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
}
.input-highlight {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 2px !important;
  width: 0 !important;
  background-color: var(--primary-color) !important;
  transition: width 0.3s ease !important;
}
.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
  top: -10px !important;
  font-size: 12px !important;
  color: var(--primary-color) !important;
}
.input-field:focus + .input-label + .input-highlight {
  width: 100% !important;
}
.input-icon-left {
  position: absolute !important;
  top: 50% !important;
  left: 10px !important;
  transform: translateY(-50%) !important;
  color: var(--primary-color) !important;
  font-size: 16px !important;
  z-index: 1 !important;
}
.input-icon-right {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  color: var(--primary-color) !important;
  font-size: 16px !important;
  cursor: pointer !important;
  z-index: 1 !important;
}
/* profile page  */
/* Profile Cover Section */
.profile-cover-section {
  position: relative;
  display: block;
  padding-bottom: 5px; /* ensures content below isn't overlapped */
}
.profile-cover {
  background-size: cover;
  min-height: clamp(200px, 40vh, 350px);
  filter: brightness(91%);
  position: relative;
}
.profile-meta-card-photo {
  position: absolute;
  left: 3vw;
  bottom: -70px;
  z-index: 12;
}
.profile-meta-card-photo img {
  width: clamp(120px, 20vw, 150px);
  height: clamp(120px, 20vw, 150px);
  object-fit: cover;
  border-radius: 10%;
  border: 4px solid #fff;
}
.profile-meta-card-info {
  position: absolute;
  left: 215px;
  bottom: -60px;
  z-index: 15;
  font-size: 0.9rem;
  width: calc(100% - 12vw);
}
.profile-meta-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.profile-meta-info-text {
  min-width: 50%;
}
.profile-meta-info-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

/* edit profile css */
/* ---------- Overlay ---------- */
.cover-edit-overlay, .profile-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  color: #fff;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .3s;
  border-radius: 8px;
}
.profile-edit-overlay:hover,
.cover-edit-overlay:hover {
  opacity: 1;
}
/* ===== NEW: Secondary Info (Location + University) ===== */
/* ===== Secondary Info (Location + University) ===== */
.profile-meta-secondary {
  position: relative;          /* normal flow for PC */
  margin-top: 72px;            /* spacing under main info */
  font-size: 0.9rem;
  width: 100%;
  text-align: center;          /* centers on PC */
  color: #6c757d;
  margin-left: 10px;
}
.profile-meta-secondary p {
  margin: 0;
  display: flex;
  justify-content: left;     /* aligned to the left */
  align-items: center;
  flex-wrap: wrap;
}
.profile-meta-secondary i {
  font-size: 1rem;
  margin-right: 4px;
}
/* Container for content alignment after banner */
/* Prevent horizontal overflow */
.profile-main-container {
  margin-top: 10px;
  border-top: 1px solid #eee;
  overflow-x: hidden; /* avoids extra width issue */
}
/* Ensure row/col works well */
.profile-main-container .row {
  margin-left: 0;
  margin-right: 0;
}
.profile-main-container .col-lg-12 {
  padding-left: 0;
  padding-right: 0;
}
.profile-connection-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}
/* Username truncation under avatars */
.profile-connection-username {
  max-width: 58px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ======== Profile Tabs ======== */
.profile-tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 0;
  background: var(--secondary-color);
  font-size: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.profile-tabs a {
  margin: 0;
  padding: 8px 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-color);
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  white-space: nowrap;
}
.profile-tabs::-webkit-scrollbar {
  display: none;
}
.profile-tabs a.active,
.profile-tabs a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.profile-tab-pane {
  display: none;
}
.profile-tab-pane.show {
  display: block;
}
.profile-tabs a {
  cursor: pointer;
}
/* for about list styleing  */
.profile-info-card {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}
/* Overview Box */
.overview-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.overview-box h6 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.overview-box p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.detail-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
  word-break: break-word;
}
.detail-box i {
  font-size: 1.2rem;
  color: var(--primary-color, #2563eb);
  flex-shrink: 0;
}
.detail-box strong {
  font-weight: 600;
  margin-right: 5px;
  color: #111827;
}
/* edit part in profile about section  */
.slim-modal { --bs-border-radius: 1rem; }
.section-card { scroll-margin-top: 72px; }
.section-nav .nav-link { color:#495057; border-radius:.6rem; }
.section-nav .nav-link.active { background: rgba(13,110,253,.08); color: var(--bs-primary); }
.section-nav .nav-link:hover { background: rgba(108,117,125,.08); }

.dashed-box {
  cursor: pointer;
  border: 2px dashed #ddd;
  background: #f9fafb;
  font-weight: 500;
  color: #555;
  transition: 0.2s;
}
.dashed-box:hover {
  background: #f1f5f9;
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.connection-item {
  transition: background 0.2s ease;
  border-radius: 6px;
}
.connection-item:hover {
  background: #f9fafb;
}
.connection-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}
.connection-actions .btn {
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.connection-actions .btn:hover {
  background: #f1f5f9;
}
/* ======== Edit Icon on Profile Pic ======== */
.edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  font-size: 12px;
  border: 2px solid var(--secondary-color);
}
/* ---------- Action Bar ---------- */
.cover-action-bar, .profile-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px 8px;
  box-sizing: border-box;
  border-radius: 0 0 8px 8px;
}
/* === Professional Card Styles === */
.card {
  background-color: var(--secondary-color);
  transition: 
    box-shadow 0.33s cubic-bezier(0.6,0,0.2,1),
    transform 0.19s cubic-bezier(0.33,0,0.77,1),
    background 0.18s;
  box-shadow: 0 2px 12px rgba(70,90,120,0.07), 0 1px 3px rgba(0,0,0,0.03);
  border: none;
  position: relative;
  overflow: visible;
}
/* Header style */
.card-header {
  background-color: var(--secondary-color) !important;
  color: #000;
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px 12px 0 0;
  gap: 0.38rem;
  box-shadow: 0 1px 9px -8px #555;
}
/* Body style */
.card-body {
  padding: 1.07rem 1.13rem;
  font-size: 1rem;
  line-height: 1.59;
  color: var(--text-color);
  background: rgba(255,255,255,0.91);
  border-radius: 0 0 12px 12px;
  word-break: break-word;
}
/* === Post Creation Specific Styling === */
.post-creation-card .profile-img {
  border: 2px solid var(--primary-color);
  object-fit: cover;
}
.post-creation-card button {
  font-size: 14px;
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}
.post-creation-card button:hover {
  background-color: #e9ecef;
}
/* === Elegant Post Header === */
.post-header {
    background: #ffffff;
    padding: 5px 0px;
    gap: 10px;
    border-radius: 8px 8px 0 0;
    transition: background 0.2s ease-in-out;
}
.post-header i {
    color: #0d6efd;
    font-size: 1.25rem;
}
.post-header h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}
.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}
/* User Info */
.post-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.username-line {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.username-link {
    color: #222;
    text-decoration: none;
    font-weight: 600;
}
.username-link:hover {
    color: var(--primary-color);
}
/* Tagged Friends */
.tagged-text {
    font-size: 0.875rem;
    color: #6c757d;
}
.tagged-link,
.tagged-more-link {
    color: #495057;
    font-weight: 500;
    text-decoration: none;
}
.tagged-link:hover,
.tagged-more-link:hover {
    text-decoration: underline;
}
/* Timestamp */
.post-timestamp {
    font-size: 0.75rem;
    color: #adb5bd;
}
/* Dropdown Toggle */
.post-options-toggle {
    color: #6c757d;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.post-options-toggle:hover {
    background-color: #f8f9fa;
}
/* Dropdown Menu */
.post-options-menu {
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.post-options-menu .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}
.post-options-menu .dropdown-item:hover {
    background-color: #f1f3f5;
}
.post-options-menu .dropdown-item i {
    font-size: 1rem;
}
/* === Post Content === */
.post-text {
  font-size: 14px;
}
/* === Media Grid === */
/* Default layout: single column */
.post-media-grid.single-media {
  display: block;
}
/* For multiple media items */
.post-media-grid {
  display: grid;
  gap: 3px;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
/* === Media Thumbnail === */
.media-thumb {
  position: relative;
  overflow: hidden;
  background-color: #f3f4f6;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.media-thumb-img,
.media-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
/* === Single Media === */
.post-media-grid.single-media {
  grid-template-columns: 1fr;
}
/* === Two Media === */
.post-media-grid.two-media {
  grid-template-columns: repeat(2, 1fr);
}
/* === Three or more media === */
.post-media-grid.three-media {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}
.post-media-grid.three-media .main-media {
  grid-row: span 2;
}
/* === Dark Overlay for +N === */
.dark-overlay img,
.dark-overlay video {
  filter: brightness(0.5);
}
/* === +N Overlay Style === */
.media-thumb-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 24px;
  pointer-events: none;
}
/* === Modal Media === */
.modal-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
}
/* === Reaction, Comment, Share Buttons === */
/* === Action Button Base === */
.btn-action {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: none !important;
  background: transparent !important;
  border-radius: 0;
  font-weight: 600;
  box-shadow: none !important;
  transition: color 0.15s;
  gap: 0.4rem;
  padding-left: 0; /* for true left alignment */
  width: auto !important;
  min-width: 0 !important;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}
.btn-action:focus {
  outline: none;
  box-shadow: none;
}
.btn-like i.bi-hand-thumbs-up,
.btn-like i.bi-star-fill {
  font-size: 16px;
  margin-right: 0.05em;
}
.btn-comment i,
.btn-share i {
  font-size: 15px;
}
.count-badge-top {
  background-color: transparent !important;
  color: #888;
  font-size: 0.83em;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 14px;
  box-shadow: none;
  margin-left: 0.2em;
}
.action-buttons.gx-1.align-items-center {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.25rem !important;
  flex-wrap: nowrap !important;
}
.action-buttons.gx-1 .col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
}
/* Optional: shrink buttons slightly for compact look */
.btn-action span {
  font-weight: 500;
}
/* === Media preview in Create Post Modal === */
#mediaPreview .preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 150px;
}
#mediaPreview .preview-item img,
#mediaPreview .preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
#mediaPreview button.bi-x-circle {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #444444;
  font-size: 1.3rem;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  padding: 2px 5px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}
#mediaPreview button.bi-x-circle:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}
/* Overlay +X more for media preview */
.overlay-more {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(69, 44, 99, 0.75);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
}
/* Comment section spacing */
/* Comment bubble */
#comments-section .bg-light {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}
/* Username */
#comments-section strong {
    font-weight: 600;
    color: #333;
}
/* Comment text */
.comment-body-text {
    display: block;
    color: #555;
    font-size: 0.95em;
    word-break: break-word;
}
/* Edit button icon */
.comment-edit-btn i {
    color: var(--primary-color);
}
/* Edit input */
.comment-edit-form input[type="text"] {
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    padding: 4px 8px;
}
/* Save and Cancel buttons */
.comment-edit-form button.btn {
    padding: 4px 8px;
    font-size: 14px;
}
.comment-edit-form .btn-light {
    border: 1px solid #ccc;
}
/* Empty comment message */
#comments-section p.text-muted {
    font-style: italic;
    font-size: 0.9em;
}
/* Add comment input */
#comments-section form[aria-label="Add a new comment"] input[type="text"] {
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
}
/* Send button */
#comments-section .btn-outline-primary {
    border-radius: 0 4px 4px 0;
    border-left: none;
}
.comment-input-group {
    overflow: hidden;
}
/* Input styling */
.comment-input-group input {
    font-size: 14px;
}
/* select 2 tag field design  */
.tag-select-group {
    border-radius: 8px;
    overflow: hidden;
}
/* Icon container styling */
.tag-select-group .input-group-text {
    background-color: #fff;
    border-right: none;
    padding-left: 12px;
    padding-right: 8px;
}
/* Select styling */
.tag-select-group select {
    border-left: none;
    box-shadow: none;
    font-size: 14px;
}
/* for show tagged friends */
.popover {
  max-width: 200px; /* adjust width */
  font-size: 0.9rem;
}
.popover-body > div {
  padding: 2px 5px;
}
/* For better appearance with Select2 (if using)  */
/* Tag Friends Dropdown */
.select2-container--default .select2-selection--multiple {
    padding: 4px 8px;
    min-height: 40px;
    border: 1px solid #ccc;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 5px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e9ecef;
    color: #000;
}
.flex-grow-1 .d-flex.align-items-center {
  gap: .45rem;
}
.flex-grow-1 .text-muted.small {
  font-size: 0.96em;
  font-weight: 400;
}
/* === Find Connections === */
.find-connections {
  max-width: 720px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
}
.page-title {
  font-weight: 600;
  color: var(--primary-color);
}
.section-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-color);
  padding-left: 8px;
}
.connection-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.connection-item:hover {
  background: #f5f5f5;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
  text-decoration: none;
}
.meta {
  display: block;
  font-size: 0.75rem;
  color: #777;
}
/* ========== AVATAR ========== */
.profile-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #fff;
    background: #fff;
}
/* edit_post page current image and video delete button */
.image-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1;
  background-color: #dc3545; 
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.image-delete-btn:hover {
  background-color: #bb2d3b;
}
.user-marker-icon img {
  border-radius: 50%;
  border: 2px solid #007bff;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
/* profile media section  */
.folder-box {
  cursor: pointer;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.folder-box:hover {
  background: #eef6ff;
  border-color: #0d6efd;
  color: #0d6efd;
}
.folder-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
  color: #6c757d;
}
/* Media Gallery */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  justify-content: center;
}
.media-item {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
#mediaPreviewModal .modal-content {
  overflow: hidden;
}
#mediaPreviewModal img, 
#mediaPreviewModal video {
  max-height: 80vh;
}
/* Timeline Layout */
.timeline {
  position: relative;
  padding-left: 1rem;
}
.timeline-item {
  margin-bottom: 1.5rem;
}
.timeline-icon {
  flex-shrink: 0;
}
.timeline-content {
  max-width: 100%;
}
/* === Tutor List === */
.tutor-list {
  max-width: 850px;
  margin: auto;
}
.page-heading {
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}
.tutor-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}
.tutor-avatar-link {
  flex-shrink: 0;
}
.tutor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}
.tutor-info {
  margin-left: 16px;
}
.tutor-name {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
}
.tutor-name:hover {
  color: var(--primary-color);
}
.tutor-meta {
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
}
.tutor-meta div {
  margin-bottom: 3px;
}
.tutor-rating {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 0.9rem;
}
.tutor-action {
  margin-left: 16px;
}
/* check out page design  */
.checkout-container {
  margin: 0 auto;
  color: var(--text-color);
}
/* Title */
.checkout-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-title h3 {
  font-weight: 700;
  color: var(--primary-color);
}
.pill {
  font-size: .8rem;
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info-color);
}
/* Card */
.checkout-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
/* Rows */
.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.checkout-row.muted {
  opacity: .85;
  font-size: .95rem;
  color: var(--muted-color);
}
.checkout-total {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-color);
}
/* Providers */
.providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 12px;
}
.provider-btn {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-weight: 600;
  color: var(--text-color);
  transition: all .2s ease-in-out;
}
.provider-btn:hover {
  background: var(--info-bg);
  color: var(--info-color);
  transform: translateY(-2px);
}
/* Wallet */
.wallet-input { 
  width: 140px;
}
.help {
  font-size: .85rem;
  color: var(--muted-color);
}
.wallet-options {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wallet-apply {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
/* Buttons */
.wallet-only-btn {
  font-weight: 700;
  background: var(--accent-color);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  transition: background .2s ease-in-out;
}
.wallet-only-btn:hover {
  background: var(--primary-color);
}
.wallet-help {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted-color);
}
/* ===== Premium Chat Users Page ===== */
.chat-users-container {
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Header */
.chat-users-header {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
}
.chat-users-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}
.chat-users-header .subtitle {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}
/* User List */
.chat-users-list {
  padding: 22px 24px;
}
.chat-user-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}
.chat-user-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(15,93,139,0.15);
}
/* Avatar */
.avatar-wrapper {
  position: relative;
  margin-right: 16px;
}
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}
.status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.status-badge.online { background: #28a745; }
.status-badge.offline { background: #bbb; }
/* User Info */
.user-info {
  flex: 1;
}
.username {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}
.last-seen {
  font-size: 0.82rem;
  color: var(--muted-color);
}
/* Arrow / Icon */
.chat-arrow {
  font-size: 1.3rem;
  color: var(--muted-color);
  transition: color 0.2s;
}
.chat-user-card:hover .chat-arrow {
  color: var(--primary-color);
}
/* Empty State */
.no-users {
  text-align: center;
  color: var(--muted-color);
  padding: 32px;
  font-size: 1rem;
}
/* design for chat page  */
/* ===== Layout ===== */
.chat-container {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 92vh;
}
/* ===== Header ===== */
.chat-header {
  gap: 12px;
  padding: 15px 12px;
}
.chat-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-username {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.chat-status {
  font-size: 0.85rem;
  color: #28a745;
}
/* ===== Chat Box ===== */
.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  max-width: 65%;
  display: flex;
  flex-direction: column;
  margin-bottom: 3px;
  padding: 10px 14px;
  border-radius: 16px;
  position: relative;
  font-size: 0.98rem;
  word-break: break-word;
}
.chat-message p {
  margin: 0;
}
.chat-message .time {
  display: block;
  font-size: 0.72rem;
  color: #777;
  margin-top: 4px;
  text-align: right;
}
.chat-message.sent .time {
  color: #399e2c;
}
.chat-message.received .time {
  color: #555;
}
.chat-message.received {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #eee;
  color: #222;
}
.chat-message.sent {
  align-self: flex-end;
  background: #d1f7c4;
  color: #174700;
}
/* Compact Media */
.chat-media-img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 12px;
  margin-bottom: 6px;
  display: block;
}
.chat-media-file {
  font-size: 0.93rem;
  color: #3855b3;
  margin-bottom: 7px;
}
/* ===== Input Bar ===== */
.chat-input-bar {
  display: flex;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #eaeaea;
  background: #fff;
}
.chat-input {
  flex: 1;
  border: none;
  background: #f6f7f9;
  padding: 10px 14px;
  border-radius: 20px;
  margin: 0 10px;
  font-size: 0.95rem;
}
.chat-input:focus {
  outline: none;
  background: #eef0f2;
}
.send-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.send-btn:hover {
  background: #0a58ca;
}
/* ===== Attachments ===== */
.attach-wrapper {
  position: relative;
}
.attach-icon {
  font-size: 20px;
  cursor: pointer;
}
.attach-options {
  display: none;
  position: absolute;
  top: 25px;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.attach-options div {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.attach-options div:hover {
  background: #f5f5f5;
}
.file-preview {
  padding: 10px;
  font-size: 0.9rem;
  color: #555;
}
/* ===== Payment Section ===== */
.payment-section {
  padding: 15px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.payment-form {
  display: flex;
  gap: 10px;
}
.payment-form input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.request-btn {
  background: #51eb75;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.history-btn {
  display: block;
  margin: 12px;
  text-align: center;
  padding: 10px;
  background: #f6f7f9;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #222;
}
/* ===== Image Modal ===== */
#image-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
/* post home work  */
#filePreviewList li {
    background: #f8f9fa;
    font-size: 0.9rem;
}
#filePreviewList li:hover {
    background: #eef1f4;
}
/* start designing for homework pages  */
.homework-container {
  margin: auto;
}
/* Card Styling */
.homework-card {
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}
.homework-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
/* Header */
.homework-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e6ed;
  color: #222;
  font-weight: 600;
  padding: 1rem 1.25rem;
}
.homework-card .card-header h5 {
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Labels */
.homework-card .form-label {
  font-weight: 500;
  color: #444;
  font-size: 0.95rem;
}
/* Inputs */
.homework-card .form-control {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
}
.homework-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: none;
  outline: none;
}
/* Switch Toggle */
.homework-card .form-check-input {
  cursor: pointer;
}
.homework-card .form-check-label {
  font-weight: 500;
  margin-left: 6px;
  color: #333;
}
/* Errors */
.homework-card .text-danger.small {
  margin-top: 4px;
  font-size: 0.85rem;
}
/* Button */
.homework-card .btn-primary {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  background: #0d6efd;
  border: none;
  transition: background 0.2s ease;
}
.homework-card .btn-primary:hover {
  background: #0b5ed7;
}
/* homework list -page */
/* Section Heading */
.hw-section-title {
  font-weight: 600;
  color: #222;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Homework Card */
.hw-card {
  border: 1px solid #f1f1f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.hw-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}
.hw-card-body {
  padding: 1rem 1.25rem;
}
/* User Info */
.hw-user {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}
.hw-user img {
  border: 1px solid #e9ecef;
}
.hw-user-details strong {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}
.hw-user-details small {
  font-size: 0.8rem;
  color: #6c757d;
}
/* Title */
.hw-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #0061ff;
}
/* Meta Info */
.hw-meta {
  margin-bottom: 0.6rem;
}
.hw-meta p {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #444;
}
.hw-description {
  font-size: 0.85rem;
  color: #6c757d;
}
/* Footer Row */
.hw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f1f1;
  padding-top: 0.7rem;
  margin-top: 0.7rem;
}
.hw-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #495057;
}
.hw-footer strong {
  font-weight: 600;
}
/* Button */
.hw-btn {
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  transition: all 0.2s ease;
}
.hw-btn:hover {
  background: #0061ff;
  color: #fff;
}
/* Empty State */
.hw-empty {
  border-radius: 10px;
  font-size: 0.9rem;
  padding: 0.9rem;
  text-align: center;
}
/* homework details page  */
/* Homework Details */
.hw-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d3557;
}
.hw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.hw-meta .badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}
.hw-description {
  font-size: 0.95rem;
  color: #495057;
}
/* Attachments */
.hw-attachments .list-group-item {
  border: none;
  padding: 0.5rem 0;
}
.hw-attachments a {
  font-size: 0.9rem;
}
/* Tutor Bids */
.hw-bid-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem;
  background: #fafafa;
  transition: background 0.2s ease;
}
.hw-bid-card:hover {
  background: #fdfdfd;
}
.hw-bid-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hw-bid-profile img {
  border: 1px solid #dee2e6;
}
.hw-bid-profile strong {
  font-size: 1rem;
}
/* my homework  */
/* ===== Homework Section ===== */
.hw-section-title {
  font-weight: 600;
  color: #222;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Homework Card */
.hw-card {
  border: 1px solid #f1f1f1;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.hw-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
/* Meta Info */
.hw-meta {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: #495057;
}
.hw-meta strong {
  color: #212529;
}
/* Attachments */
.hw-attachments {
  margin-bottom: 1rem;
}
.hw-attachments-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.hw-attachment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hw-attachment-list li {
  margin-bottom: 0.4rem;
}
/* Tutor Bids */
.hw-bids-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.hw-bid-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  background: #fafafa;
  transition: background 0.2s ease;
}
.hw-bid-card:hover {
  background: #fdfdfd;
}
.hw-bid-profile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.hw-bid-profile img {
  border: 1px solid #e9ecef;
}
.hw-bid-details strong {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
}
.hw-bid-details .small {
  font-size: 0.82rem;
  color: #6c757d;
}
.hw-bid-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.hw-bid-price {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}
/* Empty State */
.hw-empty {
  border-radius: 10px;
  font-size: 0.95rem;
  padding: 1.3rem;
  text-align: center;
  color: #555;
  background: #f8f9fa;
}



.search-wrapper-chat {
  position: relative;
  width: 100%;
}
.search-input-chat {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem; /* top/right/bottom/left */
  background: #f1f6fa;   /* light bluish background */
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.search-input-chat::placeholder {
  color: #8fa0b3;
}
.search-input-chat:focus {
  background: #e9f3f9;
  box-shadow: 0 0 0 3px rgba(26,198,255,.15);
}
.search-icon-chat {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #8fa0b3;
}
.small_time {
  font-size: 12px;
  margin-bottom: 14px ;
}
/* ================================
   Chat App Modern Theme
   Based on your brand palette
   ================================ */
/* ========== Layout surfaces ========== */
.chat-pane{
  /* Keep palette but refine background layering */
  background:
    linear-gradient(135deg, rgba(15,93,139,.04), rgba(26,198,255,.06)),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%230F5D8B22' /%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
  position: relative;
}
.chat-header{
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(150%) blur(6px);
  z-index: 10;
}
.chat-list {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
  --bs-list-group-bg: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}
.chat-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
/* Individual Chat Item */
.chat-list-item {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-list-item:hover {
  background-color: #e9ecef;
}
/* Left Section: Avatar + Username + Last message */
.chat-list-item .d-flex.align-items-center.gap-3 {
  min-width: 0;
}
/* Online Dot */
.chat-list-item .position-relative span {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
}
/* Username */
.chat-list-item strong {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
}
/* Last message */
.chat-list-item .small.text-muted {
  font-size: 0.8rem;
  color: #6c757d;
}
/* Right Section: Timestamp + Unread Badge */
.chat-list-item .d-flex.flex-column.align-items-end {
  text-align: right;
  min-width: 50px;
}
.chat-list-item .badge.bg-pink {
  background-color: #ff6b81;
  font-size: 0.7rem;
}
/* Empty state */
.empty-state .empty-icon{
  font-size: 3rem;
  color: var(--muted-color);
  opacity:.45;
}
/* ========== Avatars ========== */
.chat-avatar,.chat-avatar-lg{
  border-radius:50%;
  object-fit:cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.chat-avatar{width:60px;height:60px;}
.chat-avatar-lg{width:55px;height:55px;}
/* ========== Chat list ========== */
.chat-list-item{
  border:none;
  transition: background .2s ease, transform .15s ease;
}
.chat-list-item:hover{ background: rgba(15,93,139,.05); }
.chat-list-item.active {
  background: rgba(26, 198, 255, 0.07); /* lighter bg */
  border-left: 2px solid rgba(26, 198, 255, 0.4); /* softer border */
  transform: translateX(1px);
}
.chat-list-item .badge{
  box-shadow: var(--shadow);
}
.list-group-item.active {
    color: var(--primary-color) !important;
}
/* ========== Messages ========== */
#chat-messages{
  /* subtle insets top/bottom to float bubbles visually */
  padding-bottom: .75rem;
}
/* Bubbles with modern radius and max width for readability */
.chat-bubble {
  font-size: .85rem;
  line-height: 1.45;
  word-wrap: break-word;
  position: relative;
}
/* Text-only messages */
.chat-bubble.with-padding {
  padding: 8px 14px;
  border-radius: 12px;
}
/* Attachment bubbles (no padding) */
.chat-bubble.no-padding {
  padding: 0;
  border-radius: 12px;
}
/* Outgoing bubble */
.bubble-own{
  background: var(--surface);
  color: var(--text-color);
  /* border: 1px solid #d6e7f3; */
  border-bottom-right-radius: 6px;
}
/* Tail */
.bubble-own::after{
  content:"";
  position:absolute; right:-6px; bottom:8px;
  width:10px;height:10px; background:inherit;
  border-right:1px solid #d6e7f3; border-bottom:1px solid #d6e7f3;
  transform: rotate(45deg);
}

/* Incoming bubble */
.bubble-other{
  background: var(--surface);
  /* border: 1px solid var(--border-color); */
  color: var(--text-color);
  border-bottom-left-radius: 6px;
}
.bubble-other::after{
  content:"";
  position:absolute; left:-6px; bottom:8px;
  width:10px;height:10px; background:inherit;
  border-left:1px solid var(--border-color); border-bottom:1px solid var(--border-color);
  transform: rotate(-45deg);
}
/* Time/meta */
.chat-time{
  font-size:.78rem;
  color: var(--muted-color);
  text-align:right;
}

/* Per-message menu */
.message-wrapper{ position:relative; }
.message-wrapper .message-menu{
  position:absolute; top:6px; right:-32px;
  opacity:0; visibility:hidden; transition: opacity .2s ease, visibility .2s ease;
}
.message-wrapper:hover .message-menu{ opacity:1; visibility:visible; }

/* Media in bubbles */
.message-content img,
.message-content video{
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  max-width: min(72ch, 78%);
  height:auto;
}

/* ========== Composer (floating dock) ========== */
.chat-input-group {
  background: transparent;
  border-top: none;
  /* padding: .5rem .75rem .75rem; */
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chat-input-group .composer-dock {
  background: #f8f9fa; /* light gray */
  border-radius: 30px;
  padding: .35rem .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: all 0.2s ease;
}
.chat-input-group .composer-dock:focus-within {
  box-shadow: 0 0 0 3px rgba(26, 198, 255, 0.18);
  border-color: var(--primary-color);
}
.chat-input-group .composer-dock .form-control {
  border: none;
  outline: none;
  box-shadow: none;
  padding: .5rem 3rem .5rem .5rem; /* space for send button */
  font-size: .95rem;
  background: transparent;
  width: 100%;
  border-radius: 30px;
}
.chat-input-group .composer-dock .form-control:focus {
  box-shadow: none;
}
.chat-input-group .composer-dock .btn-pink {
  border-radius: 50%;
  padding: .45rem .5rem;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}
.chat-input-group .composer-dock .btn-pink:hover {
  transform: scale(1.05);
}
.chat-input-group .composer-dock .btn-icon {
  background: transparent;
  border: none;
  color: #495057;
  font-size: 1.2rem;
}
.chat-input-group .composer-dock .btn-icon:hover {
  color: var(--primary-color);
}
/* Primary send */
.btn-pink{
  background: var(--primary-color);
  border: none;
  color:#fff;
  border-radius: 18px;
  padding: .45rem 1rem;
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600; letter-spacing:.1px;
  transition: background .2s ease, transform .12s ease;
  box-shadow: var(--shadow);
}
.btn-pink:hover{
  background: var(--accent-color);
  transform: translateY(-1px);
}
/* Icon affordances */
.btn-icon{
  border:none; background: transparent;
  color: var(--muted-color);
  padding: .45rem; border-radius: 50%;
  transition: background .2s ease, color .2s ease, transform .06s ease;
}
.btn-icon:hover{ background: rgba(26,198,255,.12); color: var(--primary-color); }
.btn-icon:active{ transform: translateY(1px); }
/* Status */
.status-dot{
  display:inline-block; width:8px;height:8px; border-radius:50%;
}
.status-dot.online{ background: var(--success-color); }
.status-dot.offline{ background: var(--muted-color); }
/* ========== Scrollbars ========== */
.chat-list::-webkit-scrollbar,
#chat-messages::-webkit-scrollbar{ width:6px; }
.chat-list::-webkit-scrollbar-thumb,
#chat-messages::-webkit-scrollbar-thumb{
  background: var(--primary-color); border-radius:10px;
}
.chat-list::-webkit-scrollbar-track,
#chat-messages::-webkit-scrollbar-track{ background: transparent; }
/* ========== Optional: compact list density ========== */
.chat-list .list-group-item{
  padding-top:.9rem; padding-bottom:.9rem;
}
/* payment part in message */
.payment.card{
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.payment-chip{
  width: 32px; height: 32px;
  background: rgba(26,198,255,.10);
  color: var(--primary-color);
}
.payment-amount{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f7fb;
  color: var(--text-color);
  border: 1px solid #dbe7f0;
}
.payment-note{
  background: #f7f9fb;
  border: 1px dashed var(--border-color);
}

/* Floating back button styling */
.floating-back-btn {
  position: fixed;
  /* top: 20px;      */
  /* left: 15px;        */
  z-index: 1050;
  /* width: 40px;
  height: 40px;
  border-radius: 50%; */
  /* background-color: #ff4d6d; */
  /* color: white; */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}
/* Smaller icon */
.floating-back-btn i {
  font-size: 1.1rem;
}


@media (max-width: 767px) {
  #chat-list-column {
    display: block;
  }
  #chat-pane-column {
    display: none;
  }
  #chat-pane-column.active {
    display: flex !important;
  }
  #chat-list-column.hide {
    display: none !important;
  }
}

/* ======================== Responsive Layout ======================== */
/* === Mobile + Tablet (up to 992px) === */
@media (max-width: 992px) {
/* navbar section */
  html, body {
    /* Remove any forced overflow, allow scrolling */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
  }
  main, main .container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
  }
  main .main-row {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  .scrollable-column {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
  }
  .scrollable-column.d-lg-block {
    display: none !important;
  }
  .col-12.col-md-12.col-lg-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  /* profile-sidebar  */
.profile-card .cover-photo {
    height: 160px;
}
.profile-card .profile-img {
  width: 85px;
  height: 85px;
  border-radius: 28%;
}
.profile-card .name-section {
  margin-top: 35px;
}
.profile-card .nav-links li {
  font-size: 14px;
  padding: 7px 0;
}
  /* body, #content, main {
    padding-bottom: 20px; 
  } */
  .offcanvas.offcanvas-start {
    transition: transform 1s ease;      /* slower than Bootstrap's default 0.3s */
  }
  /* card styling css  */
  .card {
    border-radius: 11px;
    box-shadow: 0 3px 15px rgba(70,90,120,0.13);
  }
  .card-header {
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    gap: 0.30rem;
  }
  .card-body {
    padding: 0.8rem 0.9rem;
    font-size: 1.01rem;
  }
  /* for action buttons */
  .action-buttons.gx-1.align-items-center {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.20rem !important;
  }
  .action-buttons.gx-1 .col {
    max-width: none !important;
    width: auto !important;    /* no forced stacking */
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: center;
  }
  .btn-action {
    font-size: 13px;
    width: auto !important;
    border-radius: 6px;
    margin-bottom: 0 !important;
    padding: 0.35rem 0.6rem;
  }
  /* profile part  */
  /* Profile Cover */
  .profile-cover {
    min-height: 140px;
    filter: brightness(90%);
  }
  /* Profile Photo - center aligned */
  .profile-meta-card-photo {
    /* position: relative; */
    left: 17%;
    /* bottom: -97px; */
    transform: translateX(-50%);
    margin-bottom: -40px; /* keep spacing tight */
    text-align: center;
  }
  /* Main Info - stack below the photo */
  .profile-meta-card-info {
    position: relative;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    margin-bottom: -50px;
    text-align: center;
  }
  .profile-meta-card-photo img {
    width: 110px;
    height: 110px;
  }
 .profile-meta-card-info {
    position: relative;
    /* left: 0; */
    bottom: 0;
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }
  .profile-meta-info-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .profile-meta-info-text {
    min-width: auto;
    text-align: center;
  }
  .profile-meta-info-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
    /* width: 100%;        take full width under text */
    margin-left: 6rem;
  }
  .profile-meta-info-actions .profile-actions {
    flex: 1 1 auto;           /* shrinkable buttons */
    max-width: 45%;           /* two buttons per row */
    min-width: 100px;         /* avoid being too tiny */
  }
  .profile-meta-info-actions button {
    font-size: 0.75rem;       /* smaller font */
    padding: 4px 8px;         /* smaller padding */
  }
  /* Secondary Info - under the main info */
  .profile-meta-secondary {
    position: relative;       /* stays in normal flow */
    font-size: 1rem;          /* slightly bigger for readability */
    width: 100%;
    text-align: center;
    margin-left: 5px;
  }
  .profile-meta-secondary p {
    margin: 0; /* prevent extra gaps */
  }
  /* Connections avatars smaller for mobile */
  .profile-connection-avatar {
    width: 36px;
    height: 36px;
  }
  .profile-connection-username {
    max-width: 48px;
    font-size: 0.8rem;
  }
 .profile-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;        /* force single row */
    font-size: 11px;          /* smaller text */
    gap: 1px;                 /* tighter spacing */
    padding: 6px 0;           /* less padding */
    overflow-x: auto;         /* allow horizontal scroll */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;    /* hide scrollbar Firefox */
  }
  .profile-tabs::-webkit-scrollbar {
    display: none; /* hide scrollbar Chrome */
  }
  .profile-tabs a {
    padding: 6px 15px;        /* smaller buttons */
  }
  .profile-meta-info-text p {
    text-align: left;
  }
  /* .profile-meta-info-actions button {
    margin-top: 20px;
  } */
  .overview-box {
    padding: 16px;
  }
  .details-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .detail-box {
    font-size: 13px;
    padding: 12px 14px;
  }
  .connection-item {
    flex-direction: row; /* stack content */
    gap: 8px;
    padding: 10px 0;
  }
  .connection-item .d-flex.align-items-center {
    width: 100%;
  }
  .connection-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* align left */
    gap: 6px;
    margin-top: 4px;
  }
  .connection-actions .btn {
    flex: 1; /* equal width buttons */
    min-width: 70px;
    text-align: center;
  }
  .folder-box {
    padding: 15px;
    font-size: 0.9rem;
  }
  .folder-icon {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  /* Media Gallery - tighter grid */
  .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 6px;
  }
  /* Media item smaller */
  .media-item {
    height: 75px;
    border-radius: 6px;
  }
  /* Modal: use more height */
  #mediaPreviewModal img,
  #mediaPreviewModal video {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
  }
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-content {
    margin-top: 0.5rem;
  }
  .find-connections {
    max-width: 100%;
    padding: 16px;
  }
  .avatar {
    width: 38px;
    height: 38px;
  }
  .name {
    font-size: 0.9rem;
  }
  .meta {
    font-size: 0.72rem;
  }
  /* wallet part  */
  .checkout-container {
    max-width: 95%;
    padding: 0 15px;
  }
  .checkout-title h3 {
    font-size: 1.25rem;
  }
  .checkout-card {
    padding: 16px;
  }
  .checkout-row {
    padding: 10px 0;
    font-size: 0.95rem;
  }
  .providers {
    grid-template-columns: 1fr; /* stack providers in one column */
    gap: 12px;
  }
  .provider-btn {
    font-size: 0.95rem;
    padding: 12px;
  }
  .wallet-input {
    width: 120px;
  }
  /* Home Chat Users Page */
  .chat-users-header {
    padding: 20px 16px;
  }
  .chat-users-header h2 {
    font-size: 1.4rem;
  }
  .chat-users-header .subtitle {
    font-size: 0.85rem;
  }
  .chat-users-list {
    padding: 18px 16px;
  }
  .chat-user-card {
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .user-avatar {
    width: 44px;
    height: 44px;
  }
  .username {
    font-size: 0.95rem;
  }
  .last-seen {
    font-size: 0.78rem;
  }
  /* chat page design */
   .chat-container {
    height: 88vh; /* slightly smaller to fit navbars */
  }
  .chat-header {
    padding: 12px 16px;
    gap: 10px;
  }
  .chat-header-avatar {
    width: 42px;
    height: 42px;
  }
  .chat-username {
    font-size: 1rem;
  }
  .chat-status {
    font-size: 0.8rem;
  }
  .chat-box {
    padding: 16px;
    gap: 10px;
  }
  .chat-message {
    max-width: 70%;
    font-size: 0.9rem;
    padding: 9px 12px;
  }
  .chat-input-bar {
    padding: 10px;
  }
  .chat-input {
    font-size: 0.9rem;
    padding: 9px 12px;
  }
  .send-btn {
    padding: 9px 12px;
    font-size: 0.95rem;
  }
  .payment-form input {
    font-size: 0.9rem;
    padding: 7px 10px;
  }
  .request-btn {
    padding: 7px 12px;
    font-size: 0.9rem;
  }
  /* start of homrwork part  */
  .homework-container {
    max-width: 720px;
    padding: 1.5rem;
  }
  .homework-card .card-header h5 {
    font-size: 1.1rem;
  }
  /* homework list  */
  .hw-card-body {
    padding: 0.9rem 1rem;
  }
  .hw-user-details strong {
    font-size: 0.9rem;
  }
  .hw-title {
    font-size: 0.95rem;
  }
  .hw-meta p,
  .hw-description {
    font-size: 0.8rem;
  }
  .hw-footer p {
    font-size: 0.75rem;
  }
  /* homework details page  */
  /* Title */
  .hw-title {
    font-size: 1.3rem;
  }
  /* Meta Badges */
  .hw-meta {
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }
  .hw-meta .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
  /* Description */
  .hw-description {
    font-size: 0.9rem;
  }
  /* Attachments */
  .hw-attachments a {
    font-size: 0.85rem;
  }
  /* Tutor Bid Card */
  .hw-bid-card {
    padding: 0.85rem;
    border-radius: 10px;
  }
  .hw-bid-profile strong {
    font-size: 0.95rem;
  }
    /* Section Title */
  .hw-section-title {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
  }
  /* Meta Info */
  .hw-meta {
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
  }
  /* Attachments */
  .hw-attachments-title {
    font-size: 0.85rem;
  }
  .hw-attachment-list li {
    margin-bottom: 0.35rem;
  }
  /* Bids */
  .hw-bids-title {
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
  }
  .hw-bid-card {
    padding: 0.8rem;
    border-radius: 10px;
  }
  .hw-bid-details strong {
    font-size: 0.9rem;
  }
  .hw-bid-details .small {
    font-size: 0.78rem;
  }
  .hw-bid-price {
    font-size: 0.85rem;
    padding: 0.3rem 0.65rem;
  }
  /* edit profile page part  */
  .cover-action-bar, .profile-action-bar {
    padding: 5px 6px;
    gap: 6px;
  }
  .cover-edit-overlay, .profile-edit-overlay {
    border-radius: 6px;
  }
  .cover-action-bar, .profile-action-bar {
    padding: 5px 6px;
    gap: 6px;
    border-radius: 0 0 6px 6px;
    justify-content: center;
  }
}
/* === Mobile Only (< 576px) === */
@media (max-width: 576px) {
  /* General Layout */
  body, html {
    font-size: 13px; /* smaller base font */
  }
  main, main .container {
    padding: 0 !important;
    margin-bottom: 30px !important;
  }
  .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(70, 90, 120, 0.12);
  }
  .card-header {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }
  .card-body {
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
  }
  /* profile sidebar  */
.profile-card .cover-photo {
  height: 130px;
}
.profile-card .profile-img {
  width: 80px;
  height: 80px;
}
.profile-card .name-section {
  margin-top: 25px;
}
.profile-card .name-section h5 {
  font-size: 1rem;
}
.profile-card .name-section p {
  font-size: 0.8rem;
}
.profile-card .nav-links {
  padding-left: 1rem;
}
.profile-card .nav-links li {
  font-size: 13.5px;
  padding: 6px 0;
}
  /* Tabs */
  .profile-tabs {
    padding: 4px 0;
    gap: 0;
  }
  .profile-tabs a {
    padding: 5px 10px;
  }
  /* Connections */
  .profile-connection-avatar {
    width: 30px;
    height: 30px;
  }
  .profile-connection-username {
    max-width: 42px;
    font-size: 0.75rem;
  }
  .connection-item {
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 0;
  }
  .connection-actions {
    width: 100%;
    flex-direction: row;
    gap: 4px;
  }
  .connection-actions .btn {
    width: 100%;
    font-size: 13px;
  }
  /* Media Gallery */
  .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 4px;
  }
  .media-item {
    height: 65px;
  }
  /* Overview + Details */
   .details-grid {
    grid-template-columns: 1fr; /* stack */
    gap: 10px;
  }
  .detail-box {
    font-size: 13px;
    padding: 12px;
    border-radius: 8px;
  }
  .overview-box h6 {
    font-size: 14px;
  }
  .overview-box p {
    font-size: 13px;
  }
  /* Timeline */
  .timeline-item {
    padding: 0.5rem 0;
  }
  .timeline-content {
    font-size: 0.85rem;
  }
  /* Mobile Bottom Navbar adjustments */
  .mobile-bottom-nav {
    height: 58px;
  }
  .mobile-bottom-nav .nav-link {
    font-size: 11px;
    padding: 4px 0;
  }
  .mobile-bottom-nav i {
    font-size: 1.1rem;
  }
  .mobile-bottom-nav small {
    font-size: 10px;
  }
  /* Modal */
  #mediaPreviewModal img,
  #mediaPreviewModal video {
    max-height: 65vh;
  }
  /* Home Chat Users Page */
  .chat-users-header {
    padding: 16px 12px;
  }
  .chat-users-header h2 {
    font-size: 1.2rem;
  }
  .chat-users-header .subtitle {
    font-size: 0.8rem;
  }
  .chat-users-list {
    padding: 14px 10px;
  }
  .chat-user-card {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .avatar-wrapper {
    margin-right: 12px;
  }
  .user-avatar {
    width: 40px;
    height: 40px;
  }
  .username {
    font-size: 0.9rem;
  }
  .last-seen {
    font-size: 0.75rem;
  }
  .chat-arrow {
    font-size: 1.1rem;
  }
  /* chat page design */
   .chat-container {
    height: 86vh;
    border-radius: 0; /* mobile-friendly flat */
  }
  .chat-header {
    padding: 10px 12px;
    gap: 8px;
  }
  .chat-header-avatar {
    width: 36px;
    height: 36px;
  }
  .chat-username {
    font-size: 0.95rem;
  }
  .chat-status {
    font-size: 0.75rem;
  }
  .chat-box {
    padding: 12px;
    gap: 8px;
  }
  .chat-message {
    max-width: 80%;
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .chat-message .time {
    font-size: 0.68rem;
  }
  .chat-media-img {
    max-width: 80px;
    max-height: 80px;
  }
  .chat-input-bar {
    padding: 8px;
    gap: 6px;
  }
  .chat-input {
    margin: 0 6px;
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  .send-btn {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .payment-section {
    padding: 10px;
  }
  .payment-form {
    flex-direction: column;
    gap: 8px;
  }
  .payment-form input {
    width: 100%;
    font-size: 0.85rem;
  }
  .request-btn {
    width: 100%;
    padding: 8px;
    font-size: 0.88rem;
  }
  .history-btn {
    font-size: 0.85rem;
    margin: 10px auto;
  }
  /* homework part  */
  .homework-container {
    max-width: 100%;
    padding: 1rem;
  }
  .homework-card {
    border-radius: 10px;
  }
  /* homework list  */
  .hw-card-body {
    padding: 0.8rem 0.9rem;
  }
  .hw-user img {
    width: 32px;
    height: 32px;
  }
  .hw-user-details strong {
    font-size: 0.85rem;
  }
  .hw-user-details small {
    font-size: 0.75rem;
  }
  .hw-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  .hw-meta p,
  .hw-description {
    font-size: 0.75rem;
  }
  .hw-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .hw-footer p {
    font-size: 0.75rem;
  }
  .hw-btn {
    width: 100%;
    text-align: center;
    padding: 7px;
    font-size: 0.8rem;
  }
  /* Title */
  .hw-title {
    font-size: 1.15rem;
    text-align: center;
  }
  /* Meta Info */
  .hw-meta {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    align-items: flex-start;
  }
  .hw-meta .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }
  /* Description */
  .hw-description {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: justify;
  }
  /* Attachments */
  .hw-attachments .list-group-item {
    padding: 0.4rem 0;
  }
  .hw-attachments a {
    font-size: 0.8rem;
    word-break: break-word;
  }
  /* Tutor Bid Card */
  .hw-bid-card {
    padding: 0.75rem;
    border-radius: 8px;
  }
  .hw-bid-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hw-bid-profile img {
    width: 42px;
    height: 42px;
  }
  .hw-bid-profile strong {
    font-size: 0.9rem;
  }
   /* Section Title */
  .hw-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
  }
  /* Meta Info */
  .hw-meta {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  /* Attachments */
  .hw-attachments {
    margin-bottom: 0.8rem;
  }
  .hw-attachments-title {
    font-size: 0.8rem;
    text-align: center;
  }
  .hw-attachment-list li {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-align: center;
  }
  /* Bids */
  .hw-bids-title {
    font-size: 0.85rem;
    text-align: center;
  }
  .hw-bid-card {
    padding: 0.7rem;
    border-radius: 8px;
  }
  .hw-bid-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .hw-bid-profile img {
    width: 44px;
    height: 44px;
  }
  .hw-bid-details strong {
    font-size: 0.85rem;
  }
  .hw-bid-details .small {
    font-size: 0.75rem;
  }
  .hw-bid-action {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .hw-bid-price {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }
  /* Empty State */
  .hw-empty {
    font-size: 0.85rem;
    padding: 1rem;
  }
   .profile-meta-card-photo {
    left: 15%;
    bottom: -30px;
    transform: translateX(-50%);
    margin-bottom: -40px;
  }
  .profile-meta-card-photo img {
    /* width: 90px;
    height: 90px; */
    border-width: 3px;
  }
  .profile-meta-card-info {
    text-align: center;
    width: 100%;
    font-size: 0.85rem;
  }
  .profile-meta-info-row {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
   .cover-action-bar, .profile-action-bar {
    /* position: relative; */
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4px 5px;
    gap: 4px;
    border-radius: 0 0 6px 6px;
    justify-content: center; /* center align buttons */
  }
}

/* Default small green dot (for list avatars) */
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #28a745; /* Bootstrap green */
  border: 2px solid #fff;
  border-radius: 50%;
}
/* Bigger green dot for profile picture */
.profile-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #fff; 
}