/* Mobile-Only Base Style */
:root {
  --primary-color: #007bff;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --nav-height: 60px;
}

* {
  box-sizing: border-box;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  overflow: hidden;
}

.app-container {
  display: grid;
  grid-template-rows: 50px 1fr var(--nav-height);
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.app-container > header { grid-row: 1; }
.app-container > main,
.app-container > #login-screen { grid-row: 2; }
.app-container > footer { grid-row: 3; }

header {
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
header h1 {
  font-size: 1.2rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0;
  cursor: pointer;
}

#nav-pos {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: bold;
}

main {
  overflow-y: auto;
  padding: 15px;
  -webkit-overflow-scrolling: touch;
}

footer {
  background: white;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
footer button {
  background: none;
  border: none;
  padding: 10px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  color: var(--primary-color);
}
footer button:disabled {
  color: #ccc;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.thumbnail-item {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.btn-delete-file {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  z-index: 5;
}

.case-list {
  margin-bottom: 20px;
}

.case-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}
.case-card .case-card-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.case-card h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}
.case-card .case-card-actions {
  flex-shrink: 0;
  margin-left: 10px;
  display: flex;
  gap: 8px;
}

.btn-discard-list {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
}

.btn-dictate {
  background: #e9ecef;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.btn-dictate.recording {
  background: #ffc107;
  animation: pulse 1.5s infinite;
}

.badge {
  display: inline-block;
  background-color: #6c757d;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 5px;
}
.badge.status-draft {
  background-color: #ffc107;
  color: #343a40;
}
.badge.status-synced {
  background-color: #28a745;
  color: white;
}
.badge.status-syncing {
  background-color: #17a2b8;
  color: white;
}

.empty-state {
  text-align: center;
  color: #888;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
.form-group textarea {
  height: 100px;
  resize: vertical;
}

.input-with-action {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.summary-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.search-results-dropdown {
  background: white;
  border: 1px solid #ccc;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  z-index: 100;
  width: calc(100% - 30px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-item {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-item:hover {
  background-color: #f0f7ff;
}
.search-item.selected {
  background-color: #e3f2fd;
  color: var(--primary-color);
  font-weight: bold;
}

.check-mark {
  color: var(--primary-color);
  font-weight: bold;
}

.tag-selection-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.tag-pill {
  background: #e9ecef;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 5px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tag-pill.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.tag-pill.add-tag-btn {
  background: white;
  color: var(--primary-color);
  border: 1px dashed var(--primary-color);
  font-weight: normal;
  padding: 4px 15px;
}

.remove-tag {
  margin-left: 8px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.modal-content header {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: var(--text-color);
  box-shadow: none;
  min-width: unset;
  overflow: unset;
}
.modal-content .list-container {
  flex: 1;
  overflow-y: auto;
}

.case-sections-overview {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.section-overview-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-overview-item h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-color);
}
.section-overview-item .btn-open-section {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.section-overview-item .btn-open-section:hover {
  background-color: #0056b3;
}

.progress-container {
  width: 100%;
  background-color: #e9ecef;
  border-radius: 6px;
  height: 12px;
  margin-top: 15px;
  overflow: hidden;
  display: none;
}

.progress-bar {
  height: 100%;
  background-color: #28a745;
  width: 0%;
  transition: width 0.3s ease;
}

#connectivity-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: auto;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
#connectivity-indicator.online {
  background-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
}
#connectivity-indicator.offline {
  background-color: #dc3545;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.8);
}

#install-banner,
#ios-install-banner {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 1000;
}

#update-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

#camera-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}
#camera-overlay video {
  flex: 1;
  object-fit: cover;
  width: 100%;
}
.camera-overlay-hud {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}
.camera-overlay-counter {
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}
.camera-overlay-zoom {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1;
}
.camera-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
}
.camera-zoom-btn.active {
  background: rgba(255,255,255,0.9);
  color: #000;
  border-color: #fff;
}

.camera-overlay-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 30px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.camera-overlay-shutter {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.camera-overlay-shutter.flash {
  background: #fff;
}
.camera-overlay-close,
.camera-overlay-done {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-overlay-close {
  background: rgba(220,53,69,0.8);
  color: #fff;
}
.camera-overlay-done {
  background: rgba(40,167,69,0.8);
  color: #fff;
}

.storage-usage-info {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 10px;
  text-align: right;
}
.storage-usage-info.warning {
  color: #dc3545;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}/*# sourceMappingURL=style.css.map */