/* GökçeOS Mobile Suite - Premium Dark Enterprise Styles */
.gokceos-mobile-suite-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 10px;
  width: 100%;
}

.mobile-role-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #334155;
  backdrop-filter: blur(10px);
}

.mobile-role-selector button {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-role-selector button:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-role-selector button.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Smartphone Shell Outer Frame */
.gokceos-mobile-suite-container .mobile-app-shell {
  width: 380px;
  max-width: 95vw;
  height: 720px;
  border: 12px solid #0f172a;
  border-radius: 40px;
  background: #090d16;
  color: #f8fafc;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.mobile-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  font-size: 12px;
}

.phone-status-left, .phone-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.btn-icon-lock {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.mobile-sync-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  background: #1e293b;
  font-size: 11px;
  color: #38bdf8;
  border-bottom: 1px solid #334155;
}

.mobile-app-body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Role Banners */
.mobile-role-banner {
  padding: 14px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.patron-banner { background: linear-gradient(135deg, #0f172a, #1e3a8a); border: 1px solid #3b82f6; }
.housekeeping-banner { background: linear-gradient(135deg, #064e3b, #0f766e); border: 1px solid #10b981; }
.maintenance-banner { background: linear-gradient(135deg, #7c2d12, #9a3412); border: 1px solid #f97316; }
.guest-banner { background: linear-gradient(135deg, #4c1d95, #6d28d9); border: 1px solid #a855f7; }

.mobile-role-banner small { font-size: 10px; opacity: 0.8; display: block; }
.mobile-role-banner strong { font-size: 14px; }

/* KPI Cards */
.mobile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-kpi-card small { color: #94a3b8; font-size: 11px; }
.mobile-kpi-card strong { font-size: 18px; color: #f8fafc; }
.mobile-kpi-card .kpi-trend { font-size: 11px; color: #38bdf8; }

/* Sections & Cards */
.mobile-section { display: flex; flex-direction: column; gap: 10px; }
.mobile-section h3 { font-size: 14px; color: #cbd5e1; margin: 0; }
.mobile-section-header { display: flex; justify-content: space-between; align-items: center; }

.mobile-card-list { display: flex; flex-direction: column; gap: 10px; }

.mobile-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-card { border-left: 4px solid #ef4444; }
.room-card.status-dirty { border-left: 4px solid #ef4444; }
.room-card.status-cleaning { border-left: 4px solid #f59e0b; }
.room-card.status-clean { border-left: 4px solid #3b82f6; }
.room-card.status-inspected { border-left: 4px solid #10b981; }

.room-card-header { display: flex; justify-content: space-between; align-items: center; }

.mobile-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.badge-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.badge-info { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid #38bdf8; }

/* Buttons */
.mobile-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary { background: #0284c7; color: #fff; }
.btn-primary:hover { background: #0369a1; }
.btn-secondary { background: #334155; color: #f8fafc; }
.btn-success { background: #16a34a; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-warning { background: #d97706; color: #fff; }
.btn-outline { background: transparent; border-color: #475569; color: #cbd5e1; }

.btn-large { width: 100%; padding: 14px; font-size: 14px; }
.full-width { width: 100%; }

.mobile-card-actions, .room-actions, .mobile-quick-grid {
  display: flex;
  gap: 8px;
}

/* Guest Key Card */
.guest-key-card {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 1px solid #6366f1;
  text-align: center;
  align-items: center;
  padding: 20px 12px;
}

.digital-key-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  border: 3px solid #818cf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  transition: transform 0.2s;
}

.digital-key-circle:hover { transform: scale(1.05); }

/* Bottom Nav Bar */
.mobile-app-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 6px 0;
}

.mobile-app-bottom-nav button {
  background: none;
  border: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  gap: 2px;
  cursor: pointer;
}

.mobile-app-bottom-nav button.active { color: #38bdf8; }
.nav-btn-highlight i {
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  border: 2px solid #0f172a;
}

/* Modal Overlay & QR Scanner */
.mobile-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.mobile-qr-modal {
  width: 90%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}

.mobile-qr-modal header { display: flex; justify-content: space-between; align-items: center; }
.mobile-qr-modal header button { background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer; }

.qr-camera-viewport {
  height: 180px;
  background: #000;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px dashed #0284c7;
}

.qr-target-box {
  width: 100px;
  height: 100px;
  border: 2px solid #38bdf8;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
  animation: qrPulse 1.5s infinite alternate;
}

@keyframes qrPulse {
  from { transform: scale(0.95); opacity: 0.7; }
  to { transform: scale(1.05); opacity: 1; }
}

.qr-camera-viewport p { font-size: 11px; color: #94a3b8; margin-top: 8px; }

.qr-scanned-result { font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.qr-actions { display: flex; gap: 8px; }
