/* backdrop */
.sip-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 19999;
}

.sip-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: white;
  overflow: hidden;

  max-width: 400px;
  z-index: 99999;
  margin: 0 auto;
  height: fit-content;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  position: fixed;
  top: 130px;
  left: calc(100vw - 50%);
  width: 400px;
  border-radius: 12px;
}

.sip-header {
  background: #1e293b;
  padding: 16px;
  border-bottom: 1px solid #334155;
}

.sip-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
}

.sip-status {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
}

.sip-active-call {
  background: #1e293b;
  padding: 16px;
  border-bottom: 1px solid #334155;
  text-align: center;
  display: none;
}

.active-call.sip-show {
  display: block;
}

.sip-caller-info {
  margin-bottom: 16px;
}

.sip-caller-name {
  font-size: 18px;
  font-weight: 600;
}

.sip-caller-number {
  font-size: 14px;
  color: #94a3b8;
}

.sip-call-status {
  font-size: 14px;
  color: #cbd5e1;
  margin-top: 4px;
}

.sip-call-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sip-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.sip-control-btn:hover {
  opacity: 0.8;
}

.sip-control-btn.sip-mute {
  background: #475569;
}

.sip-control-btn.sip-mute.sip-active {
  background: #dc2626;
}

.sip-control-btn.sip-hold {
  background: #475569;
}

.sip-control-btn.hold.sip-active {
  background: #ca8a04;
}

.sip-control-btn.sip-speaker {
  background: #475569;
}

.sip-control-btn.speaker.sip-active {
  background: #2563eb;
}

.sip-control-btn.sip-end {
  background: #dc2626;
}

.sip-lines-section {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.sip-lines-header {
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.lines-header:hover {
  background: #334155;
}

.sip-lines-list {
  padding: 0 16px 12px;
  display: none;
  max-height: 168px;
  overflow: scroll;
}

.sip-lines-list::-webkit-scrollbar {
  width: 8px;
}
.sip-lines-list::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}
.sip-lines-list::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
.sip-lines-list::-webkit-scrollbar-track {
  background: #1e293b;
}
.sip-lines-list::-webkit-scrollbar-corner {
  background: #1e293b; /* match your panel background color */
}



.sip-lines-list.sip-show {
  display: block;
}

.sip-line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #334155;
  border-radius: 6px;
  margin-bottom: 8px;
}
.sip-line-item.active{
  background-color: #94a6c1;
}

.sip-line-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sip-line-status.sip-available {
  background: #10b981;
}

.sip-line-status.sip-busy {
  background: #ef4444;
}

.sip-line-status.sip-holding {
  background: #f59e0b;
}
.sip-line-status.sip-calling {
  background: #f59e0b;
}

.sip-line-info {
  flex: 1;
}

.sip-line-name {
  font-size: 14px;
  font-weight: 500;
}

.sip-line-number {
  font-size: 12px;
  color: #94a3b8;
}

.sip-line-caller {
  font-size: 12px;
  color: #cbd5e1;
}

.sip-nav-tabs {
  display: flex;
  border-bottom: 1px solid #334155;
}

.sip-nav-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: #1e293b;
  color: #94a3b8;
  transition: all 0.2s;
}

.sip-nav-tab.sip-active {
  background: #2563eb;
  color: white;
}

.sip-nav-tab:hover:not(.active) {
  color: white;
}

.sip-content {
  flex: 1;
  overflow-y: auto;
  min-height: 508px;
  max-height: 530px;
}

.sip-content::-webkit-scrollbar {
  width: 1px;
}

.sip-tab-content {
  width: 87%;
  margin: auto;
  padding: 16px;
}

.sip-line-actions {
  display: flex;
  gap: 4px;
}

.sip-tab-content.sip-active {
  display: block;
}

.sip-number-display {
  background: #1e293b;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.sip-number-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 20px;
  text-align: center;
}

.sip-number-input::placeholder {
  color: #64748b;
}

.sip-dialer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.sip-dial-btn {
  aspect-ratio: 1;
  background: #334155;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  height: 70px;
  width: 100%;
}

.sip-dial-btn:hover {
  background: #475569;
}

.sip-call-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sip-action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sip-action-btn.small{
  width: 28px;
  height: 28px;
}

.sip-action-btn.sip-clear {
  background: #334155;
}

.sip-action-btn.sip-call {
  background: #10b981;
}
.sip-action-btn.sip-decline {
  background: #d62312;
}

.sip-action-btn.call:disabled {
  background: #6b7280;
  cursor: not-allowed;
}

.sip-search-box {
  position: relative;
  margin-bottom: 16px;
}

.sip-search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 8px;
  outline: none;
  color: white;
}

.sip-search-input::placeholder {
  color: #64748b;
}

.sip-search-input:focus {
  border-color: #2563eb;
}

.sip-search-icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #94a3b8;
}

.sip-history-item {
  padding: 12px;
  background: #1e293b;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.sip-history-item:hover {
  background: #334155;
}

.sip-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sip-history-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sip-call-icon {
  width: 16px;
  height: 16px;
}

.sip-call-icon.sip-incoming {
  color: #10b981;
}

.sip-call-icon.sip-outgoing {
  color: #3b82f6;
}

.sip-call-icon.sip-missed {
  color: #ef4444;
}

.sip-contact-info {
  flex: 1;
}

.sip-contact-name {
  font-weight: 500;
}

.sip-contact-number {
  font-size: 14px;
  color: #94a3b8;
}

.sip-call-time {
  text-align: right;
}

.sip-time {
  font-size: 14px;
}

.sip-date {
  font-size: 12px;
  color: #94a3b8;
}

.sip-duration {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.sip-empty-state {
  text-align: center;
  color: #94a3b8;
  margin-top: 32px;
}

.sip-icon {
  width: 24px;
  height: 24px;
}

.sip-icon-sm {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.sip-icon-down {
  transform: rotate(180deg);
}