@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* CRT Animation Keyframes */
@keyframes flicker {
  0% { opacity: 0.27861; }
  5% { opacity: 0.34769; }
  10% { opacity: 0.23604; }
  15% { opacity: 0.90626; }
  20% { opacity: 0.18128; }
  25% { opacity: 0.83891; }
  30% { opacity: 0.65583; }
  35% { opacity: 0.67807; }
  40% { opacity: 0.26559; }
  45% { opacity: 0.84693; }
  50% { opacity: 0.96019; }
  55% { opacity: 0.08594; }
  60% { opacity: 0.20313; }
  65% { opacity: 0.71988; }
  70% { opacity: 0.53455; }
  75% { opacity: 0.37288; }
  80% { opacity: 0.71428; }
  85% { opacity: 0.70419; }
  90% { opacity: 0.7003; }
  95% { opacity: 0.36108; }
  100% { opacity: 0.24387; }
}

@keyframes textShadow {
  0% { text-shadow: 0.43899px 0 1px rgba(0,30,255,0.5), -0.43899px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  5% { text-shadow: 2.79236px 0 1px rgba(0,30,255,0.5), -2.79236px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  10% { text-shadow: 0.02956px 0 1px rgba(0,30,255,0.5), -0.02956px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  15% { text-shadow: 0.40219px 0 1px rgba(0,30,255,0.5), -0.40219px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  20% { text-shadow: 3.4794px 0 1px rgba(0,30,255,0.5), -3.4794px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  25% { text-shadow: 1.61256px 0 1px rgba(0,30,255,0.5), -1.61256px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  30% { text-shadow: 0.70155px 0 1px rgba(0,30,255,0.5), -0.70155px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  35% { text-shadow: 3.8969px 0 1px rgba(0,30,255,0.5), -3.8969px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  40% { text-shadow: 3.8709px 0 1px rgba(0,30,255,0.5), -3.8709px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  45% { text-shadow: 2.23105px 0 1px rgba(0,30,255,0.5), -2.23105px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  50% { text-shadow: 4.08359px 0 1px rgba(0,30,255,0.5), -4.08359px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  55% { text-shadow: 2.38775px 0 1px rgba(0,30,255,0.5), -2.38775px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  60% { text-shadow: 1.71916px 0 1px rgba(0,30,255,0.5), -1.71916px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  65% { text-shadow: 0.08436px 0 1px rgba(0,30,255,0.5), -0.08436px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  70% { text-shadow: 4.10375px 0 1px rgba(0,30,255,0.5), -4.10375px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  75% { text-shadow: 1.99719px 0 1px rgba(0,30,255,0.5), -1.99719px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  80% { text-shadow: 1.46053px 0 1px rgba(0,30,255,0.5), -1.46053px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  85% { text-shadow: 0.54054px 0 1px rgba(0,30,255,0.5), -0.54054px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  90% { text-shadow: 4.08629px 0 1px rgba(0,30,255,0.5), -4.08629px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  95% { text-shadow: 3.04552px 0 1px rgba(0,30,255,0.5), -3.04552px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  100% { text-shadow: 0.02756px 0 1px rgba(0,30,255,0.5), -0.02756px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'VT323', monospace;
  background: #000;
  overflow: hidden;
}

body {
  background: #000;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #040404 0%, #0e0e0e 100%);
  position: relative;
}

body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

/* Main Pip-Boy Frame */
.pipboy-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transform: none;
}

.pipboy-screen {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.pipboy-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 255, 0, 0.02) 50%,
    rgba(0, 255, 0, 0.02) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

.pipboy-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 255, 0, 0.03) 50%,
    transparent 50%
  );
  background-size: 100% 2px;
  pointer-events: none;
  z-index: 2;
  animation: scanlines 8s linear infinite;
}


@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 10px; }
}


/* Header */
.pipboy-header {
  height: 50px;
  background: #000;
  border-bottom: 2px solid #00ff00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 10;
  position: relative;
}

.pipboy-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
  animation: pulse 2s infinite;
}

.status-indicator.online {
  background: #00ff00;
}

.status-text {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.pipboy-time {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

/* Navigation */
.pipboy-nav {
  height: 60px;
  background: #000;
  border-bottom: 2px solid #00ff00;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 5px;
  z-index: 10;
  position: relative;
}

.nav-section {
  flex: 1;
  height: 50px;
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-section:hover {
  background: #001100;
  border-color: #00ff00;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.nav-section.active {
  background: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 20px;
  color: #00ff00;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
  margin-bottom: 2px;
}

.nav-label {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.6);
}

.nav-section.active .nav-icon {
  color: #040404;
}

.nav-section.active .nav-label {
  color: #040404;
}

/* Content Area */
.pipboy-content {
  height: calc(100% - 160px);
  position: relative;
  overflow: hidden;
}

.content-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  display: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4a5f4a #1a2f1a;
}

.content-section.active {
  display: block;
}

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

.content-section::-webkit-scrollbar-track {
  background: #000;
}

.content-section::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
}

.section-header h2 {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 10px 0;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, #00ff00 0%, #00ff00 50%, #00ff00 100%);
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Status Section */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.status-item {
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.status-item:hover {
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.status-label {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-value {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.system-message {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.system-message p {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin: 5px 0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.system-message .warning {
  color: #ffff00;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
}

/* File Operations */
.file-operations {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.operation-box {
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.operation-box:hover {
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.operation-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.operation-icon {
  font-size: 24px;
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.operation-title {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.file-input-wrapper {
  margin-bottom: 20px;
}

.pipboy-input {
  /* File inputs are hidden via HTML hidden attribute, not CSS */
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  background: #001100;
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  transform: translateY(-2px);
}

.file-icon {
  font-size: 20px;
}

.file-text {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.6);
}

.operation-info p {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 16px;
  margin: 5px 0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.file-type {
  color: #00ff00 !important;
  font-size: 14px !important;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-item {
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.about-item:hover {
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.about-label {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-value {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.about-description {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
}

.about-description p {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 16px;
  margin: 10px 0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Footer */
.pipboy-footer {
  height: 50px;
  background: #000;
  border-top: 2px solid #00ff00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 10;
  position: relative;
}

.footer-text {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Animations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .pipboy-frame {
    width: 95vw;
    height: 90vh;
    border-width: 6px;
  }
  
  .pipboy-header {
    height: 40px;
    padding: 0 10px;
  }
  
  .status-text {
    font-size: 14px;
  }
  
  .pipboy-time {
    font-size: 16px;
  }
  
  .pipboy-nav {
    height: 50px;
    padding: 0 10px;
  }
  
  .nav-section {
    height: 40px;
  }
  
  .nav-icon {
    font-size: 16px;
  }
  
  .nav-label {
    font-size: 12px;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 20px;
  }
  
  .content-section {
    padding: 15px;
  }
}

/* Legacy Bootstrap Overrides - Kept for compatibility */
.list-group-item.active,
.list-group-item.active:focus,
.list-group-item.active:hover {
  background-color: #000;
  border-color: #00ff00;
  color: #00ff00;
  box-shadow: inset 0 0 15px rgba(0, 255, 0, 0.3);
}

a.list-group-item, button.list-group-item {
  background-color: #000;
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 18px;
  border-color: #00ff00;
}

.btn-primary {
  background-color: #000;
  border-color: #00ff00;
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  border-radius: 4px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #001100;
  border-color: #00ff00;
  color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  transform: translateY(-2px);
}

.btn-primary:focus {
  background-color: #001100;
  border-color: #00ff00;
  color: #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
  outline: none;
}

.form-control {
  background: #000;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 16px;
  border-radius: 4px;
}

.form-control:focus {
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  outline: none;
  background: #000;
}	