﻿/* EnverCall v1.0 Custom Theme & Softphone Engine */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-dark: #0b0f19;
  --card-dark: #111827;
  --border-dark: #1f2937;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0b0f19;
  color: #f3f4f6;
  overflow-x: hidden;
}

/* Glassmorphism effects */
.glass-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glow-blue {
  box-shadow: 0 0 25px -5px rgba(37, 99, 235, 0.4);
}

.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.4);
}

.glow-rose {
  box-shadow: 0 0 25px -5px rgba(244, 63, 94, 0.4);
}

/* Status Indicator Dots */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-available {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.status-on_call {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.status-break {
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.status-offline {
  background-color: #6b7280;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Softphone Dialpad */
.dial-btn {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background: #1e293b;
  border: 1px solid #334155;
}

.dial-btn:hover {
  background: #334155;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.dial-btn:active {
  background: #2563eb;
  color: #ffffff;
  transform: scale(0.96);
}

/* Audio Waveform Simulator */
.waveform-bar {
  width: 4px;
  border-radius: 2px;
  background: #3b82f6;
  animation: wave-anim 1s ease-in-out infinite alternate;
}

@keyframes wave-anim {
  0% { height: 6px; }
  100% { height: 28px; }
}

.waveform-container .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-container .waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-container .waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-container .waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-container .waveform-bar:nth-child(6) { animation-delay: 0.2s; }
.waveform-container .waveform-bar:nth-child(7) { animation-delay: 0.5s; }
.waveform-container .waveform-bar:nth-child(8) { animation-delay: 0.15s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
