/* Calendar-specific styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.app-shell {
  background: var(--gradient-brand);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.header {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header h1 {
  color: var(--gray-900);
}

.user-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  padding: 10px 20px;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .calendar-wrapper {
    grid-template-columns: 1fr;
  }
}

.calendar-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

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

.calendar-title {
  font-size: 24px;
  color: var(--gray-900);
  font-weight: 600;
}

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

.nav-btn {
  padding: 8px 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.nav-btn:hover {
  background: var(--color-accent);
}

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

.day-header {
  background: var(--color-primary);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

.calendar-day {
  background: white;
  padding: 10px;
  min-height: 100px;
  position: relative;
  border: 1px solid #eee;
}

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

.day-number {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.day-events {
  font-size: 12px;
  overflow: hidden;
  max-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-event {
  display: block;
  display: block;
  background: #e3f2fd;
  padding: 3px 5px;
  margin: 2px 0;
  border-radius: 3px;
  border-left: 3px solid var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  width: 100%;
}

.day-event_shared {
  display: block;
  display: block;
  background: #e3f2fd;
  padding: 3px 5px;
  margin: 2px 0;
  border-radius: 3px;
  border-left: 3px solid var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  width: 100%;
}

.events-list {
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.event-card {
  border-left: 4px solid var(--color-primary);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  background: #f9f9f9;
  transition: all .3s;
}

.event-card:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.event-card.shared {
  border-left-color: var(--color-success);
}

.event-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.event-time {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 5px;
}

.event-creator {
  color: #999;
  font-size: 12px;
  margin-bottom: 10px;
}

.event-description {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 10px;
  border-top: 1px solid var(--gray-200);
  padding-top: 10px;
}

.share-form {
  display: flex;
  gap: 10px;
}

.share-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 12px;
}

.share-form button {
  padding: 8px 15px;
  background: var(--color-success);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.share-form button:hover {
  background: var(--color-success-dark);
}

.empty-message {
  text-align: center;
  color: #999;
  padding: 20px;
}

.btn-create-event {
  margin-bottom: 20px;
}

/* Chat custom styles */
.chat-history-container::-webkit-scrollbar {
  width: 6px;
}

.chat-history-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-history-container::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
}

.chat-history-container::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

#general-chat-input:focus,
#event-chat-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(102, 155, 234, 0.15);
}

/* Messenger Container Styles */
.messenger-container {
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 700px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  margin-bottom: 30px;
}

/* Levý panel - seznam místností */
.messenger-sidebar {
  width: 320px;
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  background-color: var(--slate-50);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--slate-200);
  background: white;
}

.sidebar-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-action {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--slate-300);
  background: white;
  color: var(--slate-700);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-action:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
}

.room-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 12px;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.room-item:hover {
  background-color: var(--slate-100);
}

.room-item.active {
  background-color: var(--slate-200);
  font-weight: 600;
}

.room-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  flex-shrink: 0;
}

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

.room-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.room-name {
  font-size: 14px;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-time {
  font-size: 11px;
  color: var(--slate-500);
}

.room-preview {
  font-size: 12px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pravý panel - samotný chat */
.messenger-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  min-height: 0;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chat-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header-members {
  font-size: 12px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.placeholder-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  background-color: #fafafa;
  padding: 30px;
  text-align: center;
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.6;
}

/* Modal popup styly */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--slate-200);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  font-size: 20px;
  cursor: pointer;
  color: var(--slate-400);
  background: none;
  border: none;
  padding: 5px;
}

.close-modal:hover {
  color: var(--slate-600);
}

.user-select-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 5px;
  margin-bottom: 15px;
}

.user-select-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  gap: 10px;
}

.user-select-item:hover {
  background-color: var(--slate-100);
}

.user-select-item input {
  cursor: pointer;
}

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

.form-group-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 6px;
}

.form-group-modal input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  outline: none;
}

/* Agenda / Events List Premium Styles */
.search-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  gap: 15px;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 155, 234, 0.15);
}

.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 10px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--slate-500);
  background: var(--slate-100);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: var(--slate-200);
  color: var(--slate-700);
}

.filter-tab.active {
  background: var(--color-primary);
  color: white;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.event-card-premium {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  padding: 24px;
  border-left: 5px solid var(--color-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.event-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.event-card-premium.shared {
  border-left-color: var(--color-accent);
}

.event-header-p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.event-title-p {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0;
  text-decoration: none;
}

.event-title-p:hover {
  color: var(--color-primary);
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-own {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-shared {
  background: #fdf2f8;
  color: #be185d;
}

.event-meta-p {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-desc-p {
  font-size: 14px;
  color: var(--slate-600);
  margin: 12px 0;
  line-height: 1.5;
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
  flex-grow: 1;
}

.event-actions-p {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
}

.btn-view {
  background: var(--slate-100);
  color: var(--slate-600);
}

.btn-view:hover {
  background: var(--slate-200);
}

.btn-edit {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-edit:hover {
  background: #bae6fd;
}

.btn-decline {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-decline:hover {
  background: #fecaca;
}

.empty-state {
  background: white;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--slate-700);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--slate-500);
}

/* Classes for refactored inline styles */
.header-subtitle {
  color: var(--slate-500);
  margin-top: 5px;
}

.sidebar-title {
  margin: 0;
  font-size: 16px;
  color: var(--slate-900);
}

.room-avatar.group-avatar {
  background-color: #8b5cf6;
}

.room-avatar.dm-avatar {
  background-color: var(--color-success);
}

.empty-rooms-message {
  text-align: center;
  padding: 30px 10px;
  color: var(--slate-400);
  font-style: italic;
  font-size: 13px;
}

.chat-active-window {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.chat-history-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-history-container.event-chat-history {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
}

.chat-form {
  padding: 15px 20px;
  display: flex;
  gap: 10px;
  margin: 0;
  background: white;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--slate-300);
  border-radius: 25px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s;
}

.chat-send-btn {
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.user-select-item {
  width: 100%;
}

.user-select-item.space-between {
  justify-content: space-between;
}

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

.start-chat-btn {
  padding: 4px 10px;
  font-size: 12px;
}

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

/* Event Details page specific layout classes */
.event-details-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 10px;
}

.event-details-left {
  flex: 1.2;
  min-width: 320px;
  margin: 0;
  max-width: none;
}

.no-underline {
  text-decoration: none;
}

.share-section {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.shared-users-list {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.shared-user-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.shared-user-item.declined {
  opacity: 0.7;
}

.shared-user-status-active {
  margin-right: 10px;
  color: var(--color-success);
  font-weight: 500;
}

.shared-user-status-declined {
  margin-right: 10px;
  text-decoration: line-through;
  color: var(--color-danger);
}

.inline-form {
  margin: 0;
}

.inline-form-margin {
  margin-top: 20px;
}

.share-action-form {
  margin-top: 10px;
}

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

.share-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
}

.user-suggestions-box {
  position: absolute;
  width: 100%;
  background-color: white;
  border: 1px solid var(--gray-200);
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-cancel-block {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
}

.chat-section-container {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  height: 600px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.chat-section-subtitle {
  color: var(--slate-500);
  font-size: 13px;
  margin-bottom: 15px;
}

.chat-history-info-message {
  text-align: center;
  color: var(--slate-400);
  font-style: italic;
  margin-top: auto;
  padding: 20px;
}

.event-chat-form {
  display: flex;
  gap: 10px;
  margin: 0;
}

/* Agenda / Events List page specific styles */
.btn-search {
  padding: 12px 24px;
}

.btn-search-cancel {
  padding: 12px 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-meta-p.small {
  font-size: 12px;
}

.event-desc-p.empty {
  color: var(--slate-400);
  font-style: italic;
}

.form-inline-block {
  margin: 0;
  display: inline;
}

/* JS Generated chat elements classes */
.chat-message-bubble {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.chat-message-bubble.me {
  align-items: flex-end;
}

.chat-message-bubble.other {
  align-items: flex-start;
}

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

.chat-message-wrapper.me {
  flex-direction: row-reverse;
}

.chat-message-wrapper.other {
  flex-direction: row;
}

.chat-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.chat-message-avatar-placeholder {
  width: 32px;
  height: 32px;
}

.chat-message-content {
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  word-break: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message-content.me {
  border-radius: 18px 18px 4px 18px;
  background-color: var(--color-primary);
  color: white;
}

.chat-message-content.other {
  border-radius: 18px 18px 18px 4px;
  background-color: var(--slate-200);
  color: var(--slate-900);
}

.chat-message-sender {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 2px;
  margin-left: 44px;
}

.chat-message-time {
  font-size: 10px;
  display: block;
  text-align: right;
  margin-top: 4px;
}

.chat-message-time.me {
  color: rgba(255, 255, 255, 0.7);
}

.chat-message-time.other {
  color: var(--slate-500);
}

/* Chat message delete button styles */
.chat-message-delete-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

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

.chat-message-delete-btn:hover {
  color: var(--color-danger);
  transform: scale(1.15);
}


/* Calendars page specific classes */
.form-inline-display {
  display: inline;
}

.btn-logout-small {
  padding: 5px 10px;
  font-size: 12px;
  height: auto;
  margin-top: 5px;
}

/* Unread badge styles */
.unread-badge {
  background-color: var(--color-danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  display: inline-block;
  line-height: 1.2;
  margin-left: 8px;
}

/* Unread Messages Page Styles */
.unread-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.conversation-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 5px solid var(--slate-300);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--slate-200);
}

.conversation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: var(--slate-300);
}

/* Highlight styles for unread standard chat rooms */
.conversation-card.is-unread {
  border-left-color: var(--color-danger);
  border-color: #fca5a5;
  background: #fff8f8;
}

.conversation-card.is-unread:hover {
  border-left-color: var(--color-danger-dark);
}

/* Highlight styles for unread event chats */
.conversation-card.is-unread.event-chat-card {
  border-left-color: var(--color-primary);
  border-color: #bfdbfe;
  background: #f0f7ff;
}

.conversation-card.is-unread.event-chat-card:hover {
  border-left-color: #2563eb;
}

.unread-avatar-col {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

.unread-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.unread-details {
  flex: 1;
  min-width: 0;
}

.unread-source {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  display: inline-block;
}

.source-chat {
  color: var(--slate-500);
}

.source-event {
  color: var(--slate-500);
}

.conversation-card.is-unread .source-chat {
  color: var(--color-danger);
}

.conversation-card.is-unread .source-event {
  color: var(--color-primary);
}

.unread-sender-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.unread-sender {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
}

.conversation-card.is-unread .unread-sender {
  font-weight: 700;
  color: var(--slate-900);
}

.unread-text {
  font-size: 14px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-card.is-unread .unread-text {
  font-weight: 600;
  color: var(--slate-800);
}

.unread-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: right;
  margin-left: 20px;
  flex-shrink: 0;
}

.unread-time {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 500;
}

.conversation-card.is-unread .unread-time {
  color: var(--slate-600);
  font-weight: 600;
}

.action-arrow {
  margin-left: 15px;
  color: var(--slate-300);
  font-size: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.conversation-card:hover .action-arrow {
  transform: translateX(4px);
  color: var(--slate-600);
}

.empty-unread-state {
  background: white;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  border: 1px solid var(--slate-200);
}

.empty-unread-icon {
  font-size: 54px;
  margin-bottom: 16px;
  display: inline-block;
}

.empty-unread-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.empty-unread-text {
  color: var(--slate-500);
  font-size: 15px;
}

/* Custom styling for unread badge */
.conversation-badge {
  background-color: var(--color-danger);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
}

.conversation-card.is-unread.event-chat-card .conversation-badge {
  background-color: var(--color-primary);
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  body.app-shell {
    padding: 10px;
    background-attachment: fixed;
  }

  .container {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  .calendar-section {
    padding: 10px;
    overflow-x: auto;
  }

  .nav-buttons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    order: 1;
  }

  .nav-btn {
    flex: 1;
    text-align: center;
  }

  .calendar-title {
    order: 2;
    text-align: center;
  }

  .calendar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Calendar grid adjustments */
  .calendar-grid {
    gap: 1px;
    min-width: 0;
  }

  .calendar-day {
    min-height: 50px;
    padding: 2px;
    word-break: break-word;
    overflow: hidden;
  }

  .day-header {
    padding: 3px 1px;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .day-number {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .day-events {
    max-height: 40px;
  }

  .day-event,
  .day-event_shared {
    font-size: 9px;
    padding: 1px 2px;
    border-left-width: 2px;
    white-space: normal;
    word-break: break-word;
  }

  /* Messenger layout adjustments */
  .messenger-container {
    flex-direction: column;
    height: calc(100vh - 120px);
    min-height: 350px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .messenger-sidebar {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }

  .chat-active-window {
    min-height: 0;
    flex: 1;
  }

  /* Event Lists */
  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card-premium {
    padding: 15px;
  }

  .search-form {
    flex-direction: column;
  }

  /* Event details */
  .event-details-left,
  .chat-section-container {
    min-width: 100%;
    flex: none;
    width: 100%;
  }

  .chat-section-container {
    height: 400px;
    margin-top: 20px;
  }

  .calendar-wrapper {
    display: flex;
    flex-direction: column;
  }

  .calendar-section,
  .events-list {
    padding: 15px;
  }

  /* Unread list */
  .unread-meta {
    margin-left: 10px;
    gap: 5px;
    flex-direction: column;
    align-items: flex-end;
  }
}