@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg2: #ffffff;
  --bg3: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --green: #10b981;
  --blue: #3b82f6;
  --red: #ef4444;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

html {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* ===== HEADER ===== */
.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-logo {
  width: auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.header-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 1px;
}

.header-back {
  background: var(--bg3);
  border: none;
  color: var(--text2);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.header-back:hover {
  background: var(--border);
  color: var(--text);
}

/* ===== HOME SCREEN ===== */
.home-hero {
  background: var(--bg2);
  padding: 24px 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* removed branding */

.home-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.home-desc {
  font-size: 14px;
  color: var(--text2);
  margin-top: 8px;
  line-height: 1.5;
}

.home-content {
  padding: 20px 16px;
  flex: 1;
}

.btn-primary {
  width: 100%;
  background: #000000;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  width: 100%;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  border: 1px solid #000000;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-danger {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-danger:active {
  transform: scale(0.97);
}

/* ===== PROJECTS LIST ===== */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 10px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-card:active {
  transform: scale(0.98);
  border-color: var(--accent);
}

.project-card-icon {
  width: 44px;
  height: 44px;
  background: #000000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  flex-shrink: 0;
}

.project-card-icon.complete {
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
}

.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-card-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 3px;
}

.project-card-progress {
  text-align: right;
  flex-shrink: 0;
}

.progress-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.progress-chip.done {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.progress-chip.partial {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

.progress-chip.new {
  background: #f3f4f6;
  color: #000000;
  border: 1px solid #d1d5db;
}

/* ===== FORM SCREEN ===== */
.form-content {
  padding: 20px 16px;
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding-right: 12px;
  transition: border-color 0.2s;
}

.form-input-wrapper:focus-within {
  border-color: var(--accent);
}

.form-input-wrapper .form-input {
  border: none;
  background: transparent;
  flex: 1;
}

.form-input-wrapper .unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  user-select: none;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text3);
}

/* ===== STEPS SCREEN ===== */
.progress-bar-container {
  background: var(--bg2);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-bar-label span:first-child {
  color: var(--text2);
  font-weight: 500;
}

.progress-bar-label span:last-child {
  color: var(--accent);
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #000000;
  transition: width 0.4s ease;
}

.steps-list {
  padding: 12px 16px;
  flex: 1;
  overflow-y: auto;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.step-item.done {
  border-color: #000000;
  background: #f9fafb;
}

.step-item.active-step {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.step-item.conditional {
  border-style: dashed;
}

/* removed inline expansion */

.step-header {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.capture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  /* Bottom sheet style */
  opacity: 0;
  transition: opacity 0.3s;
}

.capture-overlay.show {
  display: flex;
  opacity: 1;
}

.capture-menu {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.capture-overlay.show .capture-menu {
  transform: translateY(0);
}

.capture-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.capture-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.capture-close {
  background: var(--bg3);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.comparison-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text3);
  text-align: center;
}

.comparison-img-wrap {
  aspect-ratio: 4/3;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-img-wrap .empty-photo {
  font-size: 32px;
  opacity: 0.3;
}

.step-options-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text2);
}

.step-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.opt-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.opt-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.inline-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.inline-photo-btn {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.inline-photo-btn:active {
  background: var(--bg2);
}

.inline-confirm-btn {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
}

.inline-confirm-btn:disabled {
  opacity: 0.3;
}

.note-group {
  display: none !important;
}

.step-item:active {
  transform: scale(0.98);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  flex-shrink: 0;
  transition: all 0.25s;
}

.step-item.done .step-num {
  background: #000000;
  border-color: #000000;
  color: #fff;
  font-size: 18px;
}

.step-item.active-step .step-num {
  background: #000000;
  border-color: #000000;
  color: #fff;
}

.step-info {
  flex: 1;
  min-width: 0;
}

.step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.step-desc {
  font-size: 12px;
  color: var(--text2);
  margin-top: 3px;
  line-height: 1.4;
}

.step-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.badge-done {
  background: #000000;
  color: #ffffff;
}

.badge-cond {
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
}

.badge-req {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #000000;
}

.step-arrow {
  color: var(--text3);
  font-size: 16px;
  flex-shrink: 0;
}

.steps-footer {
  padding: 14px 16px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

/* ===== CAMERA SCREEN ===== */
.camera-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.step-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num-lg {
  width: 44px;
  height: 44px;
  background: #000000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.step-num-lg.cond {
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
}

.step-info-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.step-info-card p {
  font-size: 13px;
  color: var(--text2);
  margin-top: 5px;
  line-height: 1.5;
}

.cond-notice {
  margin-top: 10px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: #000000;
  line-height: 1.5;
}

.photo-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg2);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.photo-zone:active {
  border-color: var(--accent);
}

.photo-zone.has-photo {
  border-style: solid;
  border-color: var(--green);
}

.photo-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 340px;
  border-radius: calc(var(--radius) - 2px);
}

.photo-zone-placeholder {
  text-align: center;
  padding: 20px;
}

.photo-zone-placeholder .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.photo-zone-placeholder p {
  color: var(--text2);
  font-size: 14px;
}

.photo-zone-placeholder small {
  color: var(--text3);
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.photo-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.photo-btn.camera {
  background: rgba(15, 75, 155, 0.15);
  /* Mavi transparan arka plan */
  border-color: rgba(15, 75, 155, 0.4);
  /* Mavi transparan border */
  color: var(--accent);
}

.photo-btn:active {
  transform: scale(0.96);
}

.confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.confirm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.confirm-btn:not(:disabled):active {
  transform: scale(0.97);
}

.skip-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 13px;
  font-weight: 500;
  padding: 12px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
  margin-top: 4px;
}

.skip-btn:hover {
  color: var(--text2);
}

/* ===== SUMMARY SCREEN ===== */
.summary-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.summary-hero {
  text-align: center;
  padding: 28px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.summary-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.summary-hero h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.summary-hero p {
  font-size: 14px;
  color: var(--text2);
  margin-top: 6px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}

.summary-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.summary-photo-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.summary-photo-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.summary-photo-info {
  padding: 8px 10px;
}

.summary-photo-num {
  font-size: 11px;
  color: var(--text3);
}

.summary-photo-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-photo-item.missing {
  opacity: 0.4;
}

.missing-photo {
  width: 100%;
  height: 120px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.download-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  margin-bottom: 10px;
}

.download-btn:active {
  transform: scale(0.97);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: var(--green);
  color: var(--green);
}

.toast.error {
  border-color: var(--red);
  color: var(--red);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* ===== CONFIRM MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 24px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEnter {
  to {
    transform: translateY(0);
  }
}

.modal h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.modal p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.modal-cancel {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border) !important;
}

.modal-confirm {
  background: var(--red);
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-item,
.project-card {
  animation: fadeIn 0.3s ease both;
}

.step-item:nth-child(1) {
  animation-delay: 0.03s;
}

.step-item:nth-child(2) {
  animation-delay: 0.06s;
}

.step-item:nth-child(3) {
  animation-delay: 0.09s;
}

.step-item:nth-child(4) {
  animation-delay: 0.12s;
}

.step-item:nth-child(5) {
  animation-delay: 0.15s;
}

.step-item:nth-child(6) {
  animation-delay: 0.18s;
}

.step-item:nth-child(7) {
  animation-delay: 0.21s;
}

.step-item:nth-child(8) {
  animation-delay: 0.24s;
}

/* Pagination */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px;
}

.btn-pagination {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.btn-pagination:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-pagination:not(:disabled):hover {
  background: var(--bg3);
}

.page-info {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

/* Delete Button on Card */
.btn-delete-card {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-delete-card:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* Example Photo */
.example-container {
  background: var(--bg2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language Selector */
.lang-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lang-selector button {
  flex: 1;
  padding: 14px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-selector button:active {
  background: var(--bg3);
  transform: scale(0.95);
}

.lang-selector button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.example-header {
  padding: 8px 12px;
  background: var(--bg3);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
}

.example-close {
  background: none;
  border: none;
  color: var(--text3);
  padding: 4px;
  cursor: pointer;
  font-size: 16px;
}

.example-container img {
  width: 100%;
  display: block;
  max-height: 300px;
  object-fit: contain;
  background: #000;
}

/* ===== FULLSCREEN VIEWER ===== */
.fullscreen-viewer {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000 !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.fullscreen-viewer.show {
  display: flex !important;
  opacity: 1 !important;
}

.viewer-content {
  width: auto;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.fullscreen-viewer.show .viewer-content {
  transform: scale(1);
}

.viewer-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10000;
}

.viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ===== LOGIN SCREEN ===== */
.login-bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}

.login-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
}

#screen-login {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: #ffffff;
}

.login-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: loginCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.lang-selector {
  display: flex;
  background: var(--bg3);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  gap: 4px;
}

.lang-selector button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.lang-selector button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.lang-selector button.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-icon-box {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text3);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input-wrap:focus-within {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.login-input-icon {
  color: var(--text3);
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--accent);
}

.login-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
}

.login-pw-toggle {
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-left: 8px;
  transition: color 0.2s;
}

.login-pw-toggle:hover {
  color: var(--accent);
}

.login-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
}

.login-btn:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.login-btn:active {
  transform: scale(0.98);
}


.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 24px;
}

/* ===== ADMIN SCREEN ===== */
#screen-admin {
  background: #f5f5f5;
  overflow-y: auto;
  flex-direction: column;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.admin-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.admin-header-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 1px;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-logout-btn:hover {
  background: #e5e7eb;
}

.admin-logout-btn:active {
  transform: scale(0.97);
}

.admin-map-wrap {
  width: 100%;
  height: 320px;
  position: relative;
  border-bottom: 3px solid #1d4ed8;
  flex-shrink: 0;
}

#admin-map {
  width: 100%;
  height: 100%;
}

.admin-controls {
  background: #ffffff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.2s, background 0.2s;
}

.admin-search-wrap:focus-within {
  border-color: #3b82f6;
  background: #eff6ff;
}

.admin-search-icon {
  font-size: 15px;
  opacity: 0.5;
  flex-shrink: 0;
  margin-right: 8px;
}

.admin-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  padding: 12px 0;
}

.admin-search-input::placeholder {
  color: var(--text3);
}

.admin-search-clear {
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}

.admin-search-clear:hover {
  color: var(--text);
}

.admin-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.admin-filter-bar::-webkit-scrollbar {
  display: none;
}

.admin-filter-btn {
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-filter-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

.admin-filter-btn:hover:not(.active) {
  background: #e5e7eb;
}

.admin-list-wrap {
  padding: 16px;
  flex: 1;
}

.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-list-count {
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
}

.admin-project-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-project-card:active {
  transform: scale(0.98);
  border-color: #3b82f6;
}

.admin-project-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.admin-card-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.admin-card-status-dot.done {
  background: #22c55e;
}

.admin-card-status-dot.progress {
  background: #f59e0b;
}

.admin-card-status-dot.new {
  background: #9ca3af;
}

.admin-card-info {
  flex: 1;
  min-width: 0;
}

.admin-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card-meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 3px;
}

.admin-card-coords {
  font-size: 11px;
  color: #3b82f6;
  margin-top: 3px;
  font-family: monospace;
}

.admin-card-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
}

.admin-card-badge.done {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.admin-card-badge.progress {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.admin-card-badge.new {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.admin-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text2);
}

.admin-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.admin-empty-state p {
  font-size: 14px;
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
  display: flex;
  background: var(--bg2);
  padding: 8px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn.active {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

/* ===== USER MGMT ===== */
.admin-card-mgmt {
  background: var(--bg2);
  padding: 20px;
  margin: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-user-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.admin-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.admin-user-role {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  margin-top: 2px;
}

.admin-user-delete {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HOLOGRAM UPLOAD OVERLAY ===== */
.hologram-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hologram-overlay.show {
  display: flex !important;
  opacity: 1 !important;
}

.hologram-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: hologramFloat 3s infinite ease-in-out;
}

.hologram-spinner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #00f7ff;
  border-bottom-color: #00f7ff;
  animation: hologramSpin 2s linear infinite;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.4), inset 0 0 20px rgba(0, 247, 255, 0.4);
  position: relative;
}

.hologram-spinner::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 247, 255, 0.6);
  animation: hologramSpin reverse 3s linear infinite;
}

.hologram-text {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  color: #00f7ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.8);
  animation: hologramPulse 1.5s infinite alternate;
}

.hologram-percentage {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 247, 255, 0.9);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@keyframes hologramSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes hologramPulse {
  0% {
    opacity: 0.6;
    text-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(0, 247, 255, 1);
  }
}

@keyframes hologramFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}