* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.app-header {
  margin-bottom: 24px;
}

.app-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.app-header p {
  margin: 0;
  color: #6b7280;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.full-width {
  grid-column: 1 / -1;
}

h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input,
.form-group select {
  height: 42px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
}

.form-actions,
.call-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.form-actions {
  grid-column: 1 / -1;
}

button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  background: #2563eb;
  color: white;
}

button.secondary {
  background: #6b7280;
}

button.success {
  background: #16a34a;
}

button.danger {
  background: #dc2626;
}

.status-box {
  margin-top: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 12px;
}

.status-box p {
  margin: 8px 0;
}

.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 18px;
}

.dialpad button {
  background: #e5e7eb;
  color: #111827;
  font-size: 18px;
  font-weight: bold;
}

.log-area {
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: #0f172a;
  color: #d1fae5;
  border-radius: 12px;
  padding: 14px;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }
}
