/* Base Styles */
body {
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  background-color: #f0f8f0; /* Light green background */
}

/* Navbar reset - important to override bootstrap defaults */
.navbar, .navbar-dark, .bg-primary, .navbar-dark.bg-primary, nav {
  background-color: #2e7d32 !important;
}

/* Navigation Styles */
.navbar {
  background-color: #2e7d32 !important; /* Green */
}

.navbar-dark {
  background-color: #2e7d32 !important; /* Green */
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.navbar-dark .navbar-brand {
  color: #ffffff;
}

/* Custom Nav link styling */
.navbar .nav-link,
.navbar-dark .nav-link,
.navbar .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .nav-link:hover,
.navbar-dark .nav-link:hover,
.navbar .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%); /* Green gradient */
}

/* Card Styles */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: #ffffff; /* Keep cards white for contrast */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Service Card Styles */
.service-card {
  border-radius: 0.5rem;
  overflow: hidden;
}

.service-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* User Profile Picture */
.profile-picture {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

/* Form Styles */
.form-control:focus {
  border-color: #2e7d32; /* Green */
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25); /* Green shadow */
}

/* Buttons */
.btn-primary {
  background-color: #2e7d32; /* Green */
  border-color: #2e7d32; /* Green */
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #1b5e20; /* Darker green */
  border-color: #1b5e20; /* Darker green */
}

.btn-outline-primary {
  color: #2e7d32; /* Green */
  border-color: #2e7d32; /* Green */
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: #2e7d32; /* Green */
  border-color: #2e7d32; /* Green */
}

/* Footer */
footer {
  margin-top: auto;
  background-color: #1b5e20; /* Dark green footer */
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Background colors for sections */
.bg-primary {
  background-color: #2e7d32 !important; /* Green */
}

.bg-light {
  background-color: #e8f5e9 !important; /* Light green */
}

.bg-dark {
  background-color: #1b5e20 !important; /* Dark green */
}

/* Text colors */
.text-primary {
  color: #2e7d32 !important; /* Green */
}

/* Order Navigation Styles */
.order-nav-link {
  color: #ffffff !important; /* White text */
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.order-nav-link:hover {
  color: #ffd700 !important; /* Yellow on hover */
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.order-nav-link.active {
  color: #ffd700 !important; /* Yellow for active state */
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.order-nav-link i {
  color: inherit;
}

/* Video Call Styles for Browse Services */
.video-call-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  color: #1b5e20;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.video-call-btn:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
  color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.video-call-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Video Call Modal Styles */
#videoCallModal .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#videoCallModal .modal-header {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  padding: 1.5rem;
}

#videoCallModal .modal-body {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#videoCallModal .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#videoCallModal .card-header {
  border: none;
  padding: 1rem;
  font-weight: 600;
}

#videoCallModal video {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#videoCallModal .btn-group .btn {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

#videoCallModal .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#videoCallModal .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

#videoCallModal .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  border: none;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#videoCallModal .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

#videoCallModal .btn-outline-primary {
  border: 2px solid #2e7d32;
  color: #2e7d32;
  background: transparent;
}

#videoCallModal .btn-outline-primary:hover {
  background: #2e7d32;
  color: white;
  transform: translateY(-2px);
}

#videoCallModal .alert {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  font-weight: 500;
}

/* Service Card Video Call Button */
.service-card .video-call-btn {
  position: relative;
  overflow: hidden;
}

.service-card .video-call-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.service-card .video-call-btn:hover::before {
  left: 100%;
}

/* Video Call Notification Popup */
.video-call-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffd700;
  animation: slideInRight 0.5s ease-out;
  overflow: hidden;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.video-call-notification .notification-content {
  padding: 0;
}

.video-call-notification .notification-header {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1b5e20;
  padding: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(27, 94, 32, 0.1);
}

.video-call-notification .notification-body {
  padding: 1.5rem;
  background: white;
}

.video-call-notification .service-title {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
  margin: 0.5rem 0 1rem 0;
  font-weight: 500;
  color: #2e7d32;
}

.video-call-notification .notification-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.video-call-notification .btn {
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 100px;
}

.video-call-notification .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.video-call-notification .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.video-call-notification .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.video-call-notification .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* Notification pulse animation */
.video-call-notification {
  animation: slideInRight 0.5s ease-out, pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Video Rooms Styles */
.room-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.room-card .card-header {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  color: white;
  border: none;
  padding: 1rem;
}

.room-card .card-body {
  padding: 1.5rem;
  background: white;
}

.room-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
}

.room-card .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.room-card .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Room Menu Sidebar */
.room-menu-sidebar .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.room-menu-sidebar .card-header {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: 15px 15px 0 0;
}

.room-menu-sidebar .btn-outline-primary {
  border: 2px solid #2e7d32;
  color: #2e7d32;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.room-menu-sidebar .btn-outline-primary:hover,
.room-menu-sidebar .btn-outline-primary.active {
  background: #2e7d32;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
}

.room-menu-sidebar .btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.room-menu-sidebar .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.room-menu-sidebar .btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  color: #1b5e20;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.room-menu-sidebar .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.room-menu-sidebar .btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  border: none;
  color: white;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.room-menu-sidebar .btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.4);
}

/* Room Search */
#roomSearch {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

#roomSearch:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Room Modal Styles */
#videoConferenceModal .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#videoConferenceModal .modal-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  padding: 1.5rem;
}

#videoConferenceModal .modal-body {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Loading Animation */
.rooms-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.rooms-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Empty State */
.rooms-empty {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.rooms-empty i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Participants List Styles */
.participant-item {
  margin-bottom: 0.5rem;
}

.participant-card {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-width: 200px;
}

.participant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.participant-card.current-user {
  border-color: #2e7d32;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.participant-card.current-user .participant-avatar {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1b5e20;
}

.participant-info {
  flex: 1;
  min-width: 0;
}

.participant-name {
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-card.current-user .participant-name {
  color: #1b5e20;
}

.participant-status {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #6c757d;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
  display: inline-block;
}

.status-indicator.online {
  background-color: #28a745;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.status-indicator.offline {
  background-color: #dc3545;
}

/* Participants Container */
#participantsContainer {
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#participantsContainer::-webkit-scrollbar {
  width: 6px;
}

#participantsContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#participantsContainer::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#participantsContainer::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Participant Count Badge */
#participantCount {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Global Participants View Styles */
.participant-card-global {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
}

.participant-card-global:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #2e7d32;
}

.participant-avatar-global {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.participant-info-global {
  flex: 1;
  min-width: 0;
}

.participant-name-global {
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-status-global {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.status-indicator-global {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

.status-indicator-global.online {
  background-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}

.status-indicator-global.offline {
  background-color: #dc3545;
  animation: none;
}

.participant-joined {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Room Cards in Participants View */
#participantsByRoom .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

#participantsByRoom .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#participantsByRoom .card-header {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  color: white;
  border: none;
  padding: 1.5rem;
}

#participantsByRoom .card-body {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Stats Cards */
.bg-gradient-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
}

/* Search Functionality */
#participantSearch {
  border-radius: 25px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

#participantSearch:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .participant-card-global {
    padding: 0.75rem;
  }
  
  .participant-avatar-global {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 0.75rem;
  }
  
  .participant-name-global {
    font-size: 1rem;
  }
}

/* Appointment System Styles */
.appointment-message {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.appointment-header {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

.appointment-details {
  font-size: 0.9rem;
}

.appointment-details > div {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.appointment-time {
  font-weight: 600;
}

.appointment-link {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.appointment-link .btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.appointment-link .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Appointment Sidebar */
.appointment-item {
  margin-bottom: 1rem;
}

.appointment-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #ffd700;
}

.appointment-card .appointment-header h6 {
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.appointment-card .appointment-details {
  color: #6c757d;
  font-size: 0.9rem;
}

.appointment-card .appointment-time {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.appointment-card .appointment-link .btn {
  border-radius: 15px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Appointment Modal Styles */
#appointmentModal .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#appointmentModal .modal-header {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1b5e20;
  border: none;
  padding: 1.5rem;
}

#appointmentModal .modal-body {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#appointmentModal .form-control,
#appointmentModal .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

#appointmentModal .form-control:focus,
#appointmentModal .form-select:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

#appointmentModal .form-label {
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

#appointmentModal .form-check-input:checked {
  background-color: #2e7d32;
  border-color: #2e7d32;
}

#appointmentModal .form-check-label {
  color: #2e7d32;
  font-weight: 500;
}

#appointmentModal .btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  color: #1b5e20;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#appointmentModal .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

/* Chat Message Enhancements */
#chatMessages {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
}

#chatMessages .bg-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%) !important;
}

#chatMessages .bg-light {
  background: white !important;
  border: 1px solid #e9ecef;
}

/* Schedule Meeting Button */
.btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  color: #1b5e20;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
  color: #1b5e20;
}

/* Appointment Sidebar Card */
.card-header.bg-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
  color: #1b5e20 !important;
  border: none;
  padding: 1rem 1.5rem;
}

/* Responsive Design for Appointments */
@media (max-width: 768px) {
  .appointment-message {
    padding: 0.75rem;
  }
  
  .appointment-header {
    font-size: 1rem;
  }
  
  .appointment-details {
    font-size: 0.8rem;
  }
  
  #appointmentModal .modal-body {
    padding: 1.5rem;
  }
  
  .appointment-card {
    padding: 0.75rem;
  }
}

/* Service Details Appointment Modal Styles */
#appointmentModal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#appointmentModal .modal-header {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1b5e20;
  border: none;
  padding: 2rem;
  text-align: center;
}

#appointmentModal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

#appointmentModal .modal-body {
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#appointmentModal .alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 2px solid #17a2b8;
  border-radius: 15px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

#appointmentModal .form-control,
#appointmentModal .form-select {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#appointmentModal .form-control:focus,
#appointmentModal .form-select:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
  transform: translateY(-1px);
}

#appointmentModal .form-label {
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

#appointmentModal .form-check-input:checked {
  background-color: #2e7d32;
  border-color: #2e7d32;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

#appointmentModal .form-check-label {
  color: #2e7d32;
  font-weight: 600;
  font-size: 1rem;
}

#appointmentModal .btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  color: #1b5e20;
  border-radius: 30px;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

#appointmentModal .btn-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  color: #1b5e20;
}

#appointmentModal .btn-secondary {
  border-radius: 30px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#appointmentModal .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Service Details Button Enhancements */
.btn-outline-primary {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #2e7d32;
  color: #2e7d32;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  border-color: #2e7d32;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Schedule Meeting Button (Primary Action) */
.btn-warning {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  color: #1b5e20;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
  color: #1b5e20;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-warning:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.5);
  color: #1b5e20;
}

/* Button Stack Styling */
.btn + .btn {
  margin-top: 0.5rem;
}

/* Service Package Button Groups */
.card-body .btn {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Enhanced Button Icons */
.btn i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Button Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Success/Error Alert Styles */
.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  border-radius: 15px;
  color: #155724;
  font-weight: 600;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 2px solid #dc3545;
  border-radius: 15px;
  color: #721c24;
  font-weight: 600;
}

/* Responsive Design for Service Details Modal */
@media (max-width: 768px) {
  #appointmentModal .modal-body {
    padding: 1.5rem;
  }
  
  #appointmentModal .modal-header {
    padding: 1.5rem;
  }
  
  #appointmentModal .modal-title {
    font-size: 1.25rem;
  }
  
  #appointmentModal .btn-warning,
  #appointmentModal .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Meeting Status System Styles */
.meeting-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

.status-pending {
  background: linear-gradient(135deg, #ffc107 0%, #ffed4e 100%);
  color: #1b5e20;
  border: 2px solid #ffc107;
}

.status-accepted {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: 2px solid #28a745;
}

.status-denied {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: white;
  border: 2px solid #dc3545;
}

.status-cancelled {
  background: linear-gradient(135deg, #6c757d 0%, #95a5a6 100%);
  color: white;
  border: 2px solid #6c757d;
}

.status-completed {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  color: white;
  border: 2px solid #17a2b8;
}

.status-rescheduled {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  color: white;
  border: 2px solid #fd7e14;
}

.status-scheduled {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: 2px solid #28a745;
}

.status-counter_proposed {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  color: white;
  border: 2px solid #17a2b8;
}

/* Meeting Actions */
.meeting-actions {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meeting-actions .btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.meeting-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.meeting-actions .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.meeting-actions .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: white;
}

.meeting-actions .btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ffed4e 100%);
  color: #1b5e20;
}

.meeting-actions .btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  color: white;
}

/* Meeting Status Message */
.meeting-status-message {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
  border-left: 4px solid #17a2b8;
}

.status-header {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #17a2b8;
}

.status-content {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Meeting Counter-Proposal Message */
.meeting-counter-proposal-message {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
  border-left: 4px solid #17a2b8;
  border: 2px solid #17a2b8;
}

.counter-header {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #17a2b8;
  font-weight: 700;
}

.counter-details {
  font-size: 0.9rem;
}

.counter-details > div {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.counter-details .proposed-time {
  font-weight: 600;
  color: #17a2b8;
}

.counter-details .proposed-duration {
  color: rgba(255, 255, 255, 0.8);
}

.counter-details .proposed-reason {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Appointment Message with Status */
.appointment-message {
  position: relative;
  overflow: hidden;
}

.appointment-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #43a047, #66bb6a);
}

/* Status-specific appointment message styling */
.appointment-message.status-pending::before {
  background: linear-gradient(90deg, #ffc107, #ffed4e, #fff176);
}

.appointment-message.status-accepted::before {
  background: linear-gradient(90deg, #28a745, #20c997, #4caf50);
}

.appointment-message.status-denied::before {
  background: linear-gradient(90deg, #dc3545, #e74c3c, #f44336);
}

.appointment-message.status-cancelled::before {
  background: linear-gradient(90deg, #6c757d, #95a5a6, #9e9e9e);
}

.appointment-message.status-completed::before {
  background: linear-gradient(90deg, #17a2b8, #20c997, #00bcd4);
}

.appointment-message.status-rescheduled::before {
  background: linear-gradient(90deg, #fd7e14, #ffc107, #ff9800);
}

/* Responsive Design for Meeting Status */
@media (max-width: 768px) {
  .meeting-actions {
    flex-direction: column;
  }
  
  .meeting-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .meeting-status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Chat Menu System */
.chat-sidebar {
  height: calc(100vh - 120px);
  position: sticky;
  top: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
}

.chat-sidebar .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.chat-sidebar .nav-link {
  padding: 0.75rem 1rem;
  color: #6c757d;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.chat-sidebar .nav-link:hover {
  background-color: #f8f9fa;
  color: #495057;
  transform: translateX(5px);
}

.chat-sidebar .nav-link.active {
  background-color: #e3f2fd;
  color: #1976d2;
  border-left: 4px solid #1976d2;
  font-weight: 600;
}

.chat-sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

.chat-section {
  min-height: 500px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chat Theme Support */
.theme-dark {
  background-color: #1a1a1a;
  color: #ffffff;
}

.theme-dark .card {
  background-color: #2d2d2d;
  border-color: #404040;
}

.theme-dark .chat-sidebar .nav-link {
  color: #b0b0b0;
  border-bottom-color: #404040;
}

.theme-dark .chat-sidebar .nav-link:hover {
  background-color: #404040;
  color: #ffffff;
}

.theme-dark .chat-sidebar .nav-link.active {
  background-color: #1e3a8a;
  color: #ffffff;
}

.theme-dark .form-control {
  background-color: #2d2d2d;
  border-color: #404040;
  color: #ffffff;
}

.theme-dark .form-control:focus {
  background-color: #2d2d2d;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Chat Settings Styling */
.chat-settings .form-check-input:checked {
  background-color: #1976d2;
  border-color: #1976d2;
}

.chat-settings .form-select {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.chat-settings .form-select:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

/* User Profile Styling */
.user-profile .rounded-circle {
  border: 4px solid #e9ecef;
  transition: transform 0.3s ease;
}

.user-profile .rounded-circle:hover {
  transform: scale(1.05);
}

.user-profile .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

/* Quick Actions Styling */
.chat-sidebar .btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.chat-sidebar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .chat-sidebar {
    height: auto;
    position: relative;
    margin-bottom: 1rem;
  }
  
  .chat-section {
    min-height: 400px;
  }
}

/* Loading States */
.chat-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.chat-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #1976d2;
}

/* Empty States */
.chat-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.chat-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Chat Dropdown Menu */
.chat-dropdown {
  min-width: 250px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
}

.chat-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.chat-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.chat-dropdown .dropdown-item i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
}

.chat-dropdown .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Freelancers Chat Page */
.freelancer-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.freelancer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.freelancer-card .card-body {
  padding: 1.5rem;
}

.freelancer-card .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

/* Online Status Indicators */
.online-indicator {
  position: relative;
}

.online-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #28a745;
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Stats Cards */
.stats-card {
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
}

/* Filter Sidebar */
.chat-sidebar .form-control,
.chat-sidebar .form-select {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.chat-sidebar .form-control:focus,
.chat-sidebar .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive Design for Chat Pages */
@media (max-width: 768px) {
  .chat-sidebar {
    margin-bottom: 1rem;
  }
  
  .freelancer-card .card-body {
    padding: 1rem;
  }
  
  .freelancer-card .card-footer {
    padding: 0.75rem 1rem;
  }
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Notification Styles */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
}

/* Quick View Modal */
.modal-lg {
  max-width: 800px;
}

.modal-body img {
  border: 3px solid #e9ecef;
  transition: border-color 0.3s ease;
}

.modal-body img:hover {
  border-color: #007bff;
}

/* Ongoing Chat Page Styles */
.conversation-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.conversation-item:hover {
  background-color: #f8f9fa;
  border-left-color: #007bff;
  transform: translateX(2px);
}

.conversation-item.active {
  background-color: #e3f2fd;
  border-left-color: #1976d2;
  font-weight: 600;
}

.conversations-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.conversations-list::-webkit-scrollbar {
  width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.conversations-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.chat-messages {
  max-height: 500px;
  overflow-y: auto;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Online Status Indicator */
.online-indicator {
  position: relative;
}

.online-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #28a745;
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Message Bubbles */
.message-bubble {
  max-width: 70%;
  word-wrap: break-word;
}

.message-bubble.sent {
  background-color: #007bff;
  color: white;
  margin-left: auto;
}

.message-bubble.received {
  background-color: #f8f9fa;
  color: #333;
}

/* Chat Input */
.chat-input-container {
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.chat-input-container .form-control {
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-input-container .form-control:focus {
  box-shadow: 0 4px 8px rgba(0,123,255,0.3);
  border-color: #007bff;
}

.chat-input-container .btn {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design for Ongoing Chat */
@media (max-width: 768px) {
  .conversations-list {
    max-height: 300px;
  }
  
  .chat-messages {
    max-height: 400px;
  }
  
  .message-bubble {
    max-width: 85%;
  }
}

/* Loading States */
.chat-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.chat-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #007bff;
}

/* Empty States */
.chat-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.chat-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Notification Badges */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Animation for new messages */
@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bubble {
  animation: slideInMessage 0.3s ease-out;
}

/* Ongoing Chat - All Messages Layout */
.conversation-group {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.conversation-group:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.conversation-group.highlighted {
  border-color: #007bff;
  background-color: #f8f9ff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.conversation-header {
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.conversation-header h6 {
  color: #495057;
  font-weight: 600;
}

.conversation-messages {
  padding-left: 1rem;
}

.message-item {
  margin-bottom: 1rem;
}

.message-item:last-child {
  margin-bottom: 0;
}

/* Freelancer name styling in sidebar */
.conversation-item h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.conversation-item .text-muted {
  font-size: 0.85rem;
  line-height: 1.3;
  color: #6c757d;
}

/* Simplified sidebar layout */
.conversation-item .d-flex {
  min-height: 60px;
  align-items: center;
}

.conversation-item .flex-grow-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* All Messages Area */
#allMessagesArea {
  min-height: 600px;
}

#allMessages {
  background-color: #fafafa;
}

/* Responsive adjustments for all messages layout */
@media (max-width: 768px) {
  .conversation-group {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .conversation-header {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .conversation-messages {
    padding-left: 0.5rem;
  }
  
  .message-item {
    margin-bottom: 0.75rem;
  }
}

/* Loading state for all messages */
.all-messages-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #6c757d;
}

.all-messages-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #007bff;
}

/* Empty state for all messages */
.all-messages-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.all-messages-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Chat Input Area */
#chatInputArea {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#chatInputArea .card-body {
  padding: 1.5rem;
}

#messageForm {
  margin-top: 1rem;
}

#messageInput {
  border-radius: 25px;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

#messageInput:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
  outline: none;
}

#messageForm .btn {
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#messageForm .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

#messageForm .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Selected freelancer info */
#selectedFreelancerName {
  color: #495057;
  font-weight: 600;
}

#chatInputArea .text-muted {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Messages Container */
.messages-container {
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f8f9fa;
}

.message-bubble {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
}

.message-bubble.sent {
  justify-content: flex-end;
}

.message-bubble.received {
  justify-content: flex-start;
}

.message-content {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  position: relative;
}

.message-bubble.sent .message-content {
  background-color: #007bff;
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.message-bubble.received .message-content {
  background-color: white;
  color: #333;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 0.25rem;
}

.message-text {
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Responsive chat input */
@media (max-width: 768px) {
  #chatInputArea .card-body {
    padding: 1rem;
  }
  
  #messageInput {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  #messageForm .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .messages-container {
    max-height: 400px;
    padding: 0.75rem;
  }
  
  .message-content {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
  }
} 