@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap";

/* src/app/styles.css */
:root {
  --primary: #1d5c63;
  --primary-light: #2c858f;
  --secondary: #edf2ec;
  --accent: #b44d31;
  --text-main: #173133;
  --text-muted: #5e7779;
  --bg-gradient-1: #f4f7f5;
  --bg-gradient-2: #e3ece6;
  --panel-bg: rgba(255, 255, 255, 0.8);
  --panel-border: rgba(255, 255, 255, 0.5);
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
}
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      var(--bg-gradient-1),
      transparent 80%),
    linear-gradient(
      135deg,
      var(--bg-gradient-1) 0%,
      var(--bg-gradient-2) 100%);
}
#app-root {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
.sidebar {
  width: 550px;
  flex-shrink: 0;
  background: white;
  border-right: 2px solid #cbd5e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
}
.resizer {
  width: 6px;
  background-color: transparent;
  cursor: col-resize;
  flex-shrink: 0;
  z-index: 101;
  transition: background-color 0.2s;
  border-left: 1px solid transparent;
}
.resizer:hover,
.resizer:active {
  background-color: var(--primary-light);
}
.sidebar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: fixed;
}
.sidebar-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e0;
  cursor: pointer;
  position: sticky;
  top: 0;
  color: var(--primary);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-table th:hover {
  background: #e2e8f0;
}
.col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  z-index: 10;
  transition: background 0.2s;
}
.col-resizer:hover,
.col-resizer:active {
  background: var(--primary-light);
}
.sidebar-table th.dragging {
  opacity: 0.5;
  background: #cbd5e0;
}
.sidebar-table th.drag-over {
  border-left: 3px solid var(--primary);
}
.sidebar-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #edf2f7;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-table tr {
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-table tr:hover {
  background: #f8fafc;
}
.sidebar-table tr.active {
  background: rgba(29, 92, 99, 0.08);
  border-left: 3px solid var(--primary);
}
.sidebar-header {
  padding: 1.5rem 1.25rem;
  background:
    linear-gradient(
      180deg,
      #f8fafc 0%,
      #f1f5f9 100%);
  border-bottom: 1px solid #d1d9e0;
}
.sidebar-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.action-btn {
  background: white;
  border: 1px solid #cbd5e0;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}
.action-btn:hover {
  background: #f8fafc;
  border-color: var(--primary-light);
  color: var(--primary);
}
.sidebar-search {
  padding: 0 1.25rem 1rem 1.25rem;
  background:
    linear-gradient(
      180deg,
      #f1f5f9 0%,
      white 100%);
  border-bottom: 1px solid #edf2f7;
}
.search-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 92, 99, 0.1);
}
.patient-list-container {
  flex: 1;
  overflow: auto;
}
.patient-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  transition: all 0.2s;
}
.patient-item:hover {
  background: rgba(255, 255, 255, 0.5);
}
.patient-item.active {
  background: white;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.patient-item .name {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}
.patient-item .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}
.main-header {
  background: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-header h1 {
  margin: 0;
  font-size: 1.5rem;
}
.clinical-tabs {
  background: white;
  padding: 0 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0;
  column-gap: 1.5rem;
}
.tab-item.drag-over {
  background: rgba(49, 130, 206, 0.08);
  border-left: 2px solid var(--primary);
}
.tab-item.dragging {
  opacity: 0.4;
}
.tab-item {
  padding: 0.75rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.tab-item:hover {
  color: var(--primary);
}
.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.view-container {
  flex: 1;
  overflow: hidden;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.split-pane {
  display: flex;
  height: 100%;
  gap: 0;
}
.inner-resizer {
  width: 6px;
  flex-shrink: 0;
  background: transparent;
  cursor: col-resize;
  transition: background 0.2s;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}
.inner-resizer:hover,
.inner-resizer.active {
  background: var(--primary-light);
}
.date-sidebar {
  width: 180px;
  min-width: 80px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-y: auto;
}
.date-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  font-size: 0.85rem;
}
.date-item:hover {
  background: #f8fafc;
}
.date-item.active {
  background: var(--primary);
  color: white;
}
.detail-content {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-y: auto;
}
.context-menu {
  position: fixed;
  background: white;
  border: 1px solid #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 1000;
  min-width: 180px;
  display: none;
}
.context-menu-item {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: #2d3748;
  cursor: pointer;
}
.context-menu-item:hover {
  background: #edf2f7;
  color: #1d5c63;
}
.patient-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.patient-table th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #edf2f7;
}
.patient-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #edf2f7;
}
/*# sourceMappingURL=app.css.map */
