/* eAdvokat — Application styles */

/* Layout */
body { font-size: 0.9rem; }

#ea-sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding-bottom: 2rem;
}

#ea-sidebar .nav-link {
  color: #333;
  border-radius: 0.375rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.1rem;
}

#ea-sidebar .nav-link:hover { background: #e9ecef; }
#ea-sidebar .nav-link.active { background: #212529; color: #fff; }

@media (max-width: 767.98px) {
  #ea-sidebar { position: static; height: auto; width: 100%; }
  #ea-sidebar .nav-link { padding: 0.6rem 1rem; font-size: 1rem; }
}

/* Tables */
.table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table td  { vertical-align: middle; }

/* Voice panel */
.voice-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 340px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
  padding: 1rem;
  z-index: 1050;
}

.voice-transcript {
  min-height: 40px;
  background: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #495057;
  border: 1px solid #dee2e6;
}

/* Stat cards */
#dashboard-stats .card { transition: transform 0.15s; }
#dashboard-stats .card:hover { transform: translateY(-2px); }

/* FullCalendar overrides */
.fc-event { cursor: pointer; }
.fc-toolbar-title { font-size: 1.1rem !important; }

/* Case detail — timeline */
.ea-timeline {
  position: relative;
  padding-left: 2.5rem;
}
.ea-timeline::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: #dee2e6;
}
.ea-timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.ea-timeline-dot {
  position: absolute;
  left: -1.85rem;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
}

/* Print for troškovnik */
@media print {
  #ea-sidebar, nav.navbar, .btn, .modal { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
}

/* Filter checkboxes — show × when active */
.btn-check:checked + .btn::after {
  content: ' ×';
  font-weight: 700;
  opacity: 0.75;
}

/* Session expiry visual signal */
@keyframes ea-pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.navbar-brand.session-expired,
.navbar-brand.session-expired i {
  color: #dc3545 !important;
  animation: ea-pulse-red 1.5s ease-in-out infinite;
}
#sp-header { transition: background-color 0.3s ease; }
#sp-header.session-expired { background-color: #991b1b !important; }
