/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --accent-color: #2c3e50;
  --accent-hover: #34495e;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 500;
}

/* Header */
.header {
  background: var(--white);
  padding: 1.5rem 3rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

.logo span {
  font-weight: 300;
}

/* Tab Navigation */
.tab-nav-container {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 73px;
  z-index: 99;
}

.tab-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  gap: 0;
}

.tab-btn {
  flex: 1;
  max-width: 300px;
  padding: 1.25rem 2rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  background: var(--bg-color);
  color: var(--text-color);
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: var(--white);
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-label {
  font-weight: 500;
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Section Styling */
.section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.35rem;
  color: var(--accent-color);
}

/* Buttons */
.btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-color);
}

/* Calendar */
.calendar-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: var(--bg-color);
}

.calendar-month {
  font-size: 1.15rem;
  font-family: 'Georgia', serif;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.calendar-day {
  min-height: 100px;
  padding: 0.5rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
  transition: background 0.2s ease;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover {
  background: #fafafa;
}

.calendar-day.other-month {
  background: #fafafa;
}

.calendar-day.other-month .day-number {
  color: #ccc;
}

.calendar-day.today {
  background: #f0f7ff;
}

.calendar-day.today .day-number {
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-number {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.appointment {
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment:hover {
  transform: translateX(2px);
}

.appointment.consultation {
  background: #e8f4fd;
  color: #1a73e8;
  border-left: 3px solid #1a73e8;
}

.appointment.hearing {
  background: #fce8e8;
  color: #d32f2f;
  border-left: 3px solid #d32f2f;
}

.appointment.internal {
  background: #e8f5e9;
  color: #388e3c;
  border-left: 3px solid #388e3c;
}

.appointment.mediation {
  background: #fff3e0;
  color: #f57c00;
  border-left: 3px solid #f57c00;
}

.appointment.signing {
  background: #f3e5f5;
  color: #7b1fa2;
  border-left: 3px solid #7b1fa2;
}

/* Document Cards */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.document-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.document-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-color);
  transform: translateY(-2px);
}

.document-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.document-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.document-description {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.document-meta {
  font-size: 0.75rem;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* Legal Research Sections */
.research-section {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.research-section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-section-title {
  font-size: 1.1rem;
  color: var(--accent-color);
}

.research-list {
  list-style: none;
}

.research-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s ease;
  cursor: grab;
}

.research-item:last-child {
  border-bottom: none;
}

.research-item:hover {
  background: #fafafa;
}

.research-item.dragging {
  opacity: 0.5;
  background: #e8f4fd;
}

.research-item.hidden-item {
  opacity: 0.6;
  border-left: 3px solid #9e9e9e;
  background: #fafafa;
}

.research-item.hidden-item .research-item-content {
  color: #757575;
}

.drag-handle {
  color: #ccc;
  cursor: grab;
  padding: 0.25rem;
}

.drag-handle:active {
  cursor: grabbing;
}

.research-item-content {
  flex: 1;
}

.research-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.research-item-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.research-item-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

.visibility-toggle {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.visibility-toggle:hover {
  background: var(--bg-color);
}

.visibility-toggle.hidden {
  background: #fff3e0;
  border-color: #f57c00;
  color: #f57c00;
}

.visibility-toggle.show-btn {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #4caf50;
}

.visibility-toggle.show-btn:hover {
  background: #c8e6c9;
}

/* Research Gate */
.research-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.research-gate.hidden {
  display: none;
}

.gate-content {
  text-align: center;
  max-width: 500px;
  padding: 3rem;
}

.gate-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.gate-title {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.gate-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Research Content */
.research-content.hidden {
  display: none;
}

/* Analysis Section */
.analysis-section {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.analysis-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analysis-content {
  padding: 1.5rem;
  min-height: 200px;
}

.analysis-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: #888;
  text-align: center;
}

.analysis-placeholder p {
  max-width: 400px;
  line-height: 1.6;
}

.analysis-result {
  line-height: 1.8;
}

.analysis-result h4 {
  color: var(--accent-color);
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.1rem;
}

.analysis-result h4:first-child {
  margin-top: 0;
}

.analysis-result ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.analysis-result li {
  margin-bottom: 0.5rem;
}

.analysis-result .law-ref {
  background: #e8f4fd;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #1a73e8;
}

.analysis-result .case-ref {
  background: #f3e5f5;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #7b1fa2;
}

/* Modal */
.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;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 1.25rem;
  color: var(--accent-color);
  padding-right: 1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  color: #666;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-footer .btn {
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Appointment Detail Modal */
.appointment-detail {
  margin-bottom: 1.5rem;
}

.appointment-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 0.25rem;
}

.appointment-detail-value {
  font-size: 1rem;
  color: var(--text-color);
}

.appointment-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.transcript-box {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1001;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* Login Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.login-overlay.hidden {
  display: none;
}

.login-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.login-logo span {
  font-weight: 300;
}

.login-subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.login-box .form-group {
  text-align: left;
}

.login-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.login-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  min-height: 1.25rem;
}

/* API Status Indicator */
.api-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  animation: pulse 1.5s infinite;
}

.status-dot.connected {
  background: #4caf50;
  animation: none;
}

.status-dot.error {
  background: #f44336;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.spinner.large {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Button with spinner */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border-color: rgba(255,255,255,0.3);
  border-top-color: white;
}

.btn-text.hidden,
.btn-spinner.hidden {
  display: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Stats Grid */
.stats-info {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stats-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.85rem;
  color: #888;
}

.sources-list {
  font-size: 0.9rem;
  color: #666;
}

.error-text {
  color: #d32f2f;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.loading-state.hidden {
  display: none;
}

.loading-text {
  color: #666;
  font-size: 1rem;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.search-input {
  flex: 1;
  font-size: 1rem;
}

/* Fragments */
.fragments-count {
  padding: 0.75rem 1.5rem;
  background: var(--bg-color);
  font-size: 0.9rem;
  color: #666;
}

.drag-hint {
  font-size: 0.8rem;
  color: #888;
}

.research-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.fragment-source {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.fragment-page {
  font-size: 0.8rem;
  color: #888;
}

.fragment-score {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 500;
}

.fragment-score.high {
  background: #e8f5e9;
  color: #2e7d32;
}

.fragment-score.medium {
  background: #fff3e0;
  color: #ef6c00;
}

.fragment-score.low {
  background: #fce4ec;
  color: #c62828;
}

/* Analysis Loading */
.analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  text-align: center;
}

.analysis-loading p {
  color: #666;
  margin: 0;
}

.loading-detail {
  font-size: 0.85rem;
  color: #999;
}

/* Analysis Result */
.analysis-query {
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.analysis-text {
  line-height: 1.8;
}

.analysis-text p {
  margin-bottom: 1rem;
}

.analysis-sources {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.analysis-sources ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.analysis-sources li {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.analysis-error {
  text-align: center;
  padding: 2rem;
  color: #d32f2f;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  max-width: 400px;
  margin: 1rem 0;
}

.progress-bar-wrapper {
  background: var(--border-color);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  border-radius: 8px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-bar.indeterminate {
  width: 30%;
  animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
  0% {
    margin-left: -30%;
  }
  100% {
    margin-left: 100%;
  }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.eta-display {
  font-weight: 500;
  color: var(--accent-color);
}

.progress-percentage {
  font-weight: 600;
  color: var(--text-color);
}

/* Loading Stages */
.loading-stages {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.loading-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.loading-stage.active {
  opacity: 1;
}

.loading-stage.completed {
  opacity: 0.7;
}

.loading-stage.completed .stage-icon {
  color: #4caf50;
}

.stage-icon {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.stage-label {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

.loading-stage.active .stage-label {
  color: var(--accent-color);
  font-weight: 500;
}

/* Loading Message Animation */
.loading-message {
  text-align: center;
  min-height: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  animation: fadeMessage 0.5s ease;
}

@keyframes fadeMessage {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Loading State */
.loading-state-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.loading-state-enhanced.hidden {
  display: none;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #888;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Context info */
.context-info {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: #666;
}

/* Delete button */
.btn-danger {
  background: #d32f2f;
  color: white;
}

.btn-danger:hover {
  background: #b71c1c;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-content {
    padding: 1.5rem;
  }

  .calendar-day {
    min-height: 80px;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    width: 95%;
    max-height: 90vh;
  }
}
