/* Nemitt - Main Stylesheet */

/* Global Styles */
:root {
  --primary-color: #3abab4;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --body-bg: #f9f8fc;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --safe-area-inset-top: env(safe-area-inset-top);
  --sidebar-width: 280px;
  --sidebar-bg: #ffffff;
  --sidebar-text: #333333;
  --sidebar-hover: #f8f9fa;
  --sidebar-border: #e9ecef;
}

/* Sidebar Styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  z-index: 1050;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.sidebar.active {
  left: 0;
  overflow: hidden;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 5px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a9d8f 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  flex: 1;
  transition: opacity 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.sidebar-profile:hover {
  opacity: 0.9;
  background-color: rgba(255, 255, 255, 0.1);
}

.profile-picture-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-picture-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar-small {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.85rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.sidebar-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.sidebar-close:active {
  transform: scale(0.95);
}

.sidebar-menu {
  flex: 1;
  padding: 20px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(58, 186, 180, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar-item:hover::before {
  transform: translateX(0);
}

.sidebar-item:hover {
  background-color: var(--sidebar-hover);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  text-decoration: none;
  transform: translateX(5px);
}

.sidebar-item.active {
  background-color: var(--sidebar-hover);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.sidebar-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.sidebar-item:hover i {
  transform: scale(1.1);
}

.sidebar-item span {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.sidebar-logout {
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
  color: var(--danger-color);
}

.sidebar-logout:hover {
  background-color: #fef2f2;
  color: var(--danger-color);
  border-left-color: var(--danger-color);
}

/* Hamburger Menu Button */
.sidebar-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 10px;
}

.sidebar-toggle:hover {
  color: #2a9d8f;
  background-color: rgba(58, 186, 180, 0.1);
}

.sidebar-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(58, 186, 180, 0.25);
}

/* Ensure the toggle button is visible on mobile */
@media (max-width: 991.98px) {
  .sidebar-toggle {
    display: flex !important;
  }
  
  .navbar-brand {
    margin-left: 0;
  }
}

/* Hide sidebar on large screens */
@media (min-width: 992px) {
  .sidebar {
    display: none;
  }
  
  .sidebar-overlay {
    display: none;
  }
  
  .sidebar-toggle {
    display: none !important;
  }
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sidebar animation class */
.sidebar-animated {
  animation: sidebarSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sidebarSlideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Ensure content doesn't shift when sidebar is open */
body.sidebar-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Animation for sidebar items */
.sidebar-item {
  animation: slideInLeft 0.3s ease forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar-item:nth-child(5) { animation-delay: 0.3s; }
.sidebar-item:nth-child(6) { animation-delay: 0.35s; }
.sidebar-item:nth-child(7) { animation-delay: 0.4s; }
.sidebar-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-split-bg {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #f8fbfb;
  font-family: "Poppins", sans-serif;
}

.login-left {
  background: linear-gradient(135deg, #3abab4 0%, #2a9d8f 50%, #1e7a6b 100%);
  color: #fff;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.login-left .welcome-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.login-left .welcome-desc {
  font-size: 1.1rem;
  margin-top: 16px;
  opacity: 0.95;
  max-width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.login-right {
  background: #fff;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  min-width: 340px;
  max-width: 100%;
  box-shadow: 0 0 32px 0 rgba(58, 186, 180, 0.08);
}

.form-title {
  color: #274c5b;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.form-control {
  border: 2px solid #e8f4f4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafcfc;
}

.form-control:focus {
  border-color: #3abab4;
  box-shadow: 0 0 0 0.2rem rgba(58, 186, 180, 0.15);
  background: #fff;
}

.input-group-text {
  border: 2px solid #e8f4f4;
  border-right: none;
  background: #fafcfc;
  color: #3abab4;
  border-radius: 12px 0 0 12px;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 12px 12px 0;
}

.input-group:focus-within .input-group-text {
  border-color: #3abab4;
  background: #fff;
}

.btn-primary {
  background: #3abab4;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(58, 186, 180, 0.2);
}

.btn-primary:hover {
  background: #2a9d8f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 186, 180, 0.3);
}

.btn-primary:focus {
  background: #2a9d8f;
  box-shadow: 0 0 0 0.2rem rgba(58, 186, 180, 0.25);
}

.btn-outline-secondary {
  border: 2px solid #e8f4f4;
  background: #fafcfc;
  color: #3abab4;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #e8f4f4;
  color: #2a9d8f;
  border-color: #3abab4;
}

.btn-outline-primary {
  border: 2px solid #2a9d8f;
  background: #fafcfc;
  color: #2a9d8f;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #2a9d8f;
  color: #e8f4f4;
  border-color: #e8f4f4;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 12px;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  border-radius: 12px;
}

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

.form-check-input:focus {
  border-color: #3abab4;
  box-shadow: 0 0 0 0.2rem rgba(58, 186, 180, 0.15);
}

.text-primary {
  color: #3abab4 !important;
}

.text-primary:hover {
  color: #2a9d8f !important;
}

.text-muted {
  color: #6b7280 !important;
}

.fw-semibold {
  font-weight: 600;
}

@media (max-width: 900px) {
  .login-split-bg {
    flex-direction: column;
  }

  .login-left,
  .login-right {
    max-width: 100%;
    min-width: 0;
  }
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--body-bg);
  padding-bottom: 72px; /* Space for bottom navigation on mobile */
}

/* Android Status Bar */
.android-status-bar {
  height: var(--safe-area-inset-top, 24px);
  background-color: var(--primary-color);
}

/* Main Content */
.main-content {
  padding-top: var(--safe-area-inset-top, 0);
  min-height: calc(100vh - 72px - var(--safe-area-inset-top, 0));
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.bottom-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 8px 4px;
  min-width: 60px;
  flex: 1;
  font-size: 0.75rem;
  transition: color 0.2s;
  position: relative;
  overflow: hidden;
}

.bottom-nav-item i {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.bottom-nav-item.active {
  color: var(--primary-color);
  position: relative;
}

/* Ripple effect for bottom navigation */
.nav-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* When there are many items, make them scroll horizontally */
@media (max-width: 576px) {
  .bottom-nav {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bottom-nav-item {
    flex: 0 0 auto;
    min-width: 70px;
    padding: 8px 6px;
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-bottom: none;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

.card-footer {
  border-top: none;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

/* CA Profile Cards */
.ca-profile-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.ca-profile-card:hover {
  transform: translateY(-5px);
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-online {
  background-color: var(--success-color);
  color: white;
}

.status-offline {
  background-color: var(--secondary-color);
  color: white;
}

/* Chat Styles */
.chat-container {
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 80%;
  margin-bottom: 15px;
}

.message-outgoing {
  align-self: flex-end;
}

.message-incoming {
  align-self: flex-start;
}

.message-bubble {
  padding: 10px 15px;
  border-radius: 18px;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.message-bubble.outgoing {
  background-color: #dcf8c6;
}

.message-bubble.incoming {
  background-color: #f1f0f0;
}

/* Call Styles */
.call-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-controls {
  margin-top: 20px;
}

/* Forms */
.form-control,
.form-select,
.btn {
  border-radius: 8px;
  padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Registration Steps */
.registration-steps {
  margin-bottom: 30px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #6c757d;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.step.completed .step-icon {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.step-label {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--dark-color);
  font-weight: 500;
}

/* Mobile Filter Section */
.filter-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1050;
  padding: 20px;
  overflow-y: auto;
  display: none;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  justify-content: center;
}

.star-btn {
  padding: 0.25rem 0.5rem;
  margin: 0 2px;
}

.star-btn:hover {
  color: var(--warning-color);
}

/* Media Queries */
@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }

  .main-content {
    min-height: calc(100vh - var(--safe-area-inset-top, 0));
  }
}

.ca-holder {
  padding: 0 5px;
}

/* Profile Page Styles */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.profile-header {
  position: relative;
  margin-bottom: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.cover-photo {
  position: relative;
  height: 300px;
  background-color: #f0f2f5;
  overflow: hidden;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), #4f46e5);
}

.profile-actions {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.profile-info {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.profile-picture {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  background-color: #f0f2f5;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--primary-color), #4f46e5);
  color: white;
  font-size: 4rem;
}

.change-avatar {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-details {
  flex: 1;
  padding-bottom: 10px;
}

.profile-btn {
  margin-bottom: 3%;
}

.profile-details h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark-color);
}

.specialization {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin: 5px 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.stars {
  display: flex;
  gap: 2px;
}

.rating-count {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.profile-content {
  margin-top: 30px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.2s;
}

.pricing-item:hover {
  transform: translateY(-5px);
}

.pricing-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.pricing-item h4 {
  margin: 10px 0;
  color: var(--dark-color);
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.info-item i {
  width: 24px;
  color: var(--primary-color);
}

/* User Profile Styles */
.user-profile {
  padding: 30px;
}

.user-profile .profile-info {
  margin-top: 0;
  align-items: center;
}

.user-profile .profile-picture {
  width: 120px;
  height: 120px;
}

.user-type {
  color: var(--secondary-color);
  margin: 5px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-picture {
    width: 150px;
    height: 150px;
  }

  .profile-details {
    padding-bottom: 0;
  }

  .rating {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .cover-photo {
    height: 200px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .profile-details h1 {
    font-size: 1.5rem;
  }
}

/* user */

.ca-profile-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background-color: white;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in a row have the same height */
}

.ca-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.ca-profile-card .card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute space vertically */
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.verified-badge {
  color: #2563eb;
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.online-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: auto;
  flex-shrink: 0;
}

.online-status.online {
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  margin-left: 10px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.9rem;
}

.rating-stars .fas,
.rating-stars .far {
  color: #fbbf24;
}

.rating-number {
  font-weight: 600;
  margin-left: 0.25rem;
  font-size: 0.9rem;
  color: #1f2937;
}

.price-tag {
  background: #e5e7eb;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  /* Ensure vertical alignment in flex container */
  align-self: flex-start;
}

.action-button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  width: 100%;
}

.action-button .fas {
  font-size: 1rem;
}

/* Premium CA Styling */
.ca-profile-card.premium {
  border: 2px solid #fbbf24;
  box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.1),
    0 4px 6px -2px rgba(251, 191, 36, 0.05);
}

/* Adjustments for layout spacing */
.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.col-lg-3.pr-lg-4 {
  padding-right: 1.5rem !important;
}

.ca-profile-card .card-body > div:last-child {
  margin-bottom: 0;
}

/* Ensure price tags and buttons have proper top margin if needed */
.ca-profile-card .card-body .d-flex.flex-wrap.gap-1.mb-3 {
  margin-top: auto; /* Push price tags to the bottom */
}

.ca-profile-card .card-body .d-grid.gap-2 {
  margin-top: 1rem; /* Add space above buttons */
}

@media (max-width: 768px) {
  .filter-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
  }

  .filter-section.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .filter-section .filter-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
  }
}

/* chat */

.chat-container {
  height: calc(100vh - 120px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-contacts {
  background: #fff;
  height: 100%;
}

.chat-contact-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-contact-item:hover {
  background-color: #f8f9fa;
}

.chat-contact-item.active {
  background-color: #e9ecef;
}

.chat-area {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #e5ddd5;
}

.message {
  max-width: 65%;
  margin-bottom: 1rem;
}

.message-outgoing {
  margin-left: auto;
}

.message-incoming {
  margin-right: auto;
}

.message-bubble {
  padding: 0.5rem 1rem;
  border-radius: 7.5px;
  position: relative;
  word-wrap: break-word;
}

.message-bubble.outgoing {
  background-color: #dcf8c6;
  margin-left: auto;
}

.message-bubble.incoming {
  background-color: #fff;
}

.message-time {
  font-size: 0.75rem;
  color: #667781;
  margin-top: 0.25rem;
}

.chat-input {
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding-bottom: 100px;
}

.chat-input textarea {
  resize: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
}

.chat-input button {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .chat-container .row.g-0 {
    flex-direction: column;
  }
  .chat-contacts {
    width: 100vw;
    max-width: 100vw;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    min-height: 60px;
    height: auto;
  }
  .chat-area {
    width: 100vw;
    max-width: 100vw;
    min-height: 300px;
    top: 55px;
    position: absolute;
    display: none;
    height: calc(50vh - 120px); /* header/footer heights */
  }
  .chat-contact-item {
    padding: 1rem 0.5rem;
  }
  .chat-header {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .chat-header .back-btn {
    display: inline-block;
    margin-right: 1rem;
  }
}
@media (max-width: 575.98px) {
  .chat-header h5 {
    font-size: 1rem;
  }
  .chat-header img,
  .chat-header .rounded-circle {
    width: 32px !important;
    height: 32px !important;
  }
}

/* register */

.registration-steps {
  padding: 20px 0;
}

.step {
  text-align: center;
  z-index: 2;
  position: relative;
  background: white;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #6c757d;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.step.completed .step-icon {
  background-color: #198754;
  color: white;
  border-color: #198754;
}

.password-strength {
  height: 5px;
  margin-top: 5px;
  background-color: #e9ecef;
  border-radius: 3px;
}

.account-type-card {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.btn-check:checked + .btn {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ca add form */

.field-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-type {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: move;
  background: white;
  transition: all 0.2s;
}

.field-type:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
}

.field-type i {
  margin-right: 8px;
  color: var(--primary-color);
}

.form-fields {
  min-height: 200px;
  border: 2px dashed #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
}

.form-field {
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  padding: 15px;
}

.field-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.handle {
  cursor: move;
  color: #999;
  margin-right: 10px;
}

.field-type {
  flex: 1;
  font-weight: 500;
}

.field-actions {
  display: flex;
  gap: 5px;
}

.field-content {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

/* Service Form Cards */
.service-form-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.service-form-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.service-form-card .card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a9d8f 100%) !important;
  border-bottom: none;
  padding: 1.25rem;
}

.service-form-card .card-header .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-form-card .card-body {
  padding: 1.5rem;
}

.service-form-card .card-footer {
  border-top: none;
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
}

.service-form-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
}

/* Filter Tags */
.filter-tag {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 20px;
}

.filter-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-tag.active {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(58, 186, 180, 0.3);
}

/* Form Card Stats */
.service-form-card .row.text-center .col-4 {
  padding: 0.5rem;
}

.service-form-card .row.text-center .text-primary {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-form-card .row.text-center small {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Service Categories */
.service-form-card[data-category="tax"] .card-header {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.service-form-card[data-category="audit"] .card-header {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%) !important;
}

.service-form-card[data-category="compliance"] .card-header {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important;
}

.service-form-card[data-category="advisory"] .card-header {
  background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-form-card .card-header {
    padding: 1rem;
  }
  
  .service-form-card .card-body {
    padding: 1.25rem;
  }
  
  .service-form-card .card-footer {
    padding: 0.75rem 1.25rem;
  }
  
  .filter-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Animation for form cards */
.form-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.form-card:nth-child(1) { animation-delay: 0.1s; }
.form-card:nth-child(2) { animation-delay: 0.2s; }
.form-card:nth-child(3) { animation-delay: 0.3s; }
.form-card:nth-child(4) { animation-delay: 0.4s; }
.form-card:nth-child(5) { animation-delay: 0.5s; }
.form-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search input styling */
#searchForms {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

#searchForms:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(58, 186, 180, 0.15);
}

/* Empty state styling */
.text-center.py-5 .fas {
  color: #dee2e6;
  margin-bottom: 1rem;
}

/* Button styling improvements */
.service-form-card .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.service-form-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-form-card .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Profile image styling in footer */
.service-form-card .card-footer img,
.service-form-card .card-footer .rounded-circle {
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.expert-card{
  margin-top: 15px;
}

.expert-card .card-body{
  padding: 15px 10px;
}

.expert-card .chat-btn{
  position: absolute;
  right: .5rem;
}