  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Roboto&display=swap');

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
    height: 100%;
      display: flex;
  flex-direction: column;
}

header {
  
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* Navigation Bar */

/* Main Layout */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 240px);
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  text-align: center;
    flex: 1;
  margin: 2rem auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

/* Tool Cards - 4 Column Grid */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.tool-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tool-card h3 {
  font-size: 1.4rem;
  color: #e0e6f1;
}

.tool-card p {
  font-size: 1rem;
  color: #a0b0c5;
  margin-bottom: 20px;
}

button {
  padding: 12px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 20px 10px;
  text-align: center;
}

footer .footer-links {
  margin-top: 10px;
}

footer .footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.95rem;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

.file-input,
.dimension-input {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin: 5px;
  width: 120px;
}

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
      font-family: 'Roboto', sans-serif;
      color: #e0e6f1;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      align-items: center;
      padding: 20px;
      user-select: none;
    }

    h1 {
      font-family: 'Orbitron', sans-serif;
      font-weight: 500;
      font-size: 2rem;
      margin-bottom: 2em;
      color: #00fff7;
            padding: 20px;

    }

    p {
      font-size: 1.2rem;
      color: #a0b0c5;
      margin-bottom: 2em;
      text-align: center;
      max-width: 500px;
      user-select: none;
    }

    .converter-container {
      background: rgba(10, 20, 30, 0.85);
      border-radius: 18px;
      box-shadow: 0 0 30px #00fff7a0;
      padding: 30px;
      max-width: 900px;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }

    /* Drag & Drop zone */
    #dropZone {
      border: 3px dashed #00fff7;
      border-radius: 15px;
      height: 300px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 0.3s ease;
      user-select: none;
      text-align: center;
      padding: 20px;
    }

    #dropZone.dragover {
      background-color: #005f5f33;
    }

    #dropZone svg {
      width: 80px;
      height: 80px;
      margin-bottom: 15px;
      fill: #00fff7;
      filter: drop-shadow(0 0 6px #00fff7);
    }

    #dropZone p {
      font-weight: 600;
      font-size: 1.1rem;
      color: #00fff7;
      user-select: none;
    }

    #fileInput {
      display: none;
    }

    /* Format selection */
    .format-select {
      margin-bottom: 25px;
      color: #00fff7;
      font-weight: 600;
      font-size: 1.2rem;
    }

    select {
      width: 100%;
      padding: 10px 15px;
      font-size: 1.1rem;
      border-radius: 12px;
      border: none;
      background: #002f3f;
      color: #00fff7;
      cursor: pointer;
      transition: box-shadow 0.3s ease;
      font-family: 'Orbitron', monospace;
    }

    select:hover, select:focus {
      outline: none;
      box-shadow: 0 0 10px #00fff7;
      background: #004959;
    }

    /* Preview containers */
    .preview-container {
      background: #011f2f;
      border-radius: 15px;
      padding: 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
      user-select: none;
    }

    .preview-container h3 {
      font-family: 'Orbitron', monospace;
      color: #00fff7;
      margin: 10px 0;
      font-weight: 600;
      font-size: 1.3rem;
      letter-spacing: 1px;
    }

    .preview-image {
      max-width: 100%;
      max-height: 250px;
      border-radius: 10px;
      box-shadow: 0 0 15px #00fff7aa;
      background: #022e3f;
      object-fit: contain;
    }

    /* Buttons */
    button {
      margin-top: 20px;
      padding: 14px 30px;
      font-size: 1.2rem;
      font-family: 'Orbitron', monospace;
      font-weight: 700;
      color: #002f3f;
      background: #00fff7;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: background-color 0.3s ease, color 0.3s ease;
      user-select: none;
    }

    button:disabled {
      background: #00495988;
      cursor: not-allowed;
      box-shadow: none;
      color: #002f3faa;
    }

    button:hover:not(:disabled) {
      background-color: #00d9db;
      color: #001f23;
    }

    /* Responsive */
    @media (max-width: 700px) {
      .converter-container {
        grid-template-columns: 1fr;
      }
      #dropZone {
        height: 220px;
      }
    }