* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.description {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.status-container {
  margin-top: 2rem;
}

#call-status {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

#active-caller-name {
  font-size: 1.2rem;
  color: #555;
  display: none;
  margin-bottom: 1rem;
}

.call-timer {
  display: none;
  font-size: 1.1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.call-result {
  font-size: 1.1rem;
  color: #dc3545;
  margin-top: 1rem;
  font-weight: 500;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  margin: 1rem auto;
}

.btn-danger {
  background: linear-gradient(135deg, #f93b1d 0%, #ea1e63 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(234, 30, 99, 0.4);
}

/* Modal Styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 350px;
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: #777;
  margin-top: 0.3rem;
}

.call-buttons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.circle-btn {
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.circle-btn:hover {
  transform: scale(1.1);
}

.circle-btn:active {
  transform: scale(0.95);
}

.accept {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.accept:hover {
  box-shadow: 0 6px 20px rgba(56, 239, 125, 0.5);
}

.reject {
  background: linear-gradient(135deg, #f93b1d 0%, #ea1e63 100%);
}

.reject:hover {
  box-shadow: 0 6px 20px rgba(234, 30, 99, 0.5);
}

.ringing {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 20px 80px rgba(102, 126, 234, 0.5);
  }
  100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .modal {
    min-width: 90%;
    padding: 1.5rem;
  }
  
  .call-buttons {
    gap: 2rem;
  }
  
  .circle-btn {
    width: 60px;
    height: 60px;
  }
}