* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #edf2f7;
  color: #1f2937;
}

.topbar {
  background: linear-gradient(90deg, #0f3057, #145da0);
  color: white;
  min-height: 88px;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  margin: 0;
  font-size: 27px;
}

.topbar p {
  margin: 5px 0 0;
  opacity: 0.92;
}

.agent-status {
  background: #64748b;
  padding: 11px 20px;
  border-radius: 28px;
  font-weight: bold;
}

.main-layout {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 18px;
  padding: 18px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card h2 {
  margin: 0 0 16px;
  color: #0f3057;
  font-size: 21px;
}

.info-row {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-row label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 5px;
}

.info-row strong {
  font-size: 17px;
  color: #111827;
}

.badge {
  padding: 7px 13px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: bold;
}

.success {
  background: #dcfce7;
  color: #15803d;
}

.neutral {
  background: #e5e7eb;
  color: #374151;
}

.inbound {
  background: #dbeafe;
  color: #1d4ed8;
}

.poc {
  background: #ffedd5;
  color: #c2410c;
}

.flow-line {
  background: #f8fafc;
  border-left: 5px solid #145da0;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 14px;
}

.note {
  color: #475569;
  line-height: 1.5;
}

.softphone-card {
  min-height: calc(100vh - 124px);
}

.softphone-header {
  background: #f8fafc;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.softphone-header h3 {
  margin: 0;
  font-size: 24px;
  color: #0f3057;
}

.softphone-header p {
  margin: 6px 0 0;
  color: #64748b;
}

.status-dot {
  width: 20px;
  height: 20px;
  background: #9ca3af;
  border-radius: 50%;
}

.status-dot.ringing {
  background: #f59e0b;
  animation: pulse 1s infinite;
}

.status-dot.connected {
  background: #16a34a;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.incoming-call,
.active-call {
  background: white;
  border-radius: 22px;
  margin-top: 22px;
  padding: 30px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.small-title {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.7px;
  color: #64748b;
}

.caller-name {
  font-size: 38px;
  font-weight: bold;
  color: #111827;
  margin-top: 12px;
}

.caller-number {
  font-size: 21px;
  color: #475569;
  margin-top: 8px;
}

.call-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 26px;
}

.call-details-grid div {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
}

.call-details-grid label {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
}

.call-details-grid span {
  font-weight: bold;
}

.button-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button-row-left {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.small-btn {
  border: none;
  color: white;
  padding: 11px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.small-btn.login {
  background: #2563eb;
}

.small-btn.logout {
  background: #64748b;
}

.small-btn.check {
  background: #0891b2;
}

.answer {
  background: #16a34a;
}

.reject {
  background: #dc2626;
}

.hold {
  background: #f59e0b;
}

.transfer {
  background: #2563eb;
}

.disconnect {
  background: #dc2626;
}

.timer {
  font-size: 46px;
  color: #0f3057;
  font-weight: bold;
  margin-top: 24px;
}

.hidden {
  display: none;
}

.event-log {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.event-log h3 {
  margin: 0 0 12px;
  color: #0f3057;
}

.event-log ul {
  margin: 0;
  padding-left: 20px;
}

.event-log li {
  margin-bottom: 9px;
  color: #334155;
}