/* --------------------------------------------------
   IMPORT PIXEL FONT
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --------------------------------------------------
   ROOT VARIABLES
-------------------------------------------------- */
:root {
  /* 1) Overall page background (dusty navy/blue) */
  --bg-dark: #424A65;

  /* 2) Content boxes or panels (slightly lighter blue) */
  --bg-content: #50597A;

  /* 3) Primary text (light gray) */
  --text-primary: #E2E2E2;

  /* 4) Secondary text or placeholders (softer gray) */
  --text-secondary: #B4B4B4;

  /* 5) Accent color (warm orange) for primary buttons & highlights */
  --accent: #F2A24B;

  /* 6) Accent hover (darker orange for hover states) */
  --accent-hover: #D8873F;

  /* 7) “NEW” label or special highlight (slightly brighter orange) */
  --highlight: #FFB347;

  /* 8) Deep black for text shadows, outlines, or subtle contrasts */
  --black: #000000;

  /* Derived values for list items */
  --list-bg: var(--bg-dark);
  --list-text: var(--text-primary);
  --list-hover-bg: var(--bg-content);
}

/* --------------------------------------------------
   GLOBAL / BODY
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;

  /* PIXEL FONT STYLING */
  font-family: 'Press Start 2P', sans-serif;
  font-size: 12px;          /* Reduced base font size */
  line-height: 1.3;
  letter-spacing: 0.5px;     /* Tighter letter spacing */
  text-transform: uppercase;

  /* PIXEL-ART OUTLINE */
  text-shadow: 
    1px 1px 0 var(--black),
    -1px 1px 0 var(--black),
    1px -1px 0 var(--black),
    -1px -1px 0 var(--black);
}

/* --------------------------------------------------
   LINKS
-------------------------------------------------- */
a {
  color: #FEDCA8;
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8); /* Strong glowing effect */
}



a:hover {
  color: #E69349; /* Slightly lighter blue on hover */
  text-decoration: underline; /* Add underline on hover */
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
header {
  text-align: center;
  margin: 10px 0;
}

header h1 {
  font-size: 2rem;          /* Reduced from 3rem */
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow: 
    2px 2px 0 var(--black),
    -2px 2px 0 var(--black),
    2px -2px 0 var(--black),
    -2px -2px 0 var(--black);
}

header p {
  font-size: 0.8rem;        /* Smaller description text */
  color: var(--text-primary);
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
button,
.back-button {
  position: relative;
  overflow: hidden; /* Ensures the shine stays within the button */
  padding: 8px 16px;
  font-size: 0.9rem;
  margin: 5px;
  cursor: pointer;
  border-radius: 0;
  border: none;
  background-color: var(--accent);
  color: var(--black);
  text-shadow: none;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Add the shine effect */
button::before,
.back-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;button,
  .back-button {
    position: relative;
    overflow: hidden; /* Ensures the shine effect stays within the button */
    padding: 8px 16px;
    font-size: 0.9rem;
    margin: 5px;
    cursor: pointer;
    border-radius: 0;
    border: none;
    background-color: var(--accent);
    color: var(--black);
    text-shadow: none;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  }
  
  /* Shine Effect */
  button::before,
  .back-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; /* Start way off-screen */
    width: 150%; /* Makes sure the shine fully covers the button */
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
  }
  
  /* Shine moves left to right on hover, then right to left when hover ends */
  button:hover::before,
  .back-button:hover::before {
    animation: shine-slide 1s forwards;
  }
  
  /* Define the shine animation */
  @keyframes shine-slide {
    0% {
      left: -150%;
    }
    50% {
      left: 100%;
    }
    100% {
      left: -150%;
    }
  }
  
  /* Hover effects */
  button:hover,
  .back-button:hover {
    background-color: #FF9334;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform 0.6s ease-in-out;
}

/* Shine moves left to right on hover */
button:hover::before,
.back-button:hover::before {
  transform: translateX(100%);
}

/* Shine moves back right to left on release */
button:active::before,
.back-button:active::before {
  transition: transform 0.3s ease-out;
  transform: translateX(-100%);
}

/* Hover Effects */
button:hover,
.back-button:hover {
  background-color: #FF9334;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------
   MOBILE RESPONSIVENESS for Home Page Buttons
-------------------------------------------------- */
/* This section restores the styling that made the home page buttons look nice on mobile devices */
@media (max-width: 600px) {
  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5px;
  }
  
  button {
    font-size: 0.8rem;
    margin: 5px 0;
    padding: 6px 10px;
    width: 85%;
    max-width: 250px;
  }
}

/* --------------------------------------------------
   CONTENT SECTIONS
-------------------------------------------------- */
#quickSteps {
  display: block;
}


.content {
  text-align: center;
  margin: 15px auto; /* Centering */
  padding: 20px;
  background-color: var(--bg-content); /* Ensure background is present */
  color: var(--text-primary);
  border-radius: 10px; /* Ensure rounded corners */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Add shadow to match */
  width: 90%;
  max-width: 600px;
  display: block; /* Make sure it's visible */
}



#landingPage {
  display: block; /* Visible by default */
}

.content h2 {
  font-size: 1.6rem !important;
}

.content ul {
  list-style-type: none;
  padding: 0;
}

.content ul li {
  font-size: 0.8rem !important;
  padding: 4px;
}



/* Section Title */
.section-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 0.3rem;
  text-align: center;
}

/* --------------------------------------------------
   INFO LIST
-------------------------------------------------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

code {
  background-color: var(--black);
  color: var(--text-primary);
  padding: 0.05rem 0.2rem; /* Slimmer padding */
  border-radius: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1;
  vertical-align: middle; /* Aligns better with surrounding text */
  position: relative;
  top: -2px; /* Moves it up slightly */
}



/* --------------------------------------------------
   ADMIN ITEM
-------------------------------------------------- */
.admin-item span {
  margin-right: 6px;
  font-weight: bold;
  color: var(--accent);
}

/* --------------------------------------------------
   LEADERBOARD
-------------------------------------------------- */
/* ------------------------- */
/* Generic Hover for Lower Ranks (4+) */
/* ------------------------- */
.leaderboard-item:not(:nth-child(-n+3)):hover {
  background-color: rgba(55, 60, 80, 1); /* Hover background only for lower ranks */
  transform: scale(1.02);               /* Subtle zoom effect */
}

/* ------------------------- */
/* Hover for Top 3 Items (Maintain Background) */
/* ------------------------- */
.leaderboard-item:nth-child(-n+3):hover {
  transform: scale(1.02);  /* Only scale, background remains unchanged */
}

/* ------------------------- */
/* User Link Styling */
/* ------------------------- */
.leaderboard-item a {
  color: #E0E0E0; /* Light gray for visibility */
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 10px;
  text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.9);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Link Hover Effect */
.leaderboard-item a:hover {
  color: #FFD700; /* Bright gold on hover */
  text-shadow: 7px 7px 11px rgba(0, 0, 0, 1);
}

/* ------------------------- */
/* Information Details */
/* ------------------------- */
.leaderboard-item span {
  font-size: 0.9rem;
  color: #f4f4f9;
  margin-left: 10px;
}

/* Ensure smooth transitions for all top-three effects */
.leaderboard-item:nth-child(-n+3) {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ------------------------- */
/* Top Three Items Styling */
/* ------------------------- */

/* 1st Place Styling */
.leaderboard-item:nth-child(1) {
  background-color: #ddbc00; /* Gold for 1st place */
  color: #000; /* Black text for contrast */
  font-weight: bold;
}

/* 1st Place Hover - Brighter Gold with Fun Effects */
.leaderboard-item:nth-child(1):hover {
  background-color: #ffd700; /* Brighter gold on hover */
  color: #000;
  transform: scale(1.03) rotate(1deg); /* Slightly larger & rotated */
  box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.5); /* Glowing gold shadow */
}

/* 2nd Place */
.leaderboard-item:nth-child(2) {
  background-color: #c0c0c0; /* Silver */
  color: #000;
  font-weight: bold;
}

/* 2nd Place Hover - Brighter Silver with Fun Effects */
.leaderboard-item:nth-child(2):hover {
  background-color: #dcdcdc; /* Brighter silver on hover */
  color: #000;
  transform: scale(1.03) rotate(-1deg); /* Slight scale & opposite rotation */
  box-shadow: 0 0 20px 5px rgba(220, 220, 220, 0.5); /* Glowing silver shadow */
}

/* 3rd Place */
.leaderboard-item:nth-child(3) {
  background-color: #cd7f32; /* Bronze */
  color: #000;
  font-weight: bold;
}

/* 3rd Place Hover - Brighter Bronze with Fun Effects */
.leaderboard-item:nth-child(3):hover {
  background-color: #e2a56d; /* Brighter bronze on hover */
  color: #000;
  transform: scale(1.03) rotate(1deg); /* Slight scale & rotation */
  box-shadow: 0 0 20px 5px rgba(226, 165, 109, 0.5); /* Glowing bronze shadow */
}


/* (Optional: Add a hover rule for 3rd place if needed) */

/* ------------------------- */
/* Responsive Design Adjustments */
/* ------------------------- */
@media (max-width: 600px) {
  .leaderboard-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .leaderboard-item span {
    margin-left: 0;
    margin-top: 5px;
  }
}


/* --------------------------------------------------
   REFRESH BUTTON
-------------------------------------------------- */
.refresh-button {
  display: inline-block;
  width: 130px;
  height: 35px;
  line-height: 35px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  background-color: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  margin: 0 auto 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   GENERAL LIST CONTAINERS
-------------------------------------------------- */
#leaderboardList,
.admin-list,
.giveaway-list,
.shop-list,
.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* --------------------------------------------------
   GENERAL ITEM STYLES
-------------------------------------------------- */
.leaderboard-item,
.admin-item,
.shop-item,
.giveaway-item,
.job-item,
.raffle-item {
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--list-bg);
  color: var(--list-text);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  word-break: break-word;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 500px;
  width: 100%;
}

.leaderboard-item:hover,
.admin-item:hover,
.shop-item:hover,
.giveaway-item:hover,
.job-item:hover {
  background-color: var(--list-hover-bg);
  transform: scale(1.02);
}


/* Slimmer Admin/Job Items */
.admin-item,
.job-item {
  padding: 4px 8px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  max-width: 380px;
  width: 85%;
  line-height: 1.2;
  border-radius: 4px;
}

.admin-item,
.job-list {
  gap: 4px;
  padding: 4px;
}

.admin-item p,
.job-item p {
  margin: 2px 0;
}

.shop-instructions li {
  margin-left: 20px; /* Indents the list items */
  padding: 10px 0 !important; /* Adds spacing between items */
}


/* --------------------------------------------------
   GIVEAWAY ITEM
-------------------------------------------------- */
.giveaway-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.giveaway-name {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  margin: 4px 0;
  text-align: center;
  width: 100%;
  margin-top: -10px;
}

.giveaway-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  text-align: left;
  margin-top: -8px;
}

/*.giveaway-content a {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  color: var(--list-text);
}*/

.giveaway-content p {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  flex: 1;
  text-align: left;
}

.giveaway-info {
  padding-top: 10px;
  
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .giveaway-content {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* --------------------------------------------------
   GLOW EFFECT FOR ENTERED GIVEAWAYS
-------------------------------------------------- */
.giveaway-item.glowing {
  border: 2px solid gold;
  box-shadow: 0 0 15px 5px rgba(255, 223, 0, 0.8);
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 5px 2px rgba(255, 223, 0, 0.5); }
  50% { box-shadow: 0 0 15px 5px rgba(255, 223, 0, 0.8); }
  100% { box-shadow: 0 0 5px 2px rgba(255, 223, 0, 0.5); }
}


/* --------------------------------------------------
   COUNTDOWN / TIMER
-------------------------------------------------- */
.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  width: 90%;
  max-width: 400px;
  margin: 10px auto;
  font-family: 'VT323';
  size:small;
}

.countdown-container h3 {
  font-family: 'Press Start 2P';
  size:small;
  margin: 0;
  color: var(--accent);
  text-align: center;
}

.countdown-timer {
  font-family: Courier, monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: #404A65; /* Extracted from image */
  background: linear-gradient(90deg, var(--text-primary), var(--accent));
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 0 8px rgba(242, 162, 75, 0.8);
  letter-spacing: 1px;
}




.countdown-container h3,
.countdown-timer {
  margin: 0.2rem 0;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(242, 162, 75, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(242, 162, 75, 1);
  }
}

/* ---------------------------------------------
   Daily Tasks Section - Smaller Text for Task List
--------------------------------------------- */
#dailyTasksList,
#dailyTasksList li,
#dailyTasksList li a,
#dailyTasksList li code {
  font-size: 0.66rem !important;  /* Adjust the size as desired */
  line-height: 1.6 !important;   /* Optional: adjust line spacing if needed */
}


/* Enhanced Console Styling */
.console-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Subtle gradient background */
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1c1f2a 100%);
  color: var(--text-primary);
  border: 2px solid var(--bg-content);
  border-radius: 6px;
  padding: 6px;
  margin: 10px auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  line-height: 1.3;
  box-shadow: 0 0 8px rgba(64, 74, 94, 0.6);
  /* Fade in new items if desired */
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column-reverse;
}

.console-box::-webkit-scrollbar {
  width: 6px;
}

.console-box::-webkit-scrollbar-track {
  background: var(--black);
}

.console-box::-webkit-scrollbar-thumb {
  background: var(--bg-content);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.console-box::-webkit-scrollbar-thumb:hover {
  background: #3B455E;
}

.console-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.log-item {
  padding: 3px 4px;
  border-bottom: 1px solid rgba(226, 226, 226, 0.3);
  background: rgba(80, 89, 122, 0.1);
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  overflow-x: hidden;
  border-radius: 3px;
  text-align: left;
  /* Transition for hover */
  transition: background-color 0.3s ease;
}

.log-item:hover {
  background-color: rgba(130, 140, 180, 0.15);
}

.log-item:last-child {
  border-bottom: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .console-box {
    width: 95%;
    max-width: 100%;
    min-height: 250px;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 10px;
    padding: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
    text-align: left;
    line-height: 1.4;
    display: block;
  }

  .log-item {
    font-size: 10px;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
    text-align: left;
    padding: 6px;
  }

  .console-box::-webkit-scrollbar {
    width: 4px;
  }

  /* Prevents page-wide horizontal scrolling */
  body {
    overflow-x: hidden;
  }
}

.raffle-item-wrapper {
  display: flex;
  justify-content: center; /* ✅ Centers horizontally */
  width: 100%;
}
/* Adjust text */
.raffle-item span {
  text-align: center;
  display: block;
  padding: 5px 0;
  line-height: 1.4;
}
/* Hover effects */
.raffle-item:hover {
  background-color: var(--list-hover-bg);
  transform: scale(1.02);
}


/*------------------------------- User Info --------------------------------*/


@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

#voltMenu {
  font-family: 'Press Start 2P', sans-serif; /* Retro Pixel Font */
  text-align: center;
  min-width: 180px; /* Prevents weird wrapping */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Subtle Glow */
}

#voltBalance {
  display: block; /* Ensures it's on a new line */
  margin-top: 5px;
  text-shadow: 0px 0px 6px rgba(0, 255, 0, 0.8); /* Softer Green Glow */
}

.glow-text {
  text-shadow: 0px 0px 6px rgba(0, 255, 0, 0.8), 
               0px 0px 12px rgba(0, 255, 0, 0.6);
}

/* --------------------------------------------------
   INVENTORY PAGE FIXES
-------------------------------------------------- */
#inventorySection {
  text-align: center;
  width: 100%;
  max-width: 600px; /* Matches other content boxes */
  margin: 0 auto;
  padding: 20px;
  background-color: var(--bg-content);
  border-radius: 10px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Ensures inventory items are properly centered */
.inventory-item {
  background-color: var(--bg-dark); /* Matches other panels */
  border: none !important; /* Removes unwanted border */
  padding: 12px;
  margin: 10px auto; /* Centering */
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
}

.inventory-item:hover {
  background-color: var(--bg-content);
  transform: scale(1.02);
}

/* Centers the item title */
.inventory-item h3 {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Properly formats item descriptions */
.inventory-item p {
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.4;
}

/* No Items Message */
.no-items {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 10px;
}

/* =====================================
   Purchase Confirmation Modal
====================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background: var(--bg-content);
  color: var(--text-primary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  max-width: 400px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.confirm-button,
.cancel-button {
  padding: 8px 16px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.confirm-button {
  background-color: var(--accent);
  color: var(--black);
}

.cancel-button {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

.confirm-button:hover {
  background-color: var(--accent-hover);
}

.cancel-button:hover {
  background-color: var(--list-hover-bg);
}

/* ------------------------------
   Job Submission Modal
------------------------------ */
#jobSubmissionModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal Content - Light Gray Box */
#jobSubmissionModal .modal-content {
  background: var(--bg-content); /* Light gray box */
  color: var(--text-primary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.6);
  max-width: 450px;
  width: 90%;
}

/* Title */
#jobSubmissionModal h2 {
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px black;
}

/* Labels */
#jobSubmissionModal label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: left;
  margin: 10px 0 5px;
}

/* Inputs */
#jobSubmissionModal textarea,
#jobSubmissionModal input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--text-secondary);
  background: #1C1E29;
  color: var(--text-primary);
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ------------------------------
   Drag & Drop Upload Area
------------------------------ */
#dropArea {
  border: 2px dashed var(--text-secondary);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.1); /* Light gray box effect */
  border-radius: 5px;
}

#dropArea:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ------------------------------
   Image Preview (Hidden by Default)
------------------------------ */
#imagePreviewContainer {
  display: none;
  text-align: center;
  margin-top: 10px;
}

#imagePreview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 5px;
  border: 1px solid var(--text-secondary);
  display: none; /* Ensures it only appears when an image is uploaded */
}

/* Remove Button */
#removeImage {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none; /* Hidden by default */
}

#removeImage:hover {
  background: var(--accent-hover);
}

/* ------------------------------
   Buttons
------------------------------ */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

#cancelSubmissionButton,
#sendSubmissionButton {
  padding: 10px 18px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

#sendSubmissionButton {
  background-color: var(--accent);
  color: var(--black);
}

#cancelSubmissionButton {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

#sendSubmissionButton:hover {
  background-color: var(--accent-hover);
}

#cancelSubmissionButton:hover {
  background-color: var(--list-hover-bg);
}


/* --------------------------------------------------
   CUSTOM ALERT STYLING
-------------------------------------------------- */
.custom-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--highlight);
  color: var(--black);
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  text-shadow: 1px 1px 2px var(--black);
}

/* Animation to slide in */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Animation to slide out */
@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background-color: #537ADE;
  font-size: 0.5rem;
  color: var(--text-primary);
  text-align: center;
  padding: 0.8rem 0;
  width: 100%;
  
  display: flex;
  flex-direction: column;
  margin-top: auto; /* Pushes the footer down */
}

footer p {
  margin: 0.3rem 0;
}

footer p strong {
  color: var(--accent);
}
