:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #22c55e;
  --danger: #ef4444;
  --bg-main: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.phone-container {
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.panel {
  display: none;
  flex-direction: column;
  padding: 2rem;
  height: 100%;
  flex: 1;
  animation: fadeIn 0.3s ease-out;
}

.panel.active {
  display: flex;
}

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

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
}

.btn-outline:hover {
  background-color: #f1f5f9;
}

.btn-large {
  padding: 1.25rem;
  font-size: 1.125rem;
}

.status-msg {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.status-indicator.online {
  background-color: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.dialer-placeholder {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse {
  width: 100px;
  height: 100px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse::after {
  content: '';
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: absolute;
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.incoming-icon, .active-call-icon {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.incoming-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.call-actions {
  display: grid;
  gap: 1rem;
  margin-top: auto;
}

.timer {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 1.5rem 0;
  color: var(--text-main);
}

.footer {
  margin-top: auto;
}
