* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cascadia Code', Consolas, monospace;
    line-height: 1.6;
    color: #00eeff;
    background: #000000;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgb(4, 8, 197);
}

/* Header Styles */
.header {
    background: #000000;
    padding: 20px 30px;
    border-bottom: 1px solid #2a2a2a;
}

.header h1 {
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.header p {
    color: #00F7EA;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Step Cards */
.step-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #00eaff;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #0601f5;
    color: #00ff0d;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.step-card h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Dropdown Styles */
.dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #00fbff;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #0d0d0d;
    color: #00fbff;
    font-family: 'Cascadia Code', Consolas, monospace;
    transition: border-color 0.2s;
}

.dropdown:focus {
    outline: none;
    border-color: #00ff1a;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #00e1ff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    flex: 1;
}

.radio-label:hover {
    border-color: #00ff1a;
    background: #252525;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #5a5a5a;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #b301ef;
    background: #b301ef;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #0d0d0d;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Upload Area Styles */
.upload-area {
    border: 1px dashed #000000;
    border-radius: 4px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.upload-area:hover {
    border-color: #22ff00;
    background: #000000;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder .upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #5a5a5a;
}

.upload-placeholder p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #b0b0b0;
}

.upload-placeholder small {
    color: #5a5a5a;
}

/* Specifications Styles */
.specs-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #007acc;
}

.specs-card h3 {
    color: #e0e0e0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.specs-content {
    background: #0d0d0d;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.85rem;
}

.specs-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.specs-label {
    font-weight: 500;
    color: #1275e7;
}

.specs-value {
    color: #f216cd;
    font-weight: 500;
}

/* Image Container Styles */
.image-container {
    max-width: 100%;
    margin: 15px 0;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
}

.cropping-image {
    max-width: 100%;
    display: block;
}

.crop-instructions {
    background: #1a1a1a;
    border: 1px solid #04f408;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.crop-instructions p {
    margin-bottom: 5px;
    color: #8a8a8a;
}

.crop-instructions p:last-child {
    margin-bottom: 0;
}

/* Preview Styles */
.preview-container {
    text-align: center;
    margin: 15px 0;
}

.preview-image {
    max-width: 250px;
    border: 1px solid #007acc;
    border-radius: 4px;
}

.preview-specs {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 4px;
    margin-top: 12px;
    text-align: left;
    border: 1px solid #2a2a2a;
}

.size-valid {
    color: #66ff66;
    font-weight: 500;
}

.size-invalid {
    color: #ff6666;
    font-weight: 500;
}

.size-warning {
    color: #ff6666;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
    font-family: 'Cascadia Code', Consolas, monospace;
}

.btn-primary {
    background: #007acc;
    color: #0d0d0d;
}

.btn-primary:hover {
    background: #66b3ff;
}

.btn-secondary {
    background: #3a3a3a;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #5a5a5a;
}

.btn-success {
    background: #66ff66;
    color: #0d0d0d;
}

.btn-success:hover {
    background: #99ff99;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 15px 20px;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
}

.footer p {
    margin-bottom: 8px;
    color: #8a8a8a;
    font-size: 0.85rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #5a5a5a !important;
    font-style: italic;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #e0e0e0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #3a3a3a;
    border-top: 3px solid #007acc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.full-width {
    grid-column: 1 / -1;
}
/* Added for compression notice */
.compression-info {
  margin-top: 8px;
  color: #00ff88;
  font-size: 0.8rem;
  text-align: left;
}

/* PDF Preview Styles */
.pdf-preview {
  text-align: center;
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid #007acc;
  border-radius: 6px;
}

.pdf-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #007acc;
}

.pdf-warning {
  background: #2a1a00;
  border: 1px solid #ff9900;
  color: #ff9900;
  padding: 10px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 0.9rem;
}

.pdf-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* Format support styles */
.supported-formats {
  display: block;
  font-size: 0.8rem;
  color: #00ff88;
  margin-top: 8px;
  font-style: italic;
}

.format-note {
  display: block;
  font-size: 0.75rem;
  color: #ffaa00;
  margin-top: 4px;
  font-style: italic;
}

/* Conversion status */
.conversion-status {
  background: #1a2a1a;
  border: 1px solid #00ff88;
  color: #00ff88;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  text-align: center;
}

/* Enhanced upload area */
.upload-area.dragging {
  border-color: #00ff88;
  background: #1a2a1a;
}

.upload-area.converting {
  border-color: #007acc;
  background: #1a1a2a;
}
/* About Page Styles */
.about-content {
  color: #e0e0e0;
  line-height: 1.6;
}

.about-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.about-section h3 {
  color: #00ff88;
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 8px;
}

.about-section p {
  margin-bottom: 12px;
  color: #b0b0b0;
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 8px 0;
  color: #b0b0b0;
  border-bottom: 1px solid #2a2a2a;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Exams Grid */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.exam-item {
  background: #0d0d0d;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}

.exam-item h4 {
  color: #007acc;
  margin-bottom: 10px;
  font-size: 1rem;
}

.exam-item p {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #8a8a8a;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.feature-item {
  background: #0d0d0d;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  text-align: center;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: #007acc;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.feature-item h4 {
  color: #00ff88;
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: #8a8a8a;
  margin: 0;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tech-item {
  background: #007acc;
  color: #0d0d0d;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Navigation */
nav {
  margin-left: auto;
}

/* Full width for about page */
.full-width {
  grid-column: 1 / -1;
}

/* Links in about page */
.about-content a {
  color: #007acc;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}
/* About Us Button Styles */
.btn-cyberpunk {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #000000 !important;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5),
              0 0 40px rgba(0, 255, 255, 0.3);
}

.btn-cyberpunk:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8),
              0 0 60px rgba(0, 255, 255, 0.5);
  animation: pulse 1s infinite;
}

.btn-cyberpunk::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-cyberpunk:hover::before {
  left: 100%;

}
/* -------------------------
   Mobile responsiveness fixes
   Appended Nov 3, 2025
   ------------------------- */

/* Prevent any accidental horizontal scroll on small devices */
body {
  overflow-x: hidden;
}

/* Header flex wrapper (replaces inline styles in index.html/about.html) */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Small screens adjustments */
@media (max-width: 600px) {

  /* Scale header text so it doesn't overflow */
  .header h1 {
    font-size: 2rem;     /* reduced from 4rem */
    line-height: 1.1;
    word-break: break-word;
  }
  .header p {
    font-size: 0.8rem;
  }

  /* Stack header content vertically */
  .header-flex {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Stack buttons / make them full width */
  .button-group {
    flex-direction: column;
    gap: 8px;
  }
  .button-group .btn {
    width: 100%;
  }

  /* Reduce padding to fit small screens */
  body {
    padding: 10px;
  }
  .step-card {
    padding: 15px;
  }

  /* Upload area text smaller */
  .upload-placeholder p,
  .upload-placeholder small {
    font-size: 0.75rem;
  }

  /* Make cropping instruction text smaller */
  .crop-instructions {
    font-size: 0.75rem;
  }

  /* Ensure grids become single column */
  .exams-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Make preview image responsive and not exceed container */
  .preview-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Make the container more compact */
  .container {
    margin: 0 auto;
    border-radius: 6px;
  }
}

/* Override preview-image default fixed width */
.preview-image {
  max-width: 100%;
  height: auto;
}
body {
  color: #e8e8e8;
}

.upload-placeholder p,
.upload-placeholder small {
  color: #cccccc !important;
}

footer p,
.disclaimer {
  color: #cccccc !important;
}
