:root {
  --primary-light: #bae6fd; /* Light sky blue */
  --primary-color: #7dd3fc; /* Medium sky blue */
  --secondary-color: #38bdf8; /* Sky blue main */
  --dark-color: #0ea5e9; /* Sky blue darker */
  --darker-color: #0284c7; /* Deep sky blue */
  --text-dark: #0c4a6e; /* Dark blue for text on light bg */
  --text-white: #f8fafc; /* White text */
  --text-light: #f0f9ff; /* Very light sky blue */
  --card-bg: rgba(255, 255, 255, 0.6); /* White with transparency */
  --input-bg: rgba(255, 255, 255, 0.8); /* Nearly white with transparency */
  --input-focus: rgba(125, 211, 252, 0.2); /* Light sky blue focus color */
  --border-light: rgba(125, 211, 252, 0.3); /* Light sky blue border */
  --box-shadow: 0 4px 6px rgba(14, 165, 233, 0.1); /* Sky blue shadow */
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}

/* Background */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
  overflow: hidden;
}

/* Light Art Elements */
.light-art {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  opacity: 0.25;
  overflow: hidden;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(125, 211, 252, 0.4) 40%, transparent 70%);
  filter: blur(8px);
  animation: float 15s infinite ease-in-out;
}

.light-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.light-orb:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 75%;
  animation-delay: -3s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(56, 189, 248, 0.4) 40%, transparent 70%);
}

.light-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  top: 75%;
  left: 20%;
  animation-delay: -7s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(14, 165, 233, 0.4) 40%, transparent 70%);
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-20px, 20px);
  }
  50% {
    transform: translate(20px, -10px);
  }
  75% {
    transform: translate(-10px, -20px);
  }
}

/* Navigation */
.navbar {
  background: linear-gradient(to bottom, var(--darker-color), var(--dark-color));
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-white) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.cyber-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.cyber-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Cards */
.cyber-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

.cyber-card .card-body {
  padding: 25px;
}

.cyber-card .card-title {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 12px;
}

/* Form Elements */
.cyber-input {
  background-color: var(--input-bg);
  border: 1px solid var(--border-light);
  color: var(--secondary-color);
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(14, 165, 233, 0.1);
}

.cyber-input:focus {
  box-shadow: 0 0 0 3px var(--input-focus), inset 0 2px 4px rgba(14, 165, 233, 0.1);
  outline: none;
  border-color: var(--secondary-color);
  color: var(--dark-color);
  background-color: #fff;
}

.cyber-input::placeholder {
  color: var(--primary-color);
}

/* Button styling */
.cyber-btn {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--text-white);
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(14, 165, 233, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cyber-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--secondary-color), var(--dark-color));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cyber-btn:hover:after {
  opacity: 1;
}

.cyber-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(14, 165, 233, 0.15);
}

/* File Upload Area */
.file-upload-area {
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.file-upload-area:hover {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: var(--secondary-color);
}

.file-upload-area.active {
  background-color: rgba(56, 189, 248, 0.1);
  border-color: var(--dark-color);
}

/* Progress Bar */
.cyber-progress {
  background-color: rgba(240, 249, 255, 0.5);
  border: 1px solid var(--border-light);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 15px;
}

.progress-bar {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s ease;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Status Ticker */
.ticker-container {
  background: linear-gradient(to right, var(--dark-color), var(--darker-color));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

#statusTicker {
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

/* File Display Section */
#fileDisplay {
  max-width: 100%;
  overflow: auto;
  padding: 15px;
}

#fileDisplay img, #fileDisplay video, #fileDisplay audio {
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#displayText {
  white-space: pre-wrap;
  text-align: left;
  font-family: 'Courier New', monospace;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  max-height: 500px;
  overflow-y: auto;
  color: var(--text-dark);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(240, 249, 255, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7);
}

/* Animation */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Decorative Elements */
.cyber-card:before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, transparent, rgba(56, 189, 248, 0.2), transparent);
  border-radius: 12px;
  z-index: -1;
}

/* Links */
a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--darker-color);
  text-shadow: 0 0 5px rgba(56, 189, 248, 0.3);
}

/* Icons */
.fas {
  margin-right: 10px;
  color: var(--secondary-color);
  text-shadow: 0 0 5px rgba(56, 189, 248, 0.3);
}

/* Active Inputs */
.cyber-input:active, .cyber-input.active {
  background-color: rgba(240, 249, 255, 0.9);
  color: var(--dark-color);
  border-color: var(--dark-color);
}

