:root {
  color-scheme: light dark;
  font-family: "Inter", Arial, sans-serif;
  background-color: #101418;
  color: #edf0f7;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.softphone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: min(960px, 95vw);
  padding: 2rem;
  background: rgba(12, 18, 24, 0.88);
  border-radius: 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.credentials,
.dialer {
  background: rgba(19, 25, 32, 0.9);
  padding: 1.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b7c3d7;
}

input,
select,
button,
output {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(118, 138, 160, 0.3);
  background: rgba(28, 36, 45, 0.8);
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3aadff;
  box-shadow: 0 0 0 2px rgba(58, 173, 255, 0.3);
}

button {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #45c4ff, #1e90ff);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(80, 90, 110, 0.6);
  box-shadow: none;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(33, 150, 243, 0.35);
}

.actions {
  display: flex;
  gap: 1rem;
}

.actions button {
  flex: 1;
}

.status-error {
  border-color: #ff6b6b;
  background: rgba(255, 99, 132, 0.1);
  color: #ff9a9a;
}

.dial_pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dial_pad button {
  font-size: 1.5rem;
}

.dial_actions {
  display: flex;
  gap: 1rem;
}

.dial_actions button {
  flex: 1;
}

.audio-devices,
.media {
  background: rgba(12, 18, 24, 0.6);
  padding: 1rem;
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
}

audio {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.75rem;
}
