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

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

html, body {
  height: 100%;
  width: 100%;
}

#root {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* INTRO VIDEO SCREEN */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STATIC IMAGE BACKGROUND */
.image-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/assets/images/chimera.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(157, 78, 221, 0.15) 0%, rgba(0, 212, 255, 0.05) 30%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
  backdrop-filter: blur(0px);
}

.app {
  min-height: 100vh;
  width: 100%;
  display: flex;
  position: relative;
  overflow-x: hidden;
}

/* LOGIN SCREEN */
.login-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glass-panel {
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 24px;
  padding: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 0 50px rgba(0, 212, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(157, 78, 221, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.login-panel {
  width: 100%;
  max-width: 480px;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.app-title {
  font-family: 'Lexend', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #00D4FF 0%, #0099FF 50%, #9D4EDD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.app-subtitle {
  font-size: 14px;
  color: #00D4FF;
  font-weight: 500;
  letter-spacing: 1px;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 30px 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00D4FF;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(20, 30, 50, 0.7);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.05);
}

.form-input::placeholder {
  color: #666;
}

/* BUTTONS */
.button-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00D4FF 0%, #0099FF 50%, #9D4EDD 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}

.button-primary:active:not(:disabled) {
  transform: translateY(0);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-check {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 24px;
}

.button-check:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}

.button-check:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-location {
  padding: 12px 20px;
  background: rgba(157, 78, 221, 0.3);
  border: 1px solid rgba(157, 78, 221, 0.5);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-location:hover {
  background: rgba(157, 78, 221, 0.5);
  border-color: #9D4EDD;
  transform: translateY(-2px);
}

.button-download {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF006E 0%, #FF4C6B 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 0, 110, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
}

.button-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 0, 110, 0.4);
}

.button-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-logout {
  padding: 10px 20px;
  background: rgba(255, 70, 100, 0.2);
  border: 1px solid rgba(255, 70, 100, 0.5);
  border-radius: 8px;
  color: #FF6B6B;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-logout:hover {
  background: rgba(255, 70, 100, 0.3);
  border-color: #FF6B6B;
  transform: translateY(-1px);
}

/* MESSAGES */
.error-message {
  background: rgba(255, 70, 100, 0.15);
  border: 1px solid rgba(255, 70, 100, 0.5);
  border-radius: 10px;
  padding: 14px;
  color: #FF6B6B;
  font-size: 13px;
  margin-bottom: 20px;
  animation: slideDown 0.4s ease-out;
}

.success-message {
  background: rgba(0, 212, 100, 0.15);
  border: 1px solid rgba(0, 212, 100, 0.5);
  border-radius: 10px;
  padding: 14px;
  color: #4ade80;
  font-size: 13px;
  margin-bottom: 20px;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copyright {
  text-align: center;
  color: #666;
  font-size: 11px;
  margin-top: 30px;
  letter-spacing: 0.5px;
}

/* DASHBOARD */
.dashboard {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.header {
  backdrop-filter: blur(8px);
  background: rgba(10, 15, 30, 0.4);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  flex: 1;
}

.header-title {
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.header-subtitle {
  font-size: 12px;
  color: #00D4FF;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.content {
  flex: 1;
  padding: 40px;
  padding-bottom: 60px;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

.main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.control-panel {
  animation: slideInLeft 0.6s ease-out 0.1s both;
}

.results-panel {
  animation: slideInRight 0.6s ease-out 0.2s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-title {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00D4FF;
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.date-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.date-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9D4EDD;
}

.date-inputs {
  display: flex;
  gap: 12px;
}

.date-select {
  flex: 1;
  padding: 12px;
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.date-select:focus {
  outline: none;
  border-color: #9D4EDD;
  background: rgba(20, 30, 50, 0.7);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.date-select option {
  background: #1a1f2e;
  color: #e0e0e0;
}

/* TIER SELECTION */
.tier-section {
  margin-bottom: 24px;
}

.tier-select {
  width: 100%;
  padding: 12px;
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  margin-top: 8px;
}

.tier-select:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(20, 30, 50, 0.7);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.tier-select option {
  background: #1a1f2e;
  color: #e0e0e0;
}

.tier-description {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

.preset-values {
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.preset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
}

.preset-label {
  color: #888;
  font-weight: 500;
}

.preset-value {
  color: #4ade80;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* RESULTS */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.result-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(157, 78, 221, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.result-card:hover {
  border-color: #00D4FF;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(157, 78, 221, 0.1) 100%);
  transform: translateY(-4px);
}

.result-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.result-value {
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #00D4FF;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.result-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

.download-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #ffc107;
  text-align: center;
  margin-bottom: 8px;
}

.download-stats {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}

.download-stats h3 {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #00D4FF;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-row:last-child {
  border-bottom: none;
}

.stats-row span:first-child {
  color: #888;
}

.stats-row span:last-child {
  color: #fff;
  font-weight: 500;
}

.path-display {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.path-label {
  color: #888;
  font-weight: 600;
  white-space: nowrap;
}

.path-value {
  color: #00D4FF;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

/* PROGRESS BAR */
.progress-section {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  font-size: 14px;
  font-weight: 600;
  color: #00D4FF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-percent {
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #4ade80;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(20, 30, 50, 0.8);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00D4FF 0%, #4ade80 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.progress-details {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 12px;
}

.progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.stat-value.success {
  color: #4ade80;
}

.stat-value.skipped {
  color: #ffc107;
}

.stat-value.error {
  color: #FF6B6B;
}

.current-file {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 8px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ABORT BUTTON */
.button-abort {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-abort:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
}

/* RETRY BUTTON */
.button-retry {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-retry:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 193, 7, 0.4);
}

.button-retry:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* RESET BUTTON */
.button-reset {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(108, 117, 125, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
}

.button-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 117, 125, 0.4);
  background: linear-gradient(135deg, #5a6268 0%, #3d4246 100%);
}

/* DOWNLOAD COMPLETE */
.download-complete {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: #4ade80;
  font-weight: 600;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 20px;
    padding-bottom: 40px;
  }

  .glass-panel {
    padding: 24px;
  }

  .login-panel {
    max-width: 100%;
  }

  .date-inputs {
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .header-title {
    font-size: 16px;
  }

  .app-title {
    font-size: 24px;
  }

  .header {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 16px;
    padding-bottom: 40px;
  }

  .glass-panel {
    padding: 20px;
    border-radius: 16px;
  }

  .panel-title {
    font-size: 12px;
  }

  .result-value {
    font-size: 20px;
  }

  .button-check,
  .button-download {
    padding: 12px;
    font-size: 12px;
  }

  .stats-row {
    font-size: 12px;
  }

  .preset-item {
    font-size: 11px;
  }
}
