/* ==========================================================================
   CSS STYLESHEET - ÚKLIDY 4U APARTMÁNY
   Design: Liquid Glassmorphism, Elegant Minimalist, Light-Gray & Grey Fonts
   ========================================================================== */

:root {
  --bg-color: #F3F4F6;
  --text-main: #4B5563;
  --text-dark: #1F2937;
  --text-light: #9CA3AF;
  --accent-color: #10B981;
  --accent-light: #D1FAE5;
  --accent-dark: #065F46;
  
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  
  --btn-default: rgba(255, 255, 255, 0.7);
  --btn-default-border: rgba(255, 255, 255, 0.8);
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* App Wrapper for Centering on Large Screens */
.app-container {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Views Management */
.view {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.view.active {
  display: flex;
  opacity: 1;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-padding {
  padding: 20px;
}

.margin-bottom {
  margin-bottom: 16px;
}

.margin-top {
  margin-top: 16px;
}

/* ==========================================================================
   1. LOGIN SCREEN (PIN DISPLAY & KEYBOARD)
   ========================================================================== */
#view-login {
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 30px 24px;
  text-align: center;
}

.logo-area {
  margin-bottom: 24px;
}

.house-icon-wrapper {
  background: rgba(16, 185, 129, 0.08);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.login-card h1 {
  font-weight: 400;
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-light);
}

/* PIN dots display */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--text-light);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.active {
  background: var(--text-main);
  border-color: var(--text-main);
  transform: scale(1.25);
}

.error-msg {
  color: #EF4444;
  font-size: 14px;
  margin-bottom: 16px;
  height: 20px;
  font-weight: 400;
}

.hide {
  opacity: 0;
  pointer-events: none;
}

/* PIN Keyboard layout */
.pin-keyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
  margin-top: 12px;
}

.pin-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.1s ease;
}

.pin-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.pin-btn.btn-action {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   2. APP HEADER & LAYOUTS
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-left h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.user-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 2px;
}

.admin-badge {
  color: #1E3A8A;
  background: #DBEAFE;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #EF4444;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:active {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(0.95);
}

.btn-secondary {
  background: var(--btn-default);
  border: 1px solid var(--btn-default-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s;
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(0.95);
}

.content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Form inputs & selections */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: all 0.2s;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--text-light);
  background: rgba(255, 255, 255, 0.7);
}

.form-textarea {
  resize: none;
}

/* Note box */
.note-box {
  border-left: 3px solid var(--text-light);
  padding: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.note-title {
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
}

/* ==========================================================================
   3. CHECKLIST VIEW (ITEMS & UPLOADS)
   ========================================================================== */
.checklist-section {
  padding: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.section-icon {
  font-size: 20px;
}

.section-header h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Beautiful Rounded Checkbox */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  position: relative;
}

.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  flex-shrink: 0;
  position: relative;
  top: 2px;
  height: 22px;
  width: 22px;
  background-color: rgba(75, 85, 99, 0.15);
  border: 1.5px solid rgba(75, 85, 99, 0.45);
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover/active effects */
.check-label:active .custom-checkbox {
  transform: scale(0.9);
}

.check-label input[type="checkbox"]:checked ~ .custom-checkbox {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Checkmark check symbol */
.custom-checkbox:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-label input[type="checkbox"]:checked ~ .custom-checkbox:after {
  display: block;
}

.task-text, .setting-text {
  font-size: 14px;
  color: var(--text-main);
  transition: color 0.2s;
  user-select: none;
}

.check-label input[type="checkbox"]:checked ~ .task-text {
  color: var(--text-light);
  text-decoration: line-through;
}

/* Photo Upload Section */
.photo-upload-area {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.photo-btn {
  flex: 1;
  cursor: pointer;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.photo-btn-content {
  background: rgba(255, 255, 255, 0.3);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-main);
  transition: all 0.2s;
}

.photo-btn-content:active {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0.98);
}

.photo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-photo {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.8);
  border: none;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.problem-previews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   4. SUBMIT AND VALIDATION
   ========================================================================== */
.submit-area {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.validation-msg {
  font-size: 13px;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px solid rgba(239, 68, 68, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s;
  font-weight: 400;
}

.validation-msg.valid-ready {
  color: var(--accent-dark);
  background: var(--accent-light);
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: none;
  background: #D1D5DB;
  color: #9CA3AF;
  font-size: 16px;
  font-weight: 500;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit.active {
  background: var(--accent-color);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.btn-submit.active:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Spinner Loader */
.loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Thank you footer */
.thank-you-footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   5. ADMIN VIEW (REPORTS LIST, DETAIL, APARTMENTS)
   ========================================================================== */
.admin-notification-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.notification-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.notification-info p {
  font-size: 12px;
  color: var(--text-light);
}

.btn-push {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-push:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

.reports-section h3 {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* Report Card inside Admin View */
.report-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--glass-shadow);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.report-title h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.report-date {
  font-size: 12px;
  color: var(--text-light);
}

.report-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
}

.report-badge.pending {
  background: #FEF3C7;
  color: #92400E;
}

.report-badge.approved {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* Photos Grid in Report */
.report-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.report-photo-item {
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
  cursor: pointer;
}

.report-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.report-photo-item:active img {
  transform: scale(0.95);
}

.report-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 9px;
  padding: 1px 0;
  text-align: center;
}

/* Problem Detail Box */
.report-problems-box {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.problem-hdr {
  font-weight: 500;
  font-size: 11px;
  color: #EF4444;
  margin-bottom: 4px;
}

.problem-txt {
  font-size: 13px;
  color: var(--text-main);
}

.report-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-approve {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.btn-approve:active {
  background: rgba(16, 185, 129, 0.3);
}

.btn-delete-report {
  background: rgba(239, 68, 68, 0.05);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.btn-delete-report:active {
  background: rgba(239, 68, 68, 0.15);
}

/* Apartment Manager layout */
.apt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apt-item:last-child {
  border-bottom: none;
}

.apt-info h4 {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
}

.apt-info p {
  font-size: 12px;
  color: var(--text-light);
}

.btn-delete-apt {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ==========================================================================
   6. LIGHTBOX COMPONENT
   ========================================================================== */
.lightbox {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

#lightbox-caption {
  color: #ccc;
  margin-top: 15px;
  font-size: 14px;
}

/* Helper utility text classes */
.text-center { text-align: center; }
.gray-text { color: var(--text-light); }
.padding-all { padding: 20px; }
.text-sm { font-size: 13px; }
.margin-top-sm { margin-top: 8px; }
.margin-top-xs { margin-top: 4px; }
.border-top { border-top: 1px solid rgba(0, 0, 0, 0.05); }
.padding-top { padding-top: 16px; }

/* CSS animations */
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. ADMIN DASHBOARD & TABS STYLING
   ========================================================================== */
.admin-main-title h1 {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: -0.5px;
}

.admin-dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
}

.col-header h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 6px;
}

.apartments-scroll-box {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  margin-top: 12px;
}

.apartments-scroll-box::-webkit-scrollbar {
  width: 4px;
}
.apartments-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.btn-action-submit {
  background: var(--text-main);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.btn-action-submit:active {
  transform: scale(0.98);
}

.btn-push-action {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-push-action:active {
  transform: scale(0.98);
}

.btn-push-action:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

.setting-block {
  display: flex;
  flex-direction: column;
}

/* Cleaner Push Box */
.cleaner-notification-box {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.cleaner-notification-box h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.btn-push-cleaner {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-push-cleaner:active {
  transform: scale(0.98);
}

.btn-push-cleaner:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

/* Horizontal Scroll Tabs */
.tabs-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.tabs-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.tabs-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.tab-button {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button:active {
  transform: scale(0.95);
}

.tab-button.active {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Desktop Styles for settings grid */
@media(min-width: 600px) {
  .admin-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .border-left-desktop {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding-left: 24px;
  }
}

/* ==========================================================================
   8. ADMIN SUB-NAVIGATION & INLINE EDITING
   ========================================================================== */
.admin-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

.admin-nav-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  max-width: 160px;
  text-align: center;
  white-space: nowrap;
}

.admin-nav-btn:active {
  transform: scale(0.96);
}

.admin-nav-btn.active {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-section-content {
  display: none;
}

.admin-section-content.active-section {
  display: block;
}

.apt-actions {
  display: flex;
  align-items: center;
}

.btn-edit-apt {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  margin-right: 8px;
  transition: all 0.2s;
}

.btn-edit-apt:active {
  transform: scale(0.95);
  background: rgba(255,255,255,0.6);
}

.apt-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
}

.apt-edit-form .form-input {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.apt-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-save-apt-inline {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.btn-save-apt-inline:active {
  transform: scale(0.95);
}

.btn-cancel-apt-inline {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.btn-cancel-apt-inline:active {
  transform: scale(0.95);
}

.ref-photo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 16px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.ref-photo-icon:active {
  transform: scale(1.2);
}
