/* Component Styles for MP PWA */

/* Home View */
.home-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.welcome-section {
  margin-bottom: 10px;
}

.welcome-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.welcome-name {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-primary);
}

.tasks-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.task-item.completed {
  opacity: 0.6;
}

.task-icon {
  font-size: 18px;
  color: var(--text-primary);
  min-width: 20px;
}

.task-item.completed .task-icon {
  color: var(--success-color);
}

.task-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.task-item.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.more-tasks {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 5px;
}

.events-list {
  margin-top: 15px;
}

/* Articles View */
.articles-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 5px;
  padding-top: 100px;
  padding-bottom: 40px;
}

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

.view-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 5px 10px var(--shadow-dark), 0 -1px 1px var(--shadow-light);
  padding: 20px;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.article-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
}

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

.article-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.article-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

/* Enhanced Todos View */
.todos-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.todos-header-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.todos-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.todos-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  min-width: 60px;
}

.stat-count {
  font-size: 20px;
  font-weight: bold;
  font-family: serif;
}

.stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-pending .stat-count {
  color: #f39c12;
}

.stat-overdue .stat-count {
  color: #e74c3c;
}

.stat-urgent .stat-count {
  color: #9b59b6;
}

.todos-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  padding: 4px;
}

.todo-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.todo-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.tab-icon {
  font-size: 16px;
}

.todos-list-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.todos-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.todo-item-enhanced {
  padding: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 2px 4px var(--shadow-dark), 0 -1px 1px var(--shadow-light);
  transition: transform 0.2s ease;
}

.todo-item-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.todo-item-enhanced.completed {
  opacity: 0.6;
}

.todo-main-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.todo-checkbox {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.todo-content {
  flex: 1;
}

.todo-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.todo-title {
  font-size: 18px;
  font-weight: 600;
  font-family: serif;
  color: var(--text-primary);
  flex: 1;
}

.todo-title.strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
}

.priority-badge {
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  text-transform: capitalize;
}

.todo-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.todo-details-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}

.todo-due-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.todo-due-date.overdue {
  color: #e74c3c;
}

.todo-due-date.due-soon {
  color: #f39c12;
}

.todo-assigned-by {
  display: flex;
  align-items: center;
  gap: 4px;
}

.todo-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.todo-action-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.todo-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-add-todo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.btn-add-todo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark), 0 -3px 3px var(--shadow-light);
}

.add-icon {
  font-size: 24px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 60px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-title {
  font-size: 24px;
  font-weight: 600;
  font-family: serif;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Enhanced Add Todo Modal */
.modal-large {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Company tagging input */
.company-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.company-tag-prefix {
  position: absolute;
  left: 12px;
  color: var(--accent-color);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.company-tag-input {
  padding-left: 30px !important;
}

.company-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow-dark);
  display: none;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  font-family: serif;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-color);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: serif;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.priority-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.priority-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.priority-btn[data-priority="low"].active {
  background: #27ae60;
}

.priority-btn[data-priority="medium"].active {
  background: #3498db;
}

.priority-btn[data-priority="high"].active {
  background: #f39c12;
}

.priority-btn[data-priority="urgent"].active {
  background: #e74c3c;
}

/* Assign Task Modal */
.assign-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

.user-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-glass);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-select-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-select-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.user-select-item span:first-of-type {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

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

.text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* Enhanced Calendar View */
.calendar-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.calendar-header-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calendar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.month-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--shadow-dark);
}

.month-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.month-year-title {
  font-size: 24px;
  font-weight: bold;
  font-family: serif;
  color: var(--text-primary);
}

.calendar-grid-container {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  padding: 20px;
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

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

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

.calendar-day {
  aspect-ratio: 1;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px;
}

.calendar-day.empty {
  cursor: default;
  pointer-events: none;
}

.calendar-day:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.day-number {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.calendar-day.selected .day-number {
  font-weight: bold;
}

.day-event-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #27ae60;
  margin-top: 2px;
}

.calendar-events-section {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  padding: 20px;
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
  margin-bottom: 25px;
}

.calendar-events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.selected-date-title-large {
  font-size: 22px;
  font-weight: bold;
  font-family: serif;
  color: var(--text-primary);
}

.btn-add-event {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(39, 174, 96, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-event:hover {
  background: rgba(39, 174, 96, 0.8);
  transform: translateY(-2px);
}

.calendar-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-event-row {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px var(--shadow-dark);
}

.calendar-event-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.event-time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.event-time {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
}

.event-date {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

.event-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  color: var(--text-primary);
  line-height: 1.4;
}

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

/* Event Detail Modal */
.event-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 500;
  font-family: serif;
  color: var(--text-primary);
}

.event-detail-icon {
  width: 30px;
  font-size: 18px;
  text-align: center;
}

.event-detail-notes {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-glass);
}

.event-detail-notes p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-danger {
  background: rgba(231, 76, 60, 0.6);
  color: var(--text-primary);
}

.btn-danger:hover {
  background: rgba(231, 76, 60, 0.8);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 20px;
  outline: none;
}

.modal-content input:focus {
  border-color: var(--accent-color);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Call Notes View */
/* Enhanced Call Notes View */
.callnotes-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.callnotes-header-section {
  margin-bottom: 10px;
}

.callnotes-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.callnotes-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-callnotes-state {
  text-align: center;
  padding: 60px 30px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.empty-icon {
  width: 50px;
  height: 50px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 20px;
}

.empty-callnotes-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-family: serif;
}

.empty-callnotes-state p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.callnote-item {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
  padding: 20px;
  transition: all 0.3s ease;
}

.callnote-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark), 0 -3px 3px var(--shadow-light);
}

.callnote-header-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.callnote-type-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.callnote-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: serif;
}

.callnote-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.callnote-date,
.callnote-duration,
.callnote-participants-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.callnote-expand-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.callnote-expand-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.callnote-item.expanded .callnote-expand-btn svg {
  transform: rotate(180deg);
}

.callnote-expanded-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.callnote-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: serif;
}

.callnote-ai-summary,
.callnote-notes,
.callnote-participants {
  margin-bottom: 8px;
}

.callnote-ai-summary p,
.callnote-notes p,
.callnote-participants p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-family: serif;
}

.callnote-ai-summary {
  padding: 12px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-view-transcript {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: serif;
}

.btn-view-transcript:hover {
  background: rgba(59, 130, 246, 0.8);
  transform: translateY(-1px);
}

.callnote-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-delete-callnote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: serif;
}

.btn-delete-callnote:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: translateY(-1px);
}

.btn-add-callnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.btn-add-callnote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark), 0 -3px 3px var(--shadow-light);
}

.add-icon {
  width: 24px;
  height: 24px;
}

/* Call Note Modals */
.callnote-modal-content,
.callnote-form-modal {
  max-width: 500px;
  width: 90%;
}

.modal-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 25px;
  font-family: serif;
}

.add-options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.add-option-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.add-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.option-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.option-info {
  flex: 1;
}

.option-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  font-family: serif;
}

.option-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.option-chevron {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.import-type-buttons {
  display: flex;
  gap: 15px;
}

.import-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.import-type-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Recording Controls */
.recording-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-record,
.btn-stop-recording {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: serif;
}

.btn-record:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-stop-recording {
  background: #ef4444;
}

.btn-stop-recording:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.recording-status {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-family: serif;
}

.recording-time {
  font-size: 24px;
  font-weight: 600;
  color: white;
  font-family: monospace;
  letter-spacing: 2px;
}

.recording-preview {
  width: 100%;
  margin-top: 15px;
}

.recording-preview audio {
  width: 100%;
  border-radius: 8px;
}

.import-type-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.transcript-modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
}

.transcript-text {
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  max-height: 60vh;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
  font-family: serif;
}

/* Chat View */
.chat-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.chat-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-session-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 5px 10px var(--shadow-dark);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-session-card:hover {
  transform: translateY(-2px);
}

.chat-session-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.chat-session-topic {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.chat-session-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Enhanced AI Assistant View */
.ai-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  position: relative;
}

.ai-header-section {
  padding: 15px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 2px 4px var(--shadow-dark);
}

.btn-menu {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.btn-menu:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.ai-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: 400px;
}

.ai-welcome-icon {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.ai-welcome-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  font-family: serif;
}

.ai-welcome-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-family: serif;
  max-width: 400px;
}

.ai-suggested-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.suggested-question-btn {
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.suggested-question-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark), 0 -3px 3px var(--shadow-light);
  background: rgba(255, 255, 255, 0.15);
}

.ai-message-bubble-wrapper {
  display: flex;
  align-items: flex-end;
  max-width: 75%;
}

.ai-message-bubble-wrapper.ai-message-user {
  align-self: flex-end;
  margin-left: auto;
}

.ai-message-bubble-wrapper.ai-message-assistant {
  align-self: flex-start;
  margin-right: auto;
}

.ai-message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 100%;
  word-wrap: break-word;
}

.ai-bubble-user {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-bubble-assistant {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.ai-message-text {
  font-size: 14px;
  color: white;
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-family: serif;
}

.ai-message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  font-family: serif;
}

.ai-download-section {
  margin-top: 12px;
}

.btn-download-cv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(5, 150, 105, 0.4));
  border: 2px solid rgba(16, 185, 129, 0.8);
  border-radius: 14px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.btn-download-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
}

.download-info {
  flex: 1;
  text-align: left;
}

.download-title {
  font-size: 14px;
  font-weight: bold;
  font-family: serif;
  margin-bottom: 2px;
}

.download-subtitle {
  font-size: 11px;
  opacity: 0.9;
  font-family: serif;
}

.ai-loading-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.ai-loading-indicator.hidden {
  display: none;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-text {
  font-size: 12px;
  font-family: serif;
  color: rgba(255, 255, 255, 0.6);
}

.ai-attachments-preview {
  display: flex;
  gap: 12px;
  padding: 10px 20px;
  overflow-x: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
}

.ai-attachment-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  min-width: 200px;
  position: relative;
}

.attachment-preview-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.attachment-name {
  font-size: 12px;
  color: white;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: serif;
}

.attachment-size {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.btn-remove-attachment {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-attachment:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.ai-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  box-shadow: 0 -2px 4px var(--shadow-dark);
}

.ai-message-input {
  flex: 1;
  padding: 12px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 25px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.ai-message-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Chat List Sidebar */
.ai-chat-sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  z-index: 2000;
  display: flex;
  transition: transform 0.3s ease;
}

.ai-chat-sidebar.hidden {
  transform: translateX(-100%);
  pointer-events: none;
}

.ai-chat-sidebar.visible {
  transform: translateX(0);
}

.ai-sidebar-content {
  width: 65%;
  max-width: 400px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  box-shadow: 4px 0 20px var(--shadow-dark);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ai-sidebar-overlay {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
}

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

.ai-sidebar-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.btn-close-sidebar {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.btn-close-sidebar:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.btn-new-chat:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark);
}

.ai-chat-sessions-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chat-session-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-chat-session-row.selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.session-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  font-family: serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-preview {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  font-family: serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: serif;
}

.btn-delete-session {
  background: transparent;
  border: none;
  color: rgba(239, 68, 68, 0.8);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-delete-session:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Enhanced Compensation View */
.compensation-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 10px 5px;
}

.compensation-header-section {
  margin-bottom: 20px;
}

.compensation-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.compensation-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-view-graphs {
  padding: 10px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-view-graphs:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Date Range Filter Section */
.compensation-date-filter-section {
  margin-bottom: 20px;
}

.date-range-toggle-container {
  margin-bottom: 15px;
}

.date-range-toggle-label {
  display: flex;
  align-items: center;
  color: white;
  font-size: 16px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  user-select: none;
}

.date-range-toggle {
  margin-right: 8px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.date-range-pickers-container {
  padding: 15px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-top: 10px;
}

.date-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.date-picker-label {
  width: 60px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-family: serif;
}

.date-picker-input {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: serif;
}

.date-picker-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.quick-date-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-date-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-date-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.compensation-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.btn-add-compensation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.btn-add-compensation:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark);
}

.compensation-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.compensation-search-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
}

.compensation-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.compensation-search-type {
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  cursor: pointer;
}

.compensation-stats {
  display: flex;
  gap: 10px;
}

.stat-badge {
  padding: 8px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.stat-value {
  font-size: 18px;
  font-weight: bold;
  color: white;
  font-family: serif;
}

.compensation-list-container {
  flex: 1;
  overflow-y: auto;
}

.empty-compensation-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 400px;
}

.empty-icon {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.empty-compensation-state h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  font-family: serif;
}

.empty-compensation-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-family: serif;
}

.btn-add-first {
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-first:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
}

.compensation-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.compensation-row {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.compensation-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark);
  border-color: rgba(255, 255, 255, 0.3);
}

.compensation-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.compensation-row-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
  font-family: serif;
}

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

.btn-view-compensation,
.btn-edit-compensation,
.btn-delete-compensation {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-view-compensation:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-edit-compensation:hover {
  background: rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.5);
}

.btn-delete-compensation:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.compensation-row-details {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.compensation-detail-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-family: serif;
}

.detail-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.detail-value {
  color: white;
  font-weight: 600;
}

.compensation-row-compensation {
  display: flex;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.compensation-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compensation-amount.compensation-total {
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--border-glass);
}

.amount-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.amount-value {
  font-size: 18px;
  font-weight: bold;
  color: white;
  font-family: serif;
}

.compensation-amount.compensation-total .amount-value {
  font-size: 22px;
  color: rgba(16, 185, 129, 1);
}

/* Compensation Modal */
.compensation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.compensation-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px var(--shadow-dark);
}

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

.compensation-modal-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
}

.compensation-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: white;
  font-family: serif;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
  background: #1a1a2e;
  color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
}

.btn-cancel {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
}

/* Compensation Detail Modal */
.compensation-detail-modal {
  max-width: 700px;
}

.compensation-detail-content {
  padding: 20px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  font-family: serif;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item.detail-total {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 2px solid var(--border-glass);
}

.detail-item .detail-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.detail-item .detail-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: serif;
}

.detail-item.detail-total .detail-value {
  font-size: 24px;
  color: rgba(16, 185, 129, 1);
}

.compensation-detail-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid var(--border-glass);
}

.btn-edit-from-detail,
.btn-delete-from-detail {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-glass);
}

.btn-edit-from-detail {
  background: rgba(251, 191, 36, 0.3);
  color: white;
}

.btn-edit-from-detail:hover {
  background: rgba(251, 191, 36, 0.5);
}

.btn-delete-from-detail {
  background: rgba(239, 68, 68, 0.3);
  color: white;
}

.btn-delete-from-detail:hover {
  background: rgba(239, 68, 68, 0.5);
}

/* Enhanced Industry Moves View */
.moves-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 10px 5px;
}

.moves-header-section {
  margin-bottom: 20px;
}

.moves-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.moves-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-leaderboard {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
}

.btn-leaderboard:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: #fcd34d;
}

.btn-filters {
  padding: 10px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-filters:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Filters Modal */
.filters-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.filters-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px var(--shadow-dark);
  overflow: hidden;
}

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

.filters-modal-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.btn-close-filters {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close-filters:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filters-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: serif;
  margin-bottom: 10px;
}

.filter-select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-family: serif;
  cursor: pointer;
}

.filter-select option {
  background: #1a3a5c;
  color: white;
}

.region-filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.region-filter-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.region-filter-btn.active {
  background: rgba(59, 130, 246, 0.6);
  border-color: rgba(59, 130, 246, 0.8);
  color: white;
}

.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-range-input {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
}

.date-range-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.date-range-separator {
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.filters-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

/* Image Upload Styles */
.image-upload-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.btn-image-upload {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.btn-image-upload:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.image-preview-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
}

.image-preview {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  object-fit: cover;
}

.btn-remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger-color);
  border: 2px solid white;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-remove-image:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* Move Image Display */
.move-image-container {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
}

.move-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.detail-image-section {
  margin-bottom: 25px;
}

.detail-move-image {
  width: 100%;
  max-width: 500px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin: 0 auto;
  display: block;
}

.btn-apply-filters,
.btn-clear-filters {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-glass);
}

.btn-apply-filters {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
}

.btn-apply-filters:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-clear-filters {
  background: rgba(239, 68, 68, 0.5);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-clear-filters:hover {
  background: rgba(239, 68, 68, 0.7);
}

.moves-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.btn-add-move {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.btn-add-move:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark);
}

/* Leaderboard Modal */
.leaderboard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.leaderboard-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px var(--shadow-dark);
  overflow: hidden;
}

.leaderboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.leaderboard-row.top-three {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.leaderboard-rank {
  flex-shrink: 0;
}

.rank-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  font-family: serif;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--border-glass);
}

.rank-circle.top-rank {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
}

.leaderboard-name {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: white;
  font-family: serif;
}

.leaderboard-count {
  font-size: 16px;
  font-weight: 600;
  color: #002f56;
  font-family: serif;
}

.leaderboard-empty {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-family: serif;
}

.moves-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.moves-search-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
}

.moves-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.moves-search-type {
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  cursor: pointer;
}

.moves-region-filter {
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  cursor: pointer;
  min-width: 150px;
}

.moves-stats {
  display: flex;
  gap: 10px;
}

.moves-list-container {
  flex: 1;
  overflow-y: auto;
}

.empty-moves-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 400px;
}

.empty-moves-state h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  font-family: serif;
}

.empty-moves-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-family: serif;
}

.moves-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.move-row {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.move-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark);
  border-color: rgba(255, 255, 255, 0.3);
}

.move-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.move-person-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.move-person-name {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
  font-family: serif;
}

.move-region {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-family: serif;
}

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

.btn-view-move,
.btn-edit-move,
.btn-delete-move {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-view-move:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-edit-move:hover {
  background: rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.5);
}

.btn-delete-move:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.move-transition {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.move-from,
.move-to {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.move-company {
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: serif;
}

.move-company.clickable-company {
  cursor: pointer;
  color: var(--accent-color);
  text-decoration: underline;
  transition: all 0.2s ease;
}

.move-company.clickable-company:hover {
  color: var(--accent-color-light);
  text-decoration: none;
}

.move-position {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.move-arrow {
  color: rgba(16, 185, 129, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.move-row-meta {
  display: flex;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

/* Compensation Workflow Form */
.workflow-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.workflow-form-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px var(--shadow-dark);
  overflow: hidden;
}

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

.workflow-form-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.btn-close-workflow {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close-workflow:hover {
  background: rgba(255, 255, 255, 0.1);
}

.workflow-progress-container {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.workflow-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.workflow-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(16, 185, 129, 0.8));
  transition: width 0.3s ease;
  border-radius: 4px;
}

.workflow-progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: serif;
}

.workflow-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  min-height: 400px;
}

.workflow-step-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-family: serif;
}

.workflow-step-content {
  min-height: 300px;
}

.workflow-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workflow-text-input {
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  font-size: 20px;
  font-family: serif;
  outline: none;
  transition: all 0.2s ease;
}

.workflow-text-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.workflow-text-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.workflow-date-input {
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  font-size: 18px;
  font-family: serif;
  outline: none;
}

.workflow-textarea {
  padding: 15px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  font-size: 18px;
  font-family: serif;
  outline: none;
  resize: vertical;
  min-height: 200px;
  width: 100%;
}

.workflow-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.workflow-options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 0;
}

.workflow-option-btn {
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.workflow-option-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.workflow-option-btn.selected {
  background: rgba(59, 130, 246, 0.6);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.workflow-currency-picker {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.workflow-currency-btn {
  padding: 15px 30px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workflow-currency-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.workflow-currency-btn.selected {
  background: rgba(59, 130, 246, 0.6);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.workflow-yes-no-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workflow-yes-btn,
.workflow-no-btn {
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.workflow-yes-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}

.workflow-yes-btn.selected {
  background: rgba(16, 185, 129, 0.6);
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.workflow-no-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.workflow-no-btn.selected {
  background: rgba(239, 68, 68, 0.6);
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.workflow-display-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 300px;
}

.workflow-large-number {
  font-size: 48px;
  font-weight: bold;
  color: white;
  font-family: serif;
  margin-bottom: 10px;
}

.workflow-display-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.workflow-calculating {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.workflow-review-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.workflow-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}

.workflow-review-row .review-label {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.workflow-review-row .review-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: serif;
  text-align: right;
}

.workflow-navigation {
  padding: 20px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.workflow-nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.workflow-nav-right {
  display: flex;
  gap: 15px;
  flex: 1;
  justify-content: flex-end;
}

.btn-workflow-back,
.btn-workflow-next,
.btn-workflow-skip,
.btn-workflow-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-glass);
}

.btn-workflow-back {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  flex: 1;
}

.btn-workflow-back:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-workflow-skip {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
}

.btn-workflow-skip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-workflow-next {
  background: rgba(59, 130, 246, 0.7);
  color: white;
  flex: 1;
}

.btn-workflow-next:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.9);
  transform: translateY(-2px);
}

.btn-workflow-next:disabled {
  background: rgba(107, 114, 128, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-workflow-submit {
  background: rgba(16, 185, 129, 0.6);
  color: white;
  flex: 1;
}

.btn-workflow-submit:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
}

/* Graphs View */
.graphs-view-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5000;
  overflow-y: auto;
}

.graphs-content {
  padding: 20px;
  min-height: 100vh;
}

.btn-back-from-graphs {
  padding: 10px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-back-from-graphs:hover {
  background: rgba(255, 255, 255, 0.15);
}

.graphs-header-section {
  margin-bottom: 30px;
}

.graphs-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.graphs-title-row .graphs-title {
  flex: 1;
}

.graphs-title {
  font-size: 24px;
  font-weight: bold;
  color: white;
  font-family: serif;
  margin: 0;
}

.btn-view-combined {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.7);
  color: white;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-combined:hover {
  background: rgba(59, 130, 246, 0.9);
}

.graphs-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}

.graph-type-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.graph-type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.graph-type-btn.active {
  background: rgba(59, 130, 246, 0.6);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.graphs-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}

.search-icon {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.graphs-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  font-family: serif;
  outline: none;
}

.graphs-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.graphs-list-container {
  margin-top: 20px;
}

.graphs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.graph-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.graph-row:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.graph-row.selected {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.graph-select-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.graph-row.selected .graph-select-btn {
  color: rgba(59, 130, 246, 1);
}

.graph-title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: white;
  font-family: serif;
}

.graph-actions {
  display: flex;
  gap: 10px;
}

.graph-view-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.graph-view-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.empty-graphs-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.empty-graphs-state p {
  margin: 10px 0;
  font-size: 18px;
}

.empty-state-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Graph Detail Modal */
.graph-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.graph-detail-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 95%;
  max-width: 1200px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px var(--shadow-dark);
  overflow: hidden;
}

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

.graph-detail-header h3 {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
  flex: 1;
}

.graph-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-download-graph {
  padding: 10px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-download-graph:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-close-graph-detail {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close-graph-detail:hover {
  background: rgba(255, 255, 255, 0.1);
}

.graph-detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  min-height: 500px;
}

.chart-container {
  position: relative;
  min-height: 500px;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.chart-header {
  margin-bottom: 25px;
}

.chart-header h4 {
  font-size: 20px;
  font-weight: bold;
  color: white;
  font-family: serif;
  margin: 0 0 12px 0;
}

.chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
}

.chart-stat-item .stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.chart-stat-item .stat-value {
  font-size: 16px;
  color: white;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.chart-stats-summary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0 0 8px 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.chart-canvas-wrapper {
  margin-top: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}

.chart-container canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  /* Don't force width/height - let JavaScript set it based on container */
  aspect-ratio: 16 / 9; /* Maintain proper aspect ratio */
}

.chart-canvas-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.move-meta-item {
  display: flex;
  gap: 8px;
  font-size: 12px;
  font-family: serif;
}

.meta-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.meta-value {
  color: white;
  font-weight: 600;
}

/* Moves Modal (reuse compensation modal styles with moves prefix) */
.moves-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.moves-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px var(--shadow-dark);
}

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

.moves-modal-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.moves-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.moves-form textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  resize: vertical;
  min-height: 100px;
}

.moves-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.moves-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.moves-detail-modal {
  max-width: 700px;
}

.moves-detail-content {
  padding: 20px;
}

.moves-detail-content .detail-section {
  margin-bottom: 30px;
}

.moves-detail-content .detail-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  font-family: serif;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.detail-item.detail-note {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 1px solid var(--border-glass);
}

.detail-item.detail-note .detail-value {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.moves-detail-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid var(--border-glass);
}

.btn-edit-from-detail,
.btn-delete-from-detail {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-glass);
}

.btn-edit-from-detail {
  background: rgba(251, 191, 36, 0.3);
  color: white;
}

.btn-edit-from-detail:hover {
  background: rgba(251, 191, 36, 0.5);
}

.btn-delete-from-detail {
  background: rgba(239, 68, 68, 0.3);
  color: white;
}

.btn-delete-from-detail:hover {
  background: rgba(239, 68, 68, 0.5);
}

/* Company View Modal */
.company-view-modal {
  max-width: 800px;
}

.company-view-content {
  padding: 20px;
}

.company-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.company-stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.company-stat-item .stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.company-stat-item .stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-color);
  font-family: serif;
}

.company-filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.company-filter-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  font-family: serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.company-filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.company-moves-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.company-move-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.company-move-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}

.company-move-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.company-move-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: serif;
}

.company-move-type {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: serif;
}

.company-move-type.type-from {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.company-move-type.type-to {
  background: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.company-move-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-move-detail {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-family: serif;
}

.company-move-detail .detail-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.company-move-detail .detail-value {
  color: white;
}

.company-move-detail .detail-value.clickable-company {
  color: var(--accent-color);
  cursor: pointer;
  text-decoration: underline;
}

.company-move-detail .detail-value.clickable-company:hover {
  color: var(--accent-color-light);
  text-decoration: none;
}

/* Profile View */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-header {
  margin-bottom: 20px;
}

.profile-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 15px var(--shadow-dark);
  padding: 40px;
  text-align: center;
}

.profile-avatar {
  margin-bottom: 20px;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0 auto;
}

.profile-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 2px solid var(--accent-color);
}

.profile-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.profile-email {
  font-size: 16px;
  color: var(--text-secondary);
}

.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Options */
.profile-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-option {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: serif;
  box-shadow: 0 8px 15px var(--shadow-dark);
}

.profile-option:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px var(--shadow-dark);
}

.profile-option-danger {
  color: #ef4444;
}

.profile-option-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.profile-option-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-option-title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

/* Settings Modal */
.settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.settings-modal {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px var(--shadow-dark);
  overflow: hidden;
  box-sizing: border-box;
}

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

.settings-modal-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  font-family: serif;
}

.settings-modal-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Settings Section Groups */
.settings-section-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.settings-section-title {
  font-size: 20px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  font-family: serif;
  padding-left: 5px;
}

.settings-section-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

/* Settings Toggle Items */
.settings-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--border-glass);
  gap: 15px;
  min-width: 0; /* Allow flex items to shrink */
}

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

.settings-toggle-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0; /* Allow text to wrap/truncate */
}

.settings-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.settings-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-toggle-title {
  font-size: 16px;
  font-weight: 500;
  color: white;
  font-family: serif;
}

.settings-toggle-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 28px;
}

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

.toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Time Picker */
.settings-time-picker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-top: 1px solid var(--border-glass);
}

.settings-time-picker-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.settings-time-picker-label {
  font-size: 16px;
  font-weight: 500;
  color: white;
  font-family: serif;
  flex: 1;
}

.settings-time-picker-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-picker-select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  cursor: pointer;
}

.time-picker-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.time-picker-separator {
  color: white;
  font-size: 16px;
}

.settings-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
  padding: 10px 15px;
  font-style: italic;
}

/* Settings Buttons */
.settings-button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-glass);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: serif;
  width: 100%;
  text-align: left;
}

.settings-button:last-child {
  border-bottom: none;
}

.settings-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-button-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.settings-button-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.settings-button-title {
  font-size: 16px;
  font-weight: 500;
  color: white;
  font-family: serif;
}

.settings-button-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

/* Settings Rows (Read-only) */
.settings-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--border-glass);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.settings-row-title {
  font-size: 16px;
  font-weight: 500;
  color: white;
  font-family: serif;
  flex: 1;
}

.settings-row-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

/* About Modal */
.about-modal {
  max-width: 500px;
}

.about-content {
  padding: 30px;
  text-align: center;
}

.about-content h4 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
  font-family: serif;
}

.about-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-family: serif;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* MFA Modal */
.mfa-modal {
  max-width: 500px;
}

.mfa-qr-code {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

.mfa-secret {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-family: serif;
  margin: 15px 0;
}

.mfa-secret code {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.mfa-backup-codes {
  font-size: 14px;
  font-weight: 600;
  color: white;
  font-family: serif;
  margin-top: 20px;
}

.backup-codes-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.backup-codes-list li {
  margin: 8px 0;
}

.backup-codes-list code {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: monospace;
  display: inline-block;
  color: white;
}

.mfa-warning {
  font-size: 14px;
  color: #fbbf24;
  font-family: serif;
  margin-top: 15px;
  font-weight: 500;
}

/* Outlook Integration Styles */
.outlook-status-container {
  padding: 15px;
  border-top: 1px solid var(--border-glass);
}

.outlook-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.outlook-status-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.outlook-status-value {
  font-size: 14px;
  font-weight: 600;
  font-family: serif;
}

.settings-section {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  padding: 25px;
}

.settings-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

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

.settings-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.settings-label {
  font-size: 16px;
  color: var(--text-primary);
}

.settings-value {
  font-size: 14px;
  color: var(--text-secondary);
}

.mfa-qr-code {
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  display: block;
}

.mfa-secret {
  text-align: center;
  margin: 20px 0;
  color: var(--text-secondary);
}

.mfa-secret code {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-family: monospace;
}

.backup-codes-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.backup-codes-list li code {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 5px;
  display: block;
  text-align: center;
  font-family: monospace;
}

.mfa-warning {
  color: var(--danger-color);
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
}

/* Enhanced Chat View Styles */
.chat-header-section {
  margin-bottom: 10px;
}

.chat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.chat-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

.chat-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-icon {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.chat-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
}

.search-icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.chat-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  font-family: serif;
  outline: none;
}

.chat-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 8px var(--shadow-dark), 0 -2px 2px var(--shadow-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.chat-row-delete-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.chat-row-delete-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  opacity: 1;
  transform: scale(1.05);
}

.chat-row:hover .chat-row-delete-btn {
  opacity: 1;
}

.chat-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-dark), 0 -3px 3px var(--shadow-light);
}

.chat-row-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

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

.chat-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chat-row-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: serif;
  margin: 0;
}

.chat-unread-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.chat-row-message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chat-row-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-family: serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.chat-row-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
  flex-shrink: 0;
}

.empty-chat-state {
  text-align: center;
  padding: 60px 30px;
  color: rgba(255, 255, 255, 0.7);
}

.empty-chat-state .empty-icon {
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-chat-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-family: serif;
}

.empty-chat-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

/* Individual Chat View */
.chat-individual-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
}

.chat-individual-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 2px 4px var(--shadow-dark);
}

.btn-back {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.chat-header-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  font-family: serif;
}

.chat-header-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-family: serif;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-messages-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-messages-state .empty-icon {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-messages-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-family: serif;
}

.empty-messages-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.message-bubble-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
}

.message-bubble-wrapper.message-sent {
  align-self: flex-end;
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-bubble-wrapper.message-received {
  align-self: flex-start;
  margin-right: auto;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-sender-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 8px;
  font-family: serif;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 20px;
  max-width: 100%;
  word-wrap: break-word;
}

.message-bubble-sent {
  background: #4a6b5c;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-bubble-received {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
}

.message-text {
  font-size: 16px;
  color: white;
  margin: 0;
  line-height: 1.4;
  font-family: serif;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  justify-content: flex-end;
}

.message-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
}

.message-status {
  color: rgba(255, 255, 255, 0.6);
}

.chat-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  box-shadow: 0 -2px 4px var(--shadow-dark);
}

.btn-attachment,
.btn-send {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.btn-attachment:hover,
.btn-send:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.chat-message-input {
  flex: 1;
  padding: 12px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 25px;
  color: white;
  font-size: 16px;
  font-family: serif;
  outline: none;
}

.chat-message-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* New Chat Modal */
.chat-modal-content {
  max-width: 400px;
  width: 90%;
}

.new-chat-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.new-chat-option-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.new-chat-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.option-text {
  flex: 1;
}

.option-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  font-family: serif;
}

.option-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
}

/* ============================================================================
   Articles View - Enhanced Styles Matching iOS App
   ============================================================================ */

/* Error Message */
.articles-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px;
  text-align: center;
}

.error-icon {
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.7);
}

.error-message {
  font-size: 16px;
  font-weight: 500;
  font-family: serif;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* AI Summary Card */
.ai-summary-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 18px;
  box-shadow: 
    rgba(255, 255, 255, 0.2) -8px -8px 15px,
    rgba(13, 39, 80, 0.3) 10px 10px 20px;
}

.ai-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.ai-summary-title {
  font-size: 24px;
  font-weight: bold;
  font-family: serif;
  color: white;
  margin: 0;
}

.ai-summary-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-summary-content {
  color: rgba(255, 255, 255, 0.9);
  font-family: serif;
}

.ai-summary-executive {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
  color: white;
}

.ai-summary-key-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.ai-summary-point {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ai-summary-bullet {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.ai-summary-point-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.ai-summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.ai-summary-meta-separator {
  color: rgba(255, 255, 255, 0.4);
}

.ai-summary-loading,
.ai-summary-error {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Filter Buttons */
.articles-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 11px;
  font-weight: 500;
  font-family: serif;
  color: white;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 
    rgba(255, 255, 255, 0.2) -4px -4px 8px,
    rgba(13, 39, 80, 0.3) 4px 4px 10px;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    rgba(255, 255, 255, 0.2) -4px -4px 8px,
    rgba(13, 39, 80, 0.3) 4px 4px 10px;
}

/* Articles List */
.articles-loading,
.articles-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-family: serif;
  font-size: 16px;
}

/* Enhanced Article Card Styles */
.article-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 18px;
  transition: all 0.3s ease;
  box-shadow: 
    rgba(255, 255, 255, 0.2) -8px -8px 15px,
    rgba(13, 39, 80, 0.3) 10px 10px 20px;
}

.article-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-title {
  font-size: 14px;
  font-weight: 500;
  font-family: serif;
  color: white;
  line-height: 1.4;
  margin: 0;
}

.article-title-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-source-badge {
  font-size: 10px;
  font-weight: 500;
  font-family: serif;
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.article-time {
  font-size: 10px;
  font-weight: 500;
  font-family: serif;
  color: rgba(255, 255, 255, 0.7);
}

.article-relevance {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  font-family: serif;
  color: rgba(255, 255, 255, 0.7);
}

.article-relevance svg {
  color: #fbbf24;
  width: 10px;
  height: 10px;
}

.article-expand-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.article-expand-btn:hover {
  color: white;
}

.article-expand-btn[data-expanded="true"] {
  transform: rotate(180deg);
}

.article-expanded-content {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-summary {
  font-size: 12px;
  font-weight: 400;
  font-family: serif;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  font-family: serif;
  color: white;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-read-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* User Selection Styles */
.user-search-container {
  position: relative;
  margin-bottom: 20px;
}

.user-search-container .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.user-search-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-family: serif;
  outline: none;
  box-sizing: border-box;
}

.user-search-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
}

.users-list-container {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.user-item.selected {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-color);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.user-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 600;
  font-family: serif;
}

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

.user-name {
  font-size: 16px;
  font-weight: 500;
  color: white;
  font-family: serif;
  margin-bottom: 4px;
}

.user-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.user-item.selected .user-checkbox {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.user-item.selected .user-checkbox svg {
  display: block;
}

.user-checkbox svg {
  display: none;
}

.selected-users-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.selected-users-header {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-family: serif;
}

.selected-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  color: white;
  font-size: 14px;
  font-family: serif;
}

.remove-user-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.remove-user-btn:hover {
  opacity: 1;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.modal-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
