/*
Theme Name: Publissoft Space
Theme URI: https://example.com/
Author: Example
Author URI: https://example.com/
Description: Minimal theme that displays only the WordPress login form.
Version: 15.4
*/
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 2rem auto !important;
    max-width: fit-content !important;
    flex-wrap: wrap !important;
    padding: 0 1rem !important;
}


.nav-items a.nav-item[href*="/pcp-experiences/"] {
    display: none !important;    
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Dashboard Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text--link: #00479e;
  --bg-primary: #f9f9f9;
  --bg-secondary: #ffffff;
  --sidebar-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #444;
  --text-muted: #999999;
  --border-color: #e0e0e0;
  --blue-accent: #0078D5;
  --blue-secondary: rgba(0, 120, 213, 0.1);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --btn-primary: #0078D5;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --item-active: rgba(0, 0, 0, 0.05);

  /* Bootstrap-style breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;

  /* Gutter widths */
  --gutter-x: 1.5rem;
  --gutter-y: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}
a:hover{
    color: #0274be;
}

.hide {
    display: none !important;
}

h1 {
    line-height: 1.1;
    font-size: 24px;
}

/* ============ BOOTSTRAP-STYLE GRID SYSTEM ============ */

/* Container */
.container {
  width: 100%;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

.container-fluid {
  max-width: 1400px;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

/* Responsive container widths */
@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--gutter-y));
  margin-right: calc(-0.5 * var(--gutter-x));
  margin-left: calc(-0.5 * var(--gutter-x));
}

.row > * {
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
  margin-top: var(--gutter-y);
}

/* Base column */
.col {
  flex: 1 0 0%;
}

/* Column sizes for all breakpoints */
.col-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .col-sm { flex: 1 0 0%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }
  .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md { flex: 1 0 0%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg { flex: 1 0 0%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .col-xl { flex: 1 0 0%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; }
  .col-xl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .col-xxl { flex: 1 0 0%; }
  .col-xxl-auto { flex: 0 0 auto; width: auto; }
  .col-xxl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xxl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xxl-3 { flex: 0 0 auto; width: 25%; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xxl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xxl-6 { flex: 0 0 auto; width: 50%; }
  .col-xxl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xxl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xxl-9 { flex: 0 0 auto; width: 75%; }
  .col-xxl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xxl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xxl-12 { flex: 0 0 auto; width: 100%; }
}

/* Gutter utilities */
.g-0 { --gutter-x: 0; --gutter-y: 0; }
.g-1 { --gutter-x: 0.25rem; --gutter-y: 0.25rem; }
.g-2 { --gutter-x: 0.5rem; --gutter-y: 0.5rem; }
.g-3 { --gutter-x: 1rem; --gutter-y: 1rem; }
.g-4 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; }
.g-5 { --gutter-x: 3rem; --gutter-y: 3rem; }

.gx-0 { --gutter-x: 0; }
.gx-1 { --gutter-x: 0.25rem; }
.gx-2 { --gutter-x: 0.5rem; }
.gx-3 { --gutter-x: 1rem; }
.gx-4 { --gutter-x: 1.5rem; }
.gx-5 { --gutter-x: 3rem; }

.gy-0 { --gutter-y: 0; }
.gy-1 { --gutter-y: 0.25rem; }
.gy-2 { --gutter-y: 0.5rem; }
.gy-3 { --gutter-y: 1rem; }
.gy-4 { --gutter-y: 1.5rem; }
.gy-5 { --gutter-y: 3rem; }

/* ============ DASHBOARD SPECIFIC STYLES ============ */

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

/* Toggle button - Always visible */
.toggle-btn {
  z-index: 1002;
  width: 40px;
  height: 40px;
  margin: 10px 10px 0px 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
}

.toggle-btn:hover {
  background-color: var(--bg-primary);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

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

/* --------- SIDEBAR --------- */
.sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--sidebar-bg);
  overflow: hidden;
  width: 60px;
  border-right: 1px solid var(--border-color);
  position: relative;
  width: 240px;
}

.sidebar.expanded {
  width: 240px;
}

/* Close button for mobile */
.sidebar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.logo-container {
  color: var(--blue-accent);
  font-size: 30px;
  font-weight: 600;
  margin: 10px;
  flex-shrink: 0;

}

.logo-container .logo{
    color: var(--blue-accent) !important;
}

.user-avatar {
  width: 25px;
  height: 25px;
  border-radius: 20%;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 10px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  margin-bottom: 2px;
}

.nav-item-avatar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  margin-bottom: 20px;
}

.nav-item:hover {
  background-color: var(--item-active);
  color: var(--text-primary);
}



.nav-item.active_avatar {
  color: var(--blue-accent);
  background-color: rgba(0, 120, 213, 0.1);
}
.nav-item.active {
  background-color: var(--item-active);
  color: var(--blue-accent) !important;
}

.nav-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  height: 21px;
  line-height: 1;
  
}
.nav-icon svg {
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
}

.nav-text-avatar {
  color: #000;
}

/*
.sidebar:not(.expanded) .nav-text {
  display: none;
}
*/

.sidebar-footer {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  width: 100%;
  padding: 0 10px;
}

/* --------- MAIN CONTENT --------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  height: 100vh;
}

.header {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.welcome-icon {
  width: 40px;
  height: 40px;
  background-color: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.welcome-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  /* Smooth scrolling */
  scroll-behavior: smooth;
  /* Webkit scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;  
  padding: 15px 0;
}

.content::-webkit-scrollbar {
  width: 6px;
}

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

.content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

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

/* --------- CARDS --------- */
.card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.10);
  height: fit-content;
  margin-bottom: 24px;
}

.card-light {
    background-color: var(--blue-secondary);
    border:1px solid rgba(122, 186, 253, 0.1);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background-color: var(--btn-primary);
  color: #fff;
}



.button-left {
    margin-left: auto;
}

.button-left .btn {
  background-color: var(--btn-primary);
  display: flex;
  align-items: center;
  justify-content: center; 
  color: #fff;
  margin: 0 !important;
}

.btn-dark {
  background-color: #1a1a1a;
  color: white;
}

.btn-dark:hover {
  background-color: #333;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin-left: 12px;
}

.btn-link:hover {
  color: var(--text-primary);
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header-new {
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.view-all {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.view-all:hover {
  color: var(--text-primary);
}

/* Calendar styles */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-selector {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  min-width: 70px;
}

.calendar-selector:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.day-header {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
  font-weight: 500;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.day:hover {
  background-color: var(--bg-primary);
}

.day.other-month {
  color: #ccc;
}

.day.selected {
  background-color: var(--blue-accent);
  color: white;
  font-weight: 500;
}

.day.has-event {
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--blue-accent);
  text-underline-offset: 3px;
}

/* Client list styles */
.client-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  padding-left: 5px;
  padding-right: 5px;
}

.client-item:last-child {
  border-bottom: none;
}

.client-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.client-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.client-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.client-status {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 12px;
  background-color: var(--bg-primary);
}

/* Interaction styles */
.interaction-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  padding-left: 5px;
  padding-right: 5px;
}

.interaction-item:last-child {
  border-bottom: none;
}

.interaction-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.interaction-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.interaction-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.interaction-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Proposal styles */
.proposal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  padding-left: 5px;
  padding-right: 5px;
}

.proposal-item:last-child {
  border-bottom: none;
}

.proposal-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.proposal-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.proposal-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.proposal-status {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 12px;
  background-color: var(--bg-primary);
}

/* --------- RESPONSIVE MOBILE OVERRIDES --------- */

/* Mobile styles */
@media (max-width: 767px) {
  .toggle-btn {
    position: fixed;
    top: 2px;
    right: 1px;
    display: block;
  }


  .header {
    padding: 12px 61px 15px 15px;
  }

  .welcome-text {
    font-size: 18px;
  }



  .card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-subtitle {
    font-size: 12px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .header {
    padding: 12px 61px 15px 15px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .card {
    padding: 16px;
  }


.sidebar.expanded {
    left: 0;
    width: 100vw;
  }
}

/* --------- MODAL STYLES --------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
}



.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e5e5;
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
}

.step-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e5e5;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.step.active .step-circle {
  background: #0078D5;
}

.step.completed .step-circle {
  background: #0078D5;
}

.step-label {
  font-size: 14px;
  color: #999;
  font-weight: 500;
}

.step.active .step-label {
  color: #0078D5;
  font-weight: 600;
}

.modal-body {
  padding: 15px;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary); 
  background: var(--bg-primary);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0078D5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.radio-group {
  display: flex;
  gap: 24px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-input {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e5e5;
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.radio-input:checked {
  border-color: #0078D5;
  background: #0078D5;
}

.radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 50%;
}

.radio-label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

.modal-footer {
  padding: 0 15px 15px 15px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-color);
}


.btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-cancel:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-continue {
  background: #0078D5;
  color: white;
  min-width: 100px;
}

.btn-continue:hover {
  background: #0078D5;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

.demo-btn {
  background: #0078D5;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.demo-btn:hover {
  background: #4338CA;
}

@media (max-width: 640px) {
  .modal {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .radio-group {
    gap: 16px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* --------- LOADING MODAL --------- */
.loading-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-modal.active { display: flex; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}

/* Additional styles for Business Analysis Dashboard */

/* Enhanced welcome header */
.welcome-icon {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-right: 8px;
}

.welcome-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Business analysis specific styles */
.analysis-section {
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.analysis-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Keywords list styles */
.keywords-list {
  border-top: 1px solid var(--border-color);
}

.keyword-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.keyword-item:last-child {
  border-bottom: none;
}

.keyword-item .keyword-name {
  font-size: 14px;
  color: var(--text-primary);
}

.keyword-item .keyword-metric {
  font-size: 12px;
  color: var(--text-muted);
}

/* Statistics cards */
.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-card .stat-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stat-card .stat-number {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.competitors-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.competitor-stat {
  text-align: center;
}

.competitor-stat .competitor-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.competitor-stat .competitor-number {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Pre-meeting questions */
.question-card {
  background-color: var(--blue-secondary);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.question-card .question-label {
  font-size: 12px;
  color: var(--blue-accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.question-card .question-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.question-card .question-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Magic moment card */
.magic-moment-card {
  text-align: center;
  padding: 24px;
}

.magic-moment-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.magic-moment-card .moment-date {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.magic-moment-card .moment-time {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.magic-moment-card .btn {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Info icons */
.info-icon {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

/* Button enhancements */
.btn-message {
  background-color: var(--btn-primary);
  color: white;
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.btn-reschedule {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Video link styling */
.video-link {
  color: var(--blue-accent);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-link:hover {
  text-decoration: underline;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .welcome-text {
    font-size: 20px;
  }
  
  .competitors-stats {
    gap: 20px;
  }
  
  .competitor-stat .competitor-number {
    font-size: 24px;
  }
  
  .magic-moment-card .moment-date {
    font-size: 28px;
  }
  
  .stat-card .stat-number {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .welcome-text {
    font-size: 18px;
  }
  
  .analysis-section {
    padding: 16px;
  }
  
  .magic-moment-card {
    padding: 20px;
  }
  
  .competitors-stats {
    flex-direction: column;
    gap: 16px;
  }
}



/* Proposal styles */
.proposal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  padding-left: 5px;
  padding-right: 5px;
}

.proposal-item:last-child {
  border-bottom: none;
}

.proposal-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.proposal-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.proposal-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.proposal-status {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 12px;
  background-color: var(--bg-primary);
}

/* Video Analysis Styles */
.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  padding-left: 5px;
  padding-right: 5px;
}

.video-item:last-child {
  border-bottom: none;
}

.video-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.video-date {
  color: var(--text-secondary);
  font-size: 12px;
}

.status-badge {
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.status-responded {
    background: #dcfce7;
    color: #059669;
    border: 1px solid #4ade80;
}

.status-review {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fbbf24;
}

.status-approved, .status-completed {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #4ade80;
}

.status-changes {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #f87171;
}

.status-in-progress {
  background-color: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.stats-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px;
  background-color: var(--bg-primary);
  border-radius: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.legend {
  margin-top: 20px;
  padding: 16px;
  background-color: var(--bg-primary);
  border-radius: 8px;
  border-left: 4px solid var(--blue-accent);
}

.legend-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-pending { background-color: #64748b; }
.dot-review { background-color: #d97706; }
.dot-approved { background-color: #16a34a; }
.dot-changes { background-color: #dc2626; }

/* Enhanced Mobile Styles - Add to existing CSS */

/* ============ MOBILE HEADER ============ */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1001;
  height: 60px;
}

.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-primary);
}

.mobile-logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-accent);
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.notification-btn:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.notification-badge {
  position: absolute;
  top: 12px;
  right: 6px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.message-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #ff4757;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.mobile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ USER DROPDOWN ============ */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  min-width: 280px;
  max-width: 320px;
  max-height: 80vh;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1002;
  overflow: hidden;
  /* Ensure it doesn't get cut off */
  will-change: transform, opacity;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--blue-accent);
  background: var(--bg-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

.user-info .user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.user-info .user-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0 16px;
}

.user-dropdown-items {
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.user-dropdown-items::-webkit-scrollbar {
  width: 4px;
}

.user-dropdown-items::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.user-dropdown-item:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.user-dropdown-item.logout {
  color: #ff4757;
}

.user-dropdown-item.logout:hover {
  background-color: rgba(255, 71, 87, 0.1);
}

/* ============ NOTIFICATIONS DROPDOWN ============ */
.notifications-dropdown {
    position: absolute;
  top: calc(100% + 8px);
  right: 48px;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1002;
  overflow: hidden;
  will-change: transform, opacity;
}

.notifications-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notifications-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.mark-all-read {
  background: none;
  border: none;
  color: var(--blue-accent);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.mark-all-read:hover {
  background-color: var(--blue-secondary);
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Smooth scrolling */
  scroll-behavior: smooth;
}

.notifications-list::-webkit-scrollbar {
  width: 4px;
}

.notifications-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.notification-item:hover {
  background-color: var(--bg-primary);
}

.notification-item.unread {
  background-color: rgba(0, 120, 213, 0.02);
  border-left: 3px solid var(--blue-accent);
}

.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--blue-secondary);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: var(--text-muted);
}

.notifications-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.view-all-notifications {
  display: block;
  text-align: center;
  color: var(--blue-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.view-all-notifications:hover {
  text-decoration: underline;
}

/* ============ MOBILE NAVIGATION MENU ============ */
.mobile-nav-overlay {
 position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  /* Prevent scroll behind overlay */
  overscroll-behavior: contain;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 1004;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav-menu.show {
  left: 0;
}

.mobile-nav-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-primary);
}

.mobile-nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-user .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-user .user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mobile-nav-user .user-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.mobile-nav-close {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-nav-close:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.mobile-nav-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
    /* Smooth scrolling */
  scroll-behavior: smooth;
  /* Webkit scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;  
}

.mobile-nav-section {
  margin-bottom: 24px;
}

.mobile-nav-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 20px 8px;
  margin-bottom: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.mobile-nav-item.active {
  background-color: var(--blue-secondary);
  color: var(--blue-accent);
  border-right: 3px solid var(--blue-accent);
}

.mobile-nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* ============ MOBILE RESPONSIVE UPDATES ============ */
@media (max-width: 767px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
  }

  /* Hide desktop sidebar toggle */
  .toggle-btn {
    display: none !important;
  }

  /* Adjust main content for mobile header */
  .main-content {
    padding-top: 0;
  }

  /* Hide desktop header */
  .header {
    display: none;
  }

  /* Adjust app container */
  .app-container {
    display: block;
  }

  /* Improve card spacing on mobile */
  .card {
    margin-bottom: 16px;
    padding: 16px;
  }

  /* Better mobile calendar */
  .calendar-grid {
    gap: 1px;
  }

  .day {
    font-size: 13px;
    min-height: 36px;
  }

  /* Mobile modals adjustments */
  .modal {
    margin: 16px;
    max-width: calc(100vw - 32px);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Notifications dropdown mobile adjustment */
  .notifications-dropdown {
    right: 8px;
    width: calc(100vw - 32px);
    max-width: 360px;
  }

  /* User dropdown mobile adjustment */
  .user-dropdown {
    right: 8px;
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .mobile-nav-menu {
    width: 100vw;
  }

  .notifications-dropdown {
    width: calc(100vw - 16px);
    right: 8px;
  }

  .user-dropdown {
    width: calc(100vw - 16px);
    right: 8px;
    max-height: 60vh;
  }

  /* Stack cards better on small screens */
  .card-title {
    font-size: 16px;
  }

  .card-subtitle {
    font-size: 13px;
  }

  /* Better button sizing */
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ============ UTILITY CLASSES ============ */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }
  
  #sidebar {
    display: none !important;
  }
}

/* ============ ANIMATION IMPROVEMENTS ============ */
.mobile-nav-menu,
.user-dropdown,
.notifications-dropdown {
  transform-origin: top right;
}

.notification-item,
.user-dropdown-item,
.mobile-nav-item {
  position: relative;
  overflow: hidden;
}

.notification-item::before,
.user-dropdown-item::before,
.mobile-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.notification-item:hover::before,
.user-dropdown-item:hover::before,
.mobile-nav-item:hover::before {
  left: 100%;
}

/* ============ FOCUS STATES FOR ACCESSIBILITY ============ */
.mobile-menu-toggle:focus,
.notification-btn:focus,
.mobile-user-avatar:focus,
.mobile-nav-close:focus {
  outline: 2px solid var(--blue-accent);
  outline-offset: 2px;
}

.user-dropdown-item:focus,
.mobile-nav-item:focus {
  background-color: var(--blue-secondary);
  color: var(--blue-accent);
  outline: none;
}

/* ============ LOADING STATES ============ */
.notification-btn.loading {
  pointer-events: none;
}

.notification-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--blue-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-outline {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-primary);
    color: var(--text-primary);

}

   /* Academy Accordion Styles */


        .accordion-icon {
            font-size: 14px;
            transition: transform 0.2s ease;
            margin-left: auto;
        }

        .nav-item.accordion-trigger.expanded .accordion-icon {
            transform: rotate(180deg);
        }

        .academy-submenu {
            display: none;
            transition: max-height 0.3s ease;
            margin: 0 -10px 2px -10px;
            border-radius: 0 0 8px 8px;
        }

        .academy-submenu.active {
            display: block;
        }

        .submenu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 8px 8px 30px;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 6px;
            white-space: nowrap;
            margin: 4px 10px;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .submenu-item:hover {
            background-color: rgba(0, 0, 0, 0.05);
            color: var(--text-primary);
            text-decoration: none;
        }

        .submenu-item.active {
            color: var(--blue-accent) !important;
            background-color: rgba(0, 120, 213, 0.1);
        }

        .submenu-icon {
            font-size: 14px;
            width: 16px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .submenu-text {
            font-weight: 500;
        }


        .sidebar-footer {
            display: flex;
            flex-direction: column;
            margin: 20px 0;
            width: 100%;
            padding: 0 10px;
        }
        
        
.eb-archive-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wp-block-edwiser-bridge-courses .eb-courses__wrapper, .wp-block-edwiser-bridge-course-description .eb-course-desc__wrapper{
    max-width: 1400px !important;
}

.wp-block-edwiser-bridge-courses .eb-courses__course-card .course-details .btn {
    background: none !important;
    display: block !important;
}

/* ===== Momento 0 notifications ===== */
.modal-notification {
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.modal-notification.success {
    background: #e6ffed;
    border-left: 4px solid #10b981;
}
.modal-notification.error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}




.page-header {
    background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.10);
  height: fit-content;
  margin-bottom: 24px;
  padding: 20px 32px;
}
.page-header .page-title {
    margin-bottom: 10px;
    padding-left: 0 !important;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-title-section {
    flex: 1;
}

/* Filters */
.messages-filters {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  align-items: center;
}


        .filter-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-right: 8px;
        }

        .filter-btn {
            padding: 4px 18px;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-btn:hover,
        .filter-btn.active {
            border-color: var(--blue-accent);
            background: var(--blue-accent);
            color: white;
        }

        .search-box {
            margin-left: auto;
            position: relative;
            min-width: 280px;
        }

        .search-input {
            width: 100%;
            padding: 12px 18px 12px 44px;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--blue-accent);
            box-shadow: 0 0 0 3px rgba(0, 120, 213, 0.1);
            background: var(--bg-secondary);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 16px;
        }
        
        
        
        /* Messages Content */
        .messages-content {
            padding: 32px 20px;
            max-width: 1400px;
            margin: 0 auto;
        }


        .filter-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-right: 8px;
        }

        .filter-btn {
            padding: 4px 18px;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-btn:hover,
        .filter-btn.active {
            border-color: var(--blue-accent);
            background: var(--blue-accent);
            color: white;
        }

        .search-box {
            margin-left: auto;
            position: relative;
            min-width: 280px;
        }

        .search-input {
            width: 100%;
            padding: 12px 18px 12px 44px;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--blue-accent);
            box-shadow: 0 0 0 3px rgba(0, 120, 213, 0.1);
            background: var(--bg-secondary);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 16px;
        }

        /* Messages List */
        .messages-list {
            background: var(--bg-secondary);
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .message-item {
            display: flex;
              align-items: center;
              padding: 20px;
              border-bottom: 1px solid var(--border-color);
              cursor: pointer;
              transition: all 0.3s ease;
              position: relative;
        }

        .message-item:last-child {
            border-bottom: none;
        }

        .message-item:hover {
            background: rgba(0, 120, 213, 0.04);
        }

        .message-item.unread {
            background: rgba(0, 120, 213, 0.06);
            border-left: 4px solid var(--blue-accent);
        }

        .message-item.unread .message-subject {
            font-weight: 700;
        }

        .message-item.unread::after {
            content: '';
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: var(--blue-accent);
            border-radius: 50%;
        }

        /* Priority Indicator */
        .priority-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 16px;
            flex-shrink: 0;
        }

        .priority-low { background: #10b981; }
        .priority-medium { background: #f59e0b; }
        .priority-high { background: #ef4444; }
        .priority-urgent { 
            background: #dc2626; 
            animation: urgent-pulse 2s infinite;
        }

        @keyframes urgent-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* Message Content */
        .message-content {
            flex: 1;
            min-width: 0;
        }

        .message-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .message-subject {
            font-size: 15px;
            font-weight: 400;
            color: var(--text-primary);
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .message-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .message-preview {
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.4;
            margin: 4px 0 8px 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .message-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        /* Status Badges */
        .status-badge {
            padding: 3px 7px;
            border-radius: 11px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .status-pending {
            background: #fef3c7;
            color: #d97706;
            border: 1px solid #fbbf24;
        }

        .status-answered {
            background: #dcfce7;
            color: #059669;
            border: 1px solid #4ade80;
        }

        .message-time {
            color: var(--text-muted);
            font-size: 12px;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .empty-state-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: var(--bg-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: var(--text-muted);
        }

        .empty-state h3 {
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .empty-state p {
            font-size: 14px;
            line-height: 1.5;
        }

        /* Message Modal */
        .message-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-secondary);
            z-index: 10000;
            display: none;
            flex-direction: column;
        }

        .message-modal.show {
            display: flex;
        }



        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .modal-close {

            border: none;
            border-radius: 50%;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
        }
        
        .modal-close .nav-icon {

           width: auto;
           display: inline !important;
        } 

        .modal-close:hover {
            background: var(--border-color);
            color: var(--text-primary);
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
        }

        .conversation-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .conversation-header {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .conversation-subject {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .conversation-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            color: var(--text-secondary);
            font-size: 14px;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Message Bubbles */
        .message-bubble {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            position: relative;
        }

        .message-bubble.client {
            margin-right: 40px;
            border-left: 4px solid var(--blue-accent);
        }

        .message-bubble.support {
            margin-left: 40px;
            border-left: 4px solid #10b981;
        }

        .bubble-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .bubble-sender {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sender-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--blue-accent);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }

        .support .sender-avatar {
            background: #10b981;
        }

        .sender-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
        }

        .bubble-time {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .bubble-content {
            color: var(--text-primary);
            line-height: 1.6;
            font-size: 14px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .page-header-content {
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }

            .header-actions {
                width: 100%;
                justify-content: space-between;
            }

            .messages-content {
                padding: 20px 16px;
            }

            .messages-filters {
                flex-direction: column;
                align-items: flex-start;
                padding: 16px 20px;
            }

            .search-box {
                margin-left: 0;
                width: 100%;
                margin-top: 12px;
            }

            .message-item {
                padding: 16px;
            }

            .message-bubble.client,
            .message-bubble.support {
                margin-left: 0;
                margin-right: 0;
            }

            .conversation-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
        }
/* CSS corregido para tu estructura actual de Message Center */

/* Contenedor principal del Message Center */
.message-center-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Header del Message Center */
.message-center-header h1,
.message-center-header h2 {
    margin: 0;
    color: #1f2937;
}

.message-center-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.message-center-header p {
    color: #6b7280;
    margin: 0 0 2rem 0;
    font-size: 1rem;
}



/* Labels de filtros */
.messages-filters label,
.filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Selects de filtros */
.messages-filters select,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #1f2937;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.messages-filters select:hover,
.filter-select:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.messages-filters select:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Área de mensajes */
.messages-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 1rem;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .messages-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .message-center-container {
        padding: 1rem;
    }
    
    .message-center-header h1 {
        font-size: 1.5rem;
    }
    
    .messages-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .messages-filters select,
    .filter-select {
        padding: 0.625rem 0.75rem;
        padding-right: 2.25rem;
    }
    
    .messages-content {
        padding: 2rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .message-center-container {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .message-center-header h1 {
        font-size: 1.25rem;
    }
    
    .messages-filters {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .messages-filters label,
    .filter-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
}

/* Estilos para cuando hay mensajes */

.priority-indicator.priority-low {
    background-color: #10b981;
}

.priority-indicator.priority-medium {
    background-color: #f59e0b;
}

.priority-indicator.priority-high {
    background-color: #ef4444;
}

.status-badge.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-responded {
    background-color: #d1fae5;
    color: #065f46;
}

/* Paginación */
.messages-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 10px;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.15s ease-in-out;
}

.page-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

.page-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: var(--bg-secondary);
}

.page-btn.active:hover {
    background: #2563eb;
}

/* Message View */
        .message-view {
            flex: 1;
            background: var(--bg-secondary);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .view-header {
                background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.10);
  height: fit-content;
  margin-bottom: 24px;
  padding: 20px 32px;
        }

        .view-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .view-toolbar {
            display: flex;
            gap: 8px;
        }

        .toolbar-btn {
            padding: 6px 12px;
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .toolbar-btn:hover {
            background: var(--bg-primary);
            color: var(--text-primary);
        }

        .view-subject {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .view-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .view-content {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
        }

        .conversation-thread {
            max-width: 800px;
            margin: 0 auto;
        }

        .message-bubble {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 16px;
            position: relative;
        }

        .message-bubble.user {
            background: var(--bg-secondary);
            border-left: 4px solid var(--blue-accent);
        }



        .bubble-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
        }

        .bubble-sender {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sender-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--blue-accent);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }

        .support .sender-avatar {
            background: var(--success-color);
        }

        .sender-name {
            font-weight: 600;
            color: var(--text-primary);
        }

        .bubble-time {
            font-size: 12px;
            color: var(--text-muted);
        }

        .bubble-content {
            color: var(--text-primary);
            line-height: 1.6;
        }

        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            text-align: center;
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state h3 {
            margin-bottom: 8px;
            color: var(--text-secondary);
        }
        
        
        .list-filters {
            display: flex;
            gap: 8px;
        }

        .filter-btn {
            padding: 4px 12px;
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-secondary);
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--blue-accent);
            color: white;
            border-color: var(--blue-accent);
        }
        .list-header {
            padding: 16px 20px;
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            border-width: 1px 1px 0 1px;
        }
        .list-actions {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 12px;
        }
        .messageView {
            
        }

.back-chevron {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-left: 2px solid #374151;
            border-bottom: 2px solid #374151;
            transform: rotate(45deg);
            transition: all 0.2s ease;
        }
        
        
        .view-header {
            display: flex;
            align-items: center;
            gap: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }
        .title-section{
            flex: 1;
        }
        
        
        
/* Reply Section */
        .reply-section {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
        }

        .reply-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .reply-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .reply-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .form-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .form-textarea {
            min-height: 120px;
            padding: 12px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            resize: vertical;
            transition: all 0.3s ease;
            background: var(--bg-primary);
            color: var(--text-secondary);
        }

        .form-textarea:focus {
            outline: none;
            border-color: var(--blue-accent);
            box-shadow: 0 0 0 3px rgba(0, 120, 213, 0.1);
        }

        .form-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .priority-selection {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .priority-label {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .priority-options {
            display: flex;
            gap: 6px;
        }

        .priority-btn {
            padding: 4px 8px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 11px;
            transition: all 0.3s ease;
        }

        .priority-btn.active {
            background: var(--blue-accent);
            color: white;
            border-color: var(--blue-accent);
        }

        .submit-actions {
            display: flex;
            gap: 8px;
        }

        .submit-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .submit-btn.primary {
            background: var(--blue-accent);
            color: white;
        }

        .submit-btn.primary:hover {
            background: #0066cc;
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .submit-btn.secondary {
            background: var(--bg-primary);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

        .submit-btn.secondary:hover {
            background: var(--border-color);
            color: var(--text-primary);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 16px;
            }

            .page-header {
                padding: 16px 20px;
            }

            .message-header-info {
                flex-direction: column;
                align-items: flex-start;
            }

            .header-actions {
                width: 100%;
                justify-content: flex-end;
            }

            .message-bubble {
                max-width: 95%;
            }

            .conversation-body {
                padding: 16px;
            }

            .reply-section {
                padding: 20px;
            }

            .form-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .submit-actions {
                width: 100%;
            }

            .submit-btn {
                flex: 1;
                justify-content: center;
            }
        }

        /* Loading state */
        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        /* Success message */
        .success-message {
            font-size: 14px;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
            display: none;
            align-items: center;
            gap: 8px;
            background: #e6ffed;
            border-left: 4px solid #10b981;
            color: #333;
        }

        .success-message.show {
            display: flex;        }
        .error-message {
            font-size: 14px;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
            display: none;
            align-items: center;
            gap: 8px;
            color: #333;
            background: #fee2e2;
            border-left: 4px solid #ef4444;
        }

        .error-message.show {
            display: flex;
        }

        .message-files {
            margin-top: 8px;
        }
        .message-files img {
            max-width: 100%;
            height: auto;
            display: block;
            margin-bottom: 4px;
        }
        .message-files a {
            display: block;
            margin-bottom: 4px;
            color: var(--text-primary);
        }
.modal-title-multi {
    margin-bottom: 12px;
}

/* ---- Dark Mode Toggle ---- */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.video-player-card {
    overflow: hidden;
    padding: 0;
}

.video-container {
    position: relative;
    background: #000;
}

.video-controls {
    padding: 16px 24px;
    background: var(--bg-secondary);
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 8px;
}

input:checked + .slider {
  background-color: var(--blue-accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.theme-switch .nav-text {
  flex: 1;
}

.theme-switch .switch {
  margin-left: auto;
}

.theme-icon-dark {display:none;}
body.dark-mode .theme-icon-dark {display:inline;}
body.dark-mode .theme-icon-light {display:none;}

body.dark-mode {
  --bg-primary: #1e1e1e;
  --bg-secondary: #2c2c2c;
  --sidebar-bg: #2c2c2c;
  --text-primary: #f5f5f5;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border-color: #444444;
  --bg-overlay: rgba(255, 255, 255, 0.5);
  --item-active: rgba(255, 255, 255, 0.05);
}