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

/* Ultra-Sophisticated Rise/Fall Trading Platform Variables - Using Theme CSS */
/* Variables are now defined in ../../theme.css */

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 30%, #1a1a1a 60%, #2a2a2a 100%);
  color: var(--white);
  font-size: 10px;
  position: relative;
}

/* Static Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(22, 163, 74, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 40% 60%, rgba(74, 222, 128, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 2px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header */
.inline-container {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--glass-light);
  backdrop-filter: blur(15px) saturate(1.3);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  box-shadow: 
    var(--shadow-compact),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.inline-container:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 
    var(--shadow-hover),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ultra-Premium Select Styling */
#symbolInput {
  flex: 1;
  min-width: 100px;
  padding: 4px 6px;
  font-size: 8px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--slate);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

#symbolInput::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
}

#symbolInput:hover, #symbolInput:focus {
  border-color: var(--accent-blue);
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.3),
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
}

#symbolInput:focus::before {
  opacity: 0.1;
}

/* Advanced Input Styling */
#digitsInput {
  width: 50px;
  padding: 4px;
  font-size: 8px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--slate);
  border-radius: 6px;
  text-align: center;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

#digitsInput:hover, #digitsInput:focus {
  border-color: var(--accent-blue);
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.3),
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
}



.small-buttons-container,
.medium-buttons-container {
  display: flex;
  gap: 2px;
}

.small-button,
.medium-button {
  padding: 3px 6px;
  font-size: 7px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--slate) 100%);
  border: 1px solid var(--light-slate);
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-compact);
}

.small-button::before,
.medium-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  z-index: -1;
}

.small-button::after,
.medium-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.small-button:hover::before,
.medium-button:hover::before {
  left: 0;
}

.small-button:hover,
.medium-button:hover {
  box-shadow: var(--shadow-hover);
}

.small-button:active::after,
.medium-button:active::after {
  width: 100px;
  height: 100px;
}

.small-button.clicked,
.medium-button.clicked {
  background: var(--gradient-success);
  border-color: var(--success);
}

/* Advanced Price Display */
#priceDisplay {
  font-size: 9px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin: 2px 0;
  padding: 4px 8px;
  background: var(--glass-medium);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-compact);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}



/* Advanced Percentage Display */
#percentageDisplay {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  padding: 3px 6px;
  margin: 1px 0;
  border-radius: 6px;
  background: var(--glass-light);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-compact);
}

/* Ultra-Premium Last Digits List */
#lastDigitsList {
  font-size: 7px;
  font-weight: 600;
  font-family: 'Monaco', 'Consolas', monospace;
  line-height: 1.3;
  padding: 4px;
  margin: 1px 0;
  background: var(--glass-medium);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  box-shadow: 
    var(--shadow-compact),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
}



/* Chart Container with Modern Aesthetics */
.chartContainer {
  display: none !important;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.frame {
  flex: 1;
  margin: 2px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-compact);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
}

.frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Rise/Fall specific styling with Arrow Symbols */
span[style*="color: blue"] {
  color: transparent !important;
  text-shadow: none;
  font-weight: 700;
  font-size: 11px;
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  text-align: center;
}

span[style*="color: blue"]:before {
  content: "↑";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--success);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  font-size: 12px;
  font-weight: 900;
}

span[style*="color: red"] {
  color: transparent !important;
  text-shadow: none;
  font-weight: 700;
  font-size: 11px;
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  text-align: center;
}

span[style*="color: red"]:before {
  content: "↓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--danger);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  font-size: 12px;
  font-weight: 900;
}

/* Select Options Styling */
select option {
  background: var(--dark-navy);
  color: var(--white);
  padding: 4px;
  border: none;
  font-size: 8px;
  font-weight: 500;
}



/* Responsive Design for Compact Usage */
@media screen and (max-width: 480px) {
  .container {
    padding: 1px;
  }
  
  .inline-container {
    gap: 2px;
    padding: 2px;
  }
  
  #symbolInput {
    font-size: 7px;
    padding: 3px 4px;
  }

  #digitsInput {
    width: 40px;
    font-size: 7px;
    padding: 3px;
  }
  
  .small-button,
  .medium-button {
    padding: 2px 4px;
    font-size: 6px;
  }
  
  #priceDisplay {
    font-size: 8px;
    padding: 3px 6px;
  }
  
  #percentageDisplay {
    font-size: 7px;
    padding: 2px 4px;
  }
  
  #lastDigitsList {
    font-size: 6px;
    padding: 3px;
  }
}

@media screen and (max-width: 360px) {
  .container {
    padding: 0.5px;
  }
  
  .inline-container {
    flex-direction: column;
    gap: 1px;
  }
  
  #symbolInput {
    font-size: 6px;
    min-width: 80px;
  }
  
  #digitsInput {
    width: 35px;
    font-size: 6px;
  }
  
  .small-button,
  .medium-button {
    padding: 1px 3px;
    font-size: 5px;
  }

  #lastDigitsList {
    font-size: 5px;
  padding: 2px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--glass-bg);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
}