/* ../node_modules/normalize.css/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}
[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}

/* src/components/chat/chat.styles.css */
chat-user-box:hover {
  cursor: pointer;
  background-color: #000;
}

/* src/styles/print.css */
#print-area {
  display: none;
}
@media print {
  body * {
    visibility: hidden;
  }
  #print-area,
  #print-area * {
    visibility: visible;
  }
  #print-area {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .page {
    padding: 20mm;
    font-family:
      "Segoe UI",
      Arial,
      sans-serif;
    font-size: 16px;
    color: #1f2937;
  }
  h2 {
    font-size: 26px;
    margin-bottom: 8mm;
  }
  table {
    font-size: 16px;
    border-collapse: collapse;
    width: 100%;
  }
  th,
  td {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #444;
  }
  footer {
    font-size: 14px;
    text-align: center;
    margin-top: 12mm;
  }
}

/* src/styles/notebook.css */
.notebook-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.notebook-layout-split {
  flex: 1;
  display: flex;
  height: 100%;
  overflow: hidden;
}
.notebook-split-container {
  display: flex;
  gap: 0;
  height: 100%;
  background: white;
  padding: 0;
}
.notebook-left-panel {
  width: 30%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding: 0;
  position: relative;
  transition:
    width 0.3s ease,
    min-width 0.3s ease,
    opacity 0.3s ease;
}
.notebook-left-panel.collapsed {
  width: 40px;
  min-width: 40px;
  overflow: hidden;
}
.notebook-left-panel.collapsed .sections-container,
.notebook-left-panel.collapsed .pages-container,
.notebook-left-panel.collapsed .search-results-container {
  display: none;
}
.section-header-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-toggle-left-panel {
  background: transparent;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #777;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-toggle-left-panel:hover {
  background: #e8e8e8;
  color: #1890ff;
}
.btn-expand-left-panel {
  background: transparent;
  border: none;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  margin-top: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-expand-left-panel:hover {
  background: #e8e8e8;
  color: #1890ff;
}
.notebook-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.sections-container,
.pages-container {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}
.sections-container {
  flex: 1;
  overflow-y: auto;
}
.pages-container {
  flex: 0 1 40%;
  overflow-y: auto;
}
.section-header,
.pages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.section-header h4,
.pages-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
}
.btn-add-section,
.btn-add-page {
  background: #3498db;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-section:hover,
.btn-add-page:hover {
  background: #2980b9;
  transform: scale(1.05);
}
.sections-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.section-item:hover {
  background: #ecf0f1;
}
.section-item.selected {
  background: #3498db;
  border-left-color: #2980b9;
  color: white;
}
.section-item.selected .section-name {
  color: white;
  font-weight: 600;
}
.section-item.selected .section-actions {
  visibility: visible;
}
.section-name {
  flex: 1;
  font-size: 13px;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-actions {
  display: flex;
  gap: 4px;
  visibility: hidden;
}
.section-item:hover .section-actions {
  visibility: visible;
}
.pages-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.page-item:hover {
  background: #ecf0f1;
}
.page-item.selected {
  background: #e8f4f8;
  border-left-color: #3498db;
}
.page-item.selected .page-name {
  color: #2c3e50;
  font-weight: 600;
}
.page-item.selected .page-actions {
  visibility: visible;
}
.page-name {
  flex: 1;
  font-size: 12px;
  color: #34495e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-actions {
  display: flex;
  gap: 4px;
  visibility: hidden;
}
.page-item:hover .page-actions {
  visibility: visible;
}
.page-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}
.editor-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  background: #f8f9fa;
}
.editor-header h4 {
  margin: 0;
  font-size: 13px;
  color: #2c3e50;
  font-weight: 600;
}
.editor-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.unsaved-indicator {
  font-size: 11px;
  color: #e74c3c;
  font-weight: 600;
}
.saved-indicator {
  font-size: 11px;
  color: #27ae60;
  font-weight: 600;
}
.btn-save {
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-save:hover:not(:disabled) {
  background: #229954;
}
.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.editor-textarea {
  flex: 1;
  border: none;
  padding: 20px;
  font-family:
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;
  font-size: 14px;
  color: #2c3e50;
  resize: none;
  outline: none;
  background: white;
  line-height: 1.6;
}
.editor-textarea::placeholder {
  color: #bdc3c7;
}
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: all 0.2s ease;
  border-radius: 3px;
}
.btn-rename:hover {
  background: #ffeaa7;
}
.btn-delete:hover {
  background: #fab1a0;
}
.btn-nav {
  background: #ecf0f1;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.btn-nav:hover {
  background: #bdc3c7;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 350px;
}
.modal-content h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #2c3e50;
  font-weight: 600;
}
.modal-content input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.modal-content input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}
.modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn-primary,
.btn-secondary {
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: #3498db;
  color: white;
}
.btn-primary:hover {
  background: #2980b9;
}
.btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
}
.btn-secondary:hover {
  background: #bdc3c7;
}
.no-section-selected,
.no-page-selected {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #95a5a6;
  text-align: center;
  padding: 40px;
}
.no-section-selected p,
.no-page-selected p {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
}
.section-rename-input,
.page-rename-input {
  display: flex;
  gap: 4px;
  align-items: center;
  width: 100%;
}
.section-rename-input input,
.page-rename-input input {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid #3498db;
  border-radius: 3px;
  font-size: 12px;
  margin: 0;
}
.btn-save-rename,
.btn-cancel-rename {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.btn-save-rename:hover {
  background: #d5f4e6;
  color: #27ae60;
}
.btn-cancel-rename:hover {
  background: #fadbd8;
  color: #c0392b;
}
.empty-message {
  text-align: center;
  color: #95a5a6;
  font-size: 12px;
  padding: 15px 10px;
  font-style: italic;
}
@media (max-width: 1024px) {
  .notebook-split-container {
    flex-direction: column;
  }
  .notebook-left-panel {
    width: 100%;
    max-height: 40%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  .notebook-right-panel {
    flex: 1;
  }
}
@media (max-width: 768px) {
  .notebook-left-panel {
    max-height: 50%;
  }
  .sections-container {
    flex: 0 1 auto;
    max-height: 150px;
  }
  .pages-container {
    flex: 0 1 auto;
    max-height: 150px;
  }
  .section-header h4,
  .pages-header h4 {
    font-size: 12px;
  }
  .editor-textarea {
    font-size: 13px;
    padding: 15px;
  }
}
.notes-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
  overflow: hidden;
}
.notes-textarea {
  flex: 1;
  border: none;
  padding: 0;
  font-family:
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;
  font-size: 14px;
  color: #2c3e50;
  resize: none;
  outline: none;
  background: transparent;
  line-height: 1.6;
}
.notes-textarea::placeholder {
  color: #bdc3c7;
}
.auto-save-badge {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.auto-save-badge.saving {
  color: #f39c12;
  background: #fef5e7;
}
.auto-save-badge.saved {
  color: #27ae60;
  background: #eafaf1;
}
.saving-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 100;
  border-radius: inherit;
}
.saving-blocker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  z-index: 50;
  cursor: not-allowed;
  border-radius: 4px;
}

/* src/components/notebook/search-results.css */
.search-results {
  max-height: 600px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  margin-top: 12px;
}
.search-results-empty {
  padding: 24px 12px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.search-results-title {
  font-weight: bold;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 12px;
}
.search-result-day {
  margin-bottom: 16px;
}
.result-day-header {
  font-weight: bold;
  font-size: 13px;
  color: #333;
  padding: 8px 0;
  border-left: 3px solid #3498db;
  padding-left: 8px;
  margin-bottom: 8px;
}
.result-section {
  margin-left: 8px;
  margin-bottom: 12px;
}
.result-section-name {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  padding: 6px 0;
  border-left: 2px solid #95de64;
  padding-left: 6px;
}
.result-item {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  margin-left: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: #333;
  background: white;
  border-left: 2px solid transparent;
}
.result-item:hover {
  background: #e6f7ff;
  border-left-color: #1890ff;
  transform: translateX(2px);
}
.result-page-icon {
  margin-right: 6px;
  flex-shrink: 0;
}
.result-page-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* src/pages/schedule.page.css */
.schedule-page-daily {
  height: 100vh;
  display: flex;
  background: #f5f5f5;
  padding: 20px;
  font-family:
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;
  position: relative;
}
.schedule-container {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.btn-toggle-sidebar {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 20;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-toggle-sidebar:hover {
  background: #f0f0f0;
  color: #1890ff;
  box-shadow: 0 2px 10px rgba(24, 144, 255, 0.2);
}
.calendar-sidebar {
  flex: 0 0 320px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  padding-top: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition:
    flex 0.3s ease,
    width 0.3s ease,
    padding 0.3s ease,
    opacity 0.3s ease;
}
.calendar-sidebar.collapsed {
  flex: 0 0 0px;
  width: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  border: none;
  box-shadow: none;
}
.daily-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-nav {
  background: #1890ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-nav:hover {
  background: #0050b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 80, 179, 0.3);
}
.date-display {
  text-align: center;
  flex: 1;
}
.date-display h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  text-transform: capitalize;
}
.date-large {
  margin: 12px 0 0 0;
  font-size: 18px;
  color: #666;
  font-weight: 500;
}
.badge-today {
  display: inline-block;
  background: #52c41a;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.today-button-container {
  display: flex;
  justify-content: center;
  min-height: 40px;
}
.btn-today {
  background: #faad14;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}
.btn-today:hover {
  background: #d48806;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 136, 6, 0.3);
}
.auto-save-indicator {
  padding: 12px 16px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}
.auto-save-indicator.saving {
  background: #e6f7ff;
  color: #0050b3;
  border: 1px solid #91d5ff;
}
.auto-save-indicator.saved {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
  animation: fadeInOut 2s ease-in-out;
}
.auto-save-indicator.error {
  background: #fff2f0;
  color: #d9363e;
  border: 1px solid #ffccc7;
}
@keyframes fadeInOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.notes-container {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.notes-textarea {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  font-family:
    "Monaco",
    "Menlo",
    "Courier New",
    monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  min-height: 400px;
  transition: border-color 0.3s ease;
}
.notes-textarea::placeholder {
  color: #ccc;
}
.notes-textarea:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}
.auto-save-badge {
  position: absolute;
  bottom: 35px;
  right: 35px;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  animation: slideInUp 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
@keyframes slideInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.auto-save-badge.saving {
  background: #e6f7ff;
  color: #0050b3;
  border: 1px solid #91d5ff;
}
.auto-save-badge.saved {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
  animation: slideInUp 0.3s ease, fadeOutAfter 2s ease-in 1s;
}
.auto-save-badge.error {
  background: #fff2f0;
  color: #d9363e;
  border: 1px solid #ffccc7;
}
@keyframes fadeOutAfter {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fadeInOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 968px) {
  .schedule-container {
    flex-direction: column;
  }
  .calendar-sidebar {
    flex: 0 0 auto;
    max-height: 400px;
  }
  .daily-header {
    flex-direction: column;
    gap: 15px;
  }
  .btn-nav {
    width: 100%;
  }
  .date-display h1 {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  .schedule-page-daily {
    padding: 10px;
  }
  .daily-header {
    padding: 15px;
  }
  .notes-container {
    padding: 15px;
  }
  .notes-textarea {
    min-height: 250px;
  }
  .date-display h1 {
    font-size: 24px;
  }
  .date-large {
    font-size: 14px;
  }
  .btn-nav,
  .btn-today,
  .btn-save {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* src/pages/chat.page.css */
.chat-layout {
  height: 100vh !important;
  display: flex !important;
  flex-direction: row !important;
}
.chat-layout .ant-layout-sider {
  background: #fff !important;
  border-right: 1px solid #f0f0f0;
  overflow-y: auto !important;
}
.chat-layout .ant-layout-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}
.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.chat-sidebar-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}
.chat-layout .ant-layout-sider .ant-menu-item {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  height: auto !important;
  min-height: 40px;
  line-height: 1.4 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.chat-layout .ant-layout-sider .ant-menu-title-content {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
.sidebar-unread-badge {
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}
.sidebar-typing-badge {
  color: #1890ff;
  font-size: 12px;
  animation: typingPulse 1.5s ease-in-out infinite;
}
@keyframes typingPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.chat-main-header {
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.chat-main-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f5f5f5;
}
.chat-date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 12px;
  position: relative;
}
.chat-date-separator::before,
.chat-date-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}
.chat-date-separator span {
  padding: 4px 14px;
  font-size: 12px;
  color: #888;
  font-weight: 500;
  background: #f5f5f5;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}
.chat-msg-row {
  display: flex;
  margin-bottom: 2px;
  align-items: flex-end;
  gap: 8px;
  animation: chatSlideIn 0.2s ease;
}
@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-msg-row.own {
  justify-content: flex-end;
}
.chat-msg-row.other {
  justify-content: flex-start;
}
.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
}
.chat-msg-bubble {
  max-width: 65%;
  padding: 10px 14px;
  position: relative;
  cursor: pointer;
  transition: filter 0.15s;
  word-break: break-word;
}
.chat-msg-bubble:hover {
  filter: brightness(0.96);
}
.chat-msg-bubble.own {
  background-color: #007AFF;
  color: white;
  border-radius: 18px 18px 2px 18px;
}
.chat-msg-bubble.other {
  background-color: #e5e5ea;
  color: #000;
  border-radius: 18px 18px 18px 2px;
}
.chat-msg-row.broadcast-style {
  justify-content: center !important;
  margin: 16px 0;
}
.chat-msg-bubble.broadcast {
  max-width: 75%;
  background:
    linear-gradient(
      135deg,
      rgba(233, 175, 49, 0.15),
      rgba(233, 175, 49, 0.08));
  border: 2px solid #e9af31;
  border-radius: 12px;
  color: #333;
  text-align: center;
  box-shadow: 0 2px 8px rgba(233, 175, 49, 0.15);
}
.chat-msg-bubble.broadcast .broadcast-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.chat-msg-bubble.selective {
  max-width: 75%;
  background:
    linear-gradient(
      135deg,
      rgba(52, 152, 219, 0.12),
      rgba(41, 128, 185, 0.08));
  border: 1px solid rgba(52, 152, 219, 0.4);
  border-radius: 12px;
  color: #333;
}
.chat-msg-sender {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  opacity: 0.85;
}
.chat-msg-reply {
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.chat-msg-reply.own {
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}
.chat-msg-reply.other {
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
}
.chat-msg-reply-author {
  font-weight: 600;
}
.chat-msg-reply-text {
  font-size: 10px;
  margin-top: 1px;
  opacity: 0.8;
}
.chat-msg-text {
  white-space: pre-wrap;
  line-height: 1.4;
}
.chat-msg-time {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-msg-actions {
  margin-top: 4px;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.15s;
}
.chat-msg-bubble:hover .chat-msg-actions {
  opacity: 1;
}
.chat-msg-attachment {
  margin-top: 8px;
  max-width: 280px;
  position: relative;
}
.chat-msg-attachment img {
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}
.chat-msg-attachment-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}
.chat-msg-attachment-file:hover {
  background: rgba(0, 0, 0, 0.1);
}
.chat-msg-attachment-icon {
  font-size: 28px;
  opacity: 0.8;
}
.chat-msg-attachment-name {
  font-weight: 600;
  font-size: 13px;
}
.chat-msg-attachment-size {
  font-size: 11px;
  opacity: 0.7;
}
.image-download-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.chat-msg-attachment:hover .image-download-overlay {
  opacity: 1;
}
.chat-reply-preview {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: #f0f5ff;
  border-left: 4px solid #1890ff;
  border-radius: 4px;
  margin-bottom: 8px;
  gap: 12px;
}
.chat-reply-preview-content {
  flex: 1;
  min-width: 0;
}
.chat-reply-preview-author {
  font-size: 12px;
  font-weight: 600;
  color: #1890ff;
}
.chat-reply-preview-text {
  font-size: 12px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-reply-preview-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
  padding: 4px;
  line-height: 1;
}
.chat-reply-preview-close:hover {
  color: #ff4d4f;
}
.chat-file-preview {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 12px;
}
.chat-file-preview-icon {
  font-size: 28px;
}
.chat-file-preview-info {
  flex: 1;
}
.chat-file-preview-name {
  font-weight: 600;
  font-size: 13px;
}
.chat-file-preview-size {
  font-size: 11px;
  color: #888;
}
.chat-file-preview-remove {
  background: #ff4d4f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.chat-input-area {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.chat-input-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-textarea {
  flex: 1;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  overflow-y: hidden;
  min-height: 38px;
  max-height: 160px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s;
}
.chat-textarea:focus {
  border-color: #1890ff;
}
.chat-textarea:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}
.chat-attach-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  color: #888;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.chat-attach-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}
.chat-attach-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chat-typing-indicator {
  padding: 4px 20px;
  font-size: 12px;
  color: #888;
  font-style: italic;
  min-height: 22px;
}
.chat-drag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 144, 255, 0.08);
  border: 3px dashed #1890ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}
.chat-drag-overlay-content {
  text-align: center;
  color: #1890ff;
  font-size: 18px;
  font-weight: 600;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.chat-drag-overlay-content .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}
.chat-agency-selector {
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.chat-agency-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
}
.chat-agency-checkboxes {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chat-agency-checkbox-label {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.15s;
}
.chat-agency-checkbox-label:hover {
  background: rgba(24, 144, 255, 0.06);
}
.chat-agency-checkbox-label input {
  margin-right: 6px;
  accent-color: #1890ff;
}
.chat-excel-table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0;
  font-size: 12px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.chat-excel-table th,
.chat-excel-table td {
  border: 1px solid #e0e0e0;
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}
.chat-excel-table th {
  background:
    linear-gradient(
      135deg,
      #e9af31,
      #f4c563);
  color: #203650;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.chat-excel-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.chat-excel-table tbody tr:hover {
  background: rgba(233, 175, 49, 0.1);
}
.chat-readonly-notice {
  padding: 12px 20px;
  background: #fffbe6;
  border-top: 1px solid #ffe58f;
  text-align: center;
  font-size: 13px;
  color: #ad8b00;
}
.chat-messages-area::-webkit-scrollbar {
  width: 6px;
}
.chat-messages-area::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages-area::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.chat-messages-area::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
@media (max-width: 768px) {
  .chat-msg-bubble {
    max-width: 85%;
  }
  .chat-input-form {
    gap: 4px;
  }
}

/* src/styles/theme.css */
:root {
  --brand-primary:#e9af31;
  --brand-dark:#203650;
  --text-on-dark:#ffffff;
  --bg-soft:#f5f7fb;
}
html,
body,
#root {
  height: 100%;
}
body {
  background:
    radial-gradient(
      1200px 800px at 10% -10%,
      rgba(233, 175, 49, 0.08) 0%,
      transparent 60%),
    radial-gradient(
      1000px 600px at 110% 10%,
      rgba(32, 54, 80, 0.08) 0%,
      transparent 55%),
    var(--bg-soft);
}
.ant-layout {
  background: transparent;
}
.content-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.ant-layout-header {
  background: var(--brand-dark) !important;
  color: var(--text-on-dark) !important;
}
.ant-layout-header .ant-typography,
.ant-layout-header .ant-btn-link,
.ant-layout-header .ant-alert-message,
.ant-layout-header .ant-alert-description {
  color: var(--text-on-dark) !important;
}
.ant-layout-sider {
  background: var(--brand-dark) !important;
}
.ant-menu-dark .ant-menu-item-selected {
  background: rgba(233, 175, 49, 0.18) !important;
}
.ant-menu-dark .ant-menu-item-selected,
.ant-menu-dark .ant-menu-item-selected a,
.ant-menu-dark .ant-menu-item-selected span {
  color: var(--brand-primary) !important;
}
.ant-btn-primary {
  box-shadow: 0 6px 16px rgba(233, 175, 49, 0.3);
}
/*! Bundled license information:

normalize.css/normalize.css:
  (*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css *)
*/
