/* Premium Number Caller Design */
:root {
  --gradient-primary: linear-gradient(135deg, #6e8efb, #a777e3);
  --gradient-secondary: linear-gradient(135deg, #f6d365, #fda085);
  --gradient-success: linear-gradient(135deg, #0ba360, #3cba92);
  --gradient-warning: linear-gradient(135deg, #f9d423, #ff4e50);
  --gradient-danger: linear-gradient(135deg, #f5515f, #9f041b);
  --gradient-dark: linear-gradient(135deg, #2c3e50, #4ca1af);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.07);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
  --border-radius-xl: 1.5rem;
  --border-radius-lg: 1rem;
  --border-radius-md: 0.75rem;
  --border-radius-sm: 0.5rem;
  --glow-primary: 0 0 20px rgba(110, 142, 251, 0.4);
  --glow-success: 0 0 20px rgba(11, 163, 96, 0.4);
  --glow-warning: 0 0 20px rgba(249, 212, 35, 0.4);
  --glow-danger: 0 0 20px rgba(245, 81, 95, 0.4);
}

body {
  background-image: url('../images/pattern.svg'), linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  background-attachment: fixed;
  min-height: 100vh;
}

/* Premium Header */
.premium-header {
  background: var(--gradient-dark);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.premium-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/pattern.svg');
  opacity: 0.1;
  z-index: 0;
}

.premium-header .container {
  position: relative;
  z-index: 1;
}

.premium-logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #e6e6e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.premium-logo i {
  background: linear-gradient(to right, #fff, #e6e6e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Main Content */
.premium-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.caller-container {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 2rem;
  padding: 0;
}

/* Panels */
.panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

[data-theme="dark"] .panel {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel h3 .ayrus-suffix {
  font-size: 0.7rem;
  background: var(--primary-color);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0;
  margin-left: auto;
}

[data-theme="dark"] .panel h3 {
  border-bottom: 2px solid rgba(255,255,255,0.05);
}

/* Current Number Display */
.current-number {
  text-align: center;
  margin-bottom: 2.5rem;
}

.number-display-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
}

.number-display {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg), var(--glow-primary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.number-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.number-display-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
  z-index: 0;
}

.number-display-ring:nth-child(2) {
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  animation-delay: 0.5s;
  opacity: 0.5;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Number Board */
.number-board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 2rem;
}

.number-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.number-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

.number-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.number-cell.called {
  background: var(--gradient-success);
  color: white;
  box-shadow: var(--shadow-md), var(--glow-success);
}

.number-cell.current {
  background: var(--gradient-warning);
  color: white;
  box-shadow: var(--shadow-md), var(--glow-warning);
  animation: pulse-cell 1s infinite;
}

@keyframes pulse-cell {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Recent Numbers */
.recent-numbers-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1rem 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-numbers-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent);
  opacity: 0.5;
  z-index: 0;
}

.recent-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-success);
}

.btn-danger {
  background: var(--gradient-danger);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-danger);
}

.btn-warning {
  background: var(--gradient-warning);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-warning);
}

/* Slider */
.slider-container {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
}

.slider-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  box-shadow: var(--shadow-sm);
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-track span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

input[type="range"] {
  flex-grow: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-color);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Stats */
.stats-container {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
}

.stats-container h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stats-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stats-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.stats-value {
  font-weight: bold;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
}

/* Called Numbers List */
.called-numbers-container {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.called-numbers-container::-webkit-scrollbar {
  width: 6px;
}

.called-numbers-container::-webkit-scrollbar-track {
  background: transparent;
}

.called-numbers-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .caller-container {
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
  }
  
  .number-display-container {
    width: 180px;
    height: 180px;
  }
  
  .number-display {
    font-size: 4.5rem;
  }
}

@media (max-width: 992px) {
  .caller-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .panel:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .caller-container {
    grid-template-columns: 1fr;
  }
  
  .panel:nth-child(3) {
    grid-column: span 1;
  }
  
  .number-display-container {
    width: 150px;
    height: 150px;
  }
  
  .number-display {
    font-size: 4rem;
  }
  
  .number-board {
    grid-template-columns: repeat(5, 1fr);
  }
}