/* Janévalla Hotel Guest VoIP Interface - Apple Glass Light Theme */
@import url('glass-theme.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Container */
.guest-container {
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Header */
.hotel-header {
  text-align: center;
  border-bottom: 1px solid var(--glass-border-subtle);
  padding-bottom: 18px;
}

.hotel-brand {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--apple-gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.room-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.room-type {
  font-size: 14px;
  color: var(--text-secondary);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(52, 199, 89, 0.12);
  color: #107C41;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
  font-weight: 600;
}

.verified-dot {
  width: 6px;
  height: 6px;
  background-color: var(--apple-green);
  border-radius: 50%;
}

/* Department selector */
.dept-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dept-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.dept-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dept-chip {
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dept-chip:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

.dept-chip.active {
  background: rgba(0, 113, 227, 0.1);
  border-color: var(--apple-blue);
  color: var(--apple-blue);
  font-weight: 600;
}

/* Call Stage */
.call-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  text-align: center;
}

.call-status-indicator {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  min-height: 22px;
}

.call-timer {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--apple-blue);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.call-button-container {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.15);
  display: none;
  animation: pulse 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.btn-call {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: none;
  background-color: var(--apple-blue);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
  z-index: 2;
  font-family: inherit;
}

.btn-call:hover {
  background-color: var(--apple-blue-hover);
  transform: scale(1.03);
}

.btn-call:focus-visible {
  outline: 3px solid var(--apple-blue);
  outline-offset: 4px;
}

.btn-call svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-bottom: 2px;
}

.btn-call-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Call Active Controls */
.active-controls {
  display: none;
  gap: 16px;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.control-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.control-btn:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

.control-btn.active {
  background: rgba(255, 59, 48, 0.12);
  border-color: var(--apple-red);
  color: var(--apple-red);
}

.control-btn.btn-hangup {
  background: var(--apple-red);
  border-color: var(--apple-red);
  color: #FFFFFF;
}

.control-btn.btn-hangup:hover {
  background: #E02E24;
}

/* Quick Service Requests */
.request-section {
  border-top: 1px solid var(--glass-border-subtle);
  padding-top: 18px;
}

.request-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.request-quick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.request-chip {
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.request-chip:hover {
  color: var(--text-primary);
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
}

.request-chip:focus-visible {
  outline: 2px solid var(--apple-blue);
}

.request-custom-form {
  display: flex;
  gap: 8px;
}

.input-request {
  flex: 1;
}

.request-feedback {
  margin-top: 8px;
  font-size: 12px;
  color: #107C41;
  display: none;
  font-weight: 500;
}

/* States */
.state-container {
  display: none;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

.state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--apple-red);
}

.state-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.state-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(0, 113, 227, 0.2);
  border-top-color: var(--apple-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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