/* I am going with a cyberpunk inspired theme */
:root {
    --neon-purple: #8a2be2; /* Neon Purple */
    --cyber-blue: #15c9d6; /* Electric Cyan */
    --glitch-pink: #ff1493; /* Glitch Pink */
    --grid-gray: rgba(255, 255, 255, 0.1); /* Subtle Grid Color */
    --text-glow: rgba(98, 43, 226, 0.8); /* Text Glow */
    --bg-dark: #0a0a0a; /* Deep Black Background */
    --outline-color: rgba(255, 255, 255, 0.05); /* Protoimage Outline */
    --accent-color: #0eb7e6; /* Electric Cyan Accent */ 
  }
  
  html, body {
    height: 100%;
    margin: 0;
    font-family: 'Orbitron', sans-serif; /* bladerunner inspired */
    color: #00eaff;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden; /* Prevent scrollbars */
  }
  
  .slide-in-container {
    opacity: 0;
    transform: translateX(-100%); 
    animation: slideIn 1s ease-out forwards; 
  }
  
  @keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%); 
    }
    to {
        opacity: 1;
        transform: translateX(0); 
    }
  }
  
  /* Protoimage Background */
  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--grid-gray) 0px,
        var(--grid-gray) 1px,
        transparent 1px,
        transparent 20px
    ),
    radial-gradient(circle, var(--outline-color) 10%, transparent 60%);
    background-size: 30px 30px, 50% 50%;
    opacity: 0.3;
    z-index: -1;
  }
  
  /* Ghostly Protoimage Outlines */
  body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: url('salvagenes.jpeg')  center/contain no-repeat;
    opacity: 0.1;
    z-index: -1;
    animation: rotateImage 20s linear infinite;
  }
  
  @keyframes rotateImage {
    from {
        transform: translate(-100%, -100%) rotate(0deg); 
    }
    to {
        transform: translate(-50%, 50%) rotate(360deg); 
    }
  }
  .portal-container {
    background: radial-gradient(circle, var(--neon-purple), var(--cyber-blue) 80%);
    padding: 2rem;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--cyber-blue), 0 0 50px var(--glitch-pink);
    border: 2px solid var(--neon-purple);
    position: relative;
    width: 250px;
    height: 250px;
    animation: pulseGlow 3s infinite alternate;
  }
  
  @keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 30px var(--cyber-blue), 0 0 50px var(--glitch-pink);
    }
    50% {
        box-shadow: 0 0 40px var(--glitch-pink), 0 0 60px var(--cyber-blue);
    }
  }
  
  /* Portal Content */
  .portal-content {
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent */
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    color: var(--accent-color); /* Use Accent Color */
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 0 10px var(--glitch-pink);
  }
  .image-container {
    width: 700px; /* Adjust width as needed */
    height: auto; 
    overflow: hidden; /* Hide overflow */
  }
  
  .hero-image {
    width: 240px; /* Image fills the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Crop to fit */
  }
  
  .vip-lounge a {
    font-size: 1.5rem; /* Increase font size for garbage access link*/
    letter-spacing: 3px; /* Add letter spacing */
    font-weight: bold; /* Make text bold */
    color: #ff0000; /* Example: Red color */
    text-decoration: none; 
  }
  .form-group {
    margin-bottom: 1rem; /* Adjust the value as needed */
}
.form-container {
  background-color:  rgba(0, 0, 0, 0.8);
  padding: 20px; 
}
  /* Typography */
  
  h1 {
    font-family: 'Electroharmonix', sans-serif; 
    /* Fallback if Electroharmonix is not available */
    font-size: 1.5rem;
    color: var(--accent-color); /* Use Accent Color */
    text-shadow: 0 0 15px var(--text-glow), 0 0 25px var(--neon-purple);
    margin-bottom: 1rem;
  }
  
  p {
    font-family: 'Haettenschweiler', sans-serif;
    /* Fallback if Haettenschweiler is not available */
    font-size: 1.2rem;
    color: var(--accent-color); /* Use Accent Color */
    text-shadow: 0 0 10px var(--glitch-pink);
  }
  
  h1:hover, p:hover {
    color: #fff; /* White on hover */
    text-shadow: 0 0 5px var(--accent-color); /* Subtle glow on hover */
  }
  
  .btn {
    display: inline-block;
    background: var(--accent-color); /* Use Accent Color */
    color: #000; /* Black text on yellow */
    padding: 0.375rem .55rem;
    border-radius: 15px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Press Start 2P', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--glitch-pink), 0 0 20px var(--cyber-blue);
    transition: all;
  }
  
  nav a {
    color: var(--accent-color); 
    text-decoration: none;
    margin: 0 1rem; 
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: pulseLink 1s infinite alternate;
  }
  /*login and sign up buttons to hover and be visible */
  
  nav a:hover {
    background-color: rgba(255, 255, 255, 0.1); 
  }
  
  @keyframes pulseLink {
    0%, 100% {
      box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); 
    }
    50% {
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    }
  }

  /* Search and Filter Styles */
  .search-filter-section {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--cyber-blue);
    box-shadow: 0 0 15px var(--cyber-blue);
  }

  .search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .search-row {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--cyber-blue);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
  }

  .search-input:focus {
    outline: none;
    border-color: var(--glitch-pink);
    box-shadow: 0 0 10px var(--glitch-pink);
  }

  .filter-select {
    padding: 0.5rem;
    border: 2px solid var(--cyber-blue);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    min-width: 120px;
  }

  .filter-select:focus {
    outline: none;
    border-color: var(--glitch-pink);
    box-shadow: 0 0 8px var(--glitch-pink);
  }

  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cyber-blue);
  }

  /* Table Styles */
  .table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cyber-blue);
  }

  .table th,
  .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .table th {
    background: rgba(0, 0, 0, 0.9);
    color: var(--cyber-blue);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .table td {
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
  }

  .table tr:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  /* Status Badge Styles */
  .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .status-available {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
  }

  .status-on-loan {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
  }

  .status-pending {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid #ffff00;
  }

  .status-accepted {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
  }

  .status-denied {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
  }

  .status-requested {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid #ffff00;
  }

  .status-accepted {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
  }

  .status-borrowed {
    background: rgba(0, 0, 255, 0.2);
    color: #0000ff;
    border: 1px solid #0000ff;
  }

  .status-returned {
    background: rgba(128, 128, 128, 0.2);
    color: #808080;
    border: 1px solid #808080;
  }

  /* Button Variations */
  .btn-primary {
    background: var(--cyber-blue);
    color: #000;
  }

  .btn-secondary {
    background: var(--neon-purple);
    color: #fff;
  }

  .btn-warning {
    background: #ffa500;
    color: #000;
  }

  .btn-danger {
    background: #ff0000;
    color: #fff;
  }

  .btn-success {
    background: #00ff00;
    color: #000;
  }

  .inline-form {
    display: inline;
  }

  .inline-form button {
    margin-left: 0.5rem;
  }

  /* Page Actions */
  .page-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .page-actions .btn {
    flex: 1;
    min-width: 150px;
  }

  /* Community Inventory Styles */
  .community-subtitle {
    text-align: center;
    color: var(--cyber-blue);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
  }

  .community-stats {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--cyber-blue);
    box-shadow: 0 0 15px var(--cyber-blue);
  }

  .community-stats h3 {
    color: var(--cyber-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--neon-purple);
    transition: all 0.3s ease;
  }

  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--neon-purple);
  }

  .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--glitch-pink);
    margin-bottom: 0.5rem;
  }

  .stat-label {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .top-contributors {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glitch-pink);
  }

  .top-contributors h4 {
    color: var(--glitch-pink);
    margin-bottom: 1rem;
    text-align: center;
  }

  .contributors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .contributor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border-left: 3px solid var(--cyber-blue);
  }

  .contributor-rank {
    color: var(--cyber-blue);
    font-weight: bold;
    font-size: 0.9rem;
  }

  .contributor-name {
    color: var(--accent-color);
    font-weight: bold;
  }

  .contributor-count {
    color: var(--glitch-pink);
    font-size: 0.8rem;
  }

  /* Items Grid */
  .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  .item-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cyber-blue);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(21, 201, 214, 0.2);
  }

  .item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--cyber-blue);
  }

  .item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .item-card:hover .item-image img {
    transform: scale(1.05);
  }

  .item-info {
    padding: 1.5rem;
  }

  .item-name {
    color: var(--cyber-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }

  .item-description {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .item-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .item-category,
  .item-condition {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--neon-purple);
  }

  .item-owner {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .owner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .owner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--cyber-blue);
  }

  .owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .owner-details {
    flex: 1;
  }

  .owner-name {
    color: var(--cyber-blue);
    font-weight: bold;
    font-size: 1rem;
  }

  .owner-location {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }

  .item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .item-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  .no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 1px solid var(--cyber-blue);
  }

  .no-items p {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .search-row,
    .filter-row {
      flex-direction: column;
      align-items: stretch;
    }

    .table {
      font-size: 0.8rem;
    }

    .table th,
    .table td {
      padding: 0.5rem;
    }

    .items-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

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

    .contributor-item {
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }

    .item-actions {
      flex-direction: column;
    }

    .item-actions .btn {
      width: 100%;
    }
  }
  