/*MAIN SECTION*/
a:link, a:visited, a:hover, a:active {
    /* color: orange; */
    text-decoration: none;
}

:root {
  --color-sub: #2d2d39;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.content {
    margin-left: 200px; /* Change if changing size of nagivation bar*/
    padding-left: 20px;
}

.orange_container{
  background-color: #fb8a00;
  color: white;
  width: full;
  font-weight: bold;
  padding-left: 5%;
  padding-right: 5%;
  border-radius: 15px;
}

.black_container{
  background-color: #111;
  color: white;
  width: full;
  font-weight: bold;
  padding-left: 5%;
  padding-right: 5%;
  border-radius: 15px;
}

.white_container{
  background-color: white;
  color: black;
  width: full;
  font-weight: bold;
  padding-left: 5%;
  padding-right: 5%;
  border-radius: 15px;
}

.image_container {
  padding: 20px;
  border: none;
  display: inline-flex;
}
.image_container img{
  max-width: 100%;
  height: auto;
}
/* BUTTONS */
.button_start {
    border-radius: 15px;
    background-color: #fb8b00;
    border: none;
    padding: 12px 40px;
}

.button_start a{
    color:black;
    text-decoration: none;
    cursor: default;
}

.button_next {
    border-radius: 15px;
    background-color: gray;
    text-decoration: none;
    cursor: default;
    border:none;
    padding:12px 40px;
    color: white;  
}

.button_return {
    border-radius: 15px;
    background-color: #111;
    border: none;
    padding: 12px 40px;
    color: white;

}
.button_return a{
    color: white;
    text-decoration: none;
    cursor: default;
  
}

.loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Show the spinner when loading */
.loading .loading-spinner {
    display: inline-block;
  }
  
  /* Loading spinner animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

/* ===========================

NAVGIATION BAR

==============================
*/
.sidebar {
    height: 100%;
    width: 200px; /*must match index of .content*/
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    overflow-y: auto;
}

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

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: white;
    padding: 15px;
    text-decoration: none;
}

/* .nav-list a:hover {
    background-color: #575757;
} */

.dropdown-menu {
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #444;
    /* position: absolute; */
    top: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    /* z-index: 1000; */
}

.dropdown-menu li {
    border-bottom: 1px solid #555;
}

.dropdown-menu a {
    padding: 10px;
    color: white;
    display: block;
    text-decoration: none;
}

/* .dropdown-menu a:hover {
    background-color: #555;
} */

.dropdown:hover .dropdown-menu {
    display: block;
}


/* =====================
Table formatting 
=======================*/

table {
    width: 80%;
    margin-left: 10%;
    border-collapse: collapse;
    font-size: 18px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  th {
    padding: 12px 15px;
    background-color: #fb8b00;
  }
  
  td {
    padding: 12px 15px;
  }
  
  thead {
    background-color: #FFA500; /* Orange */
    color: #ffffff;
  }
  
  thead th a {
  color: inherit;       /* Use the same color as the parent <th> */
  text-decoration: none; /* Remove underline */
  display: block;        /* Makes the whole cell clickable */
  }

thead th a:hover {
  color: #fffacd;        /* Optional: change on hover (light yellow) */
  }
  tbody tr {
    border-bottom: 1px solid #dddddd;
  }
  
  tbody tr:nth-of-type(even) {
    background-color: #FFE4B5; /* Light Orange (Moccasin) */
  }
  
  tbody tr:last-of-type {
    border-bottom: 2px solid #FFA500; /* Orange */
  }
  
  tbody tr:hover {
    background-color: #FFDAB9; /* Lighter Orange (Peach Puff) */
  }
  
  /* Currency column formatting */
  .currency {
    text-align: right;
    font-weight: bold;
    color: #FFA500; /* Orange */
  }
  
  .volume {
    text-align: center;
  }

  .currency::before {
    content: "$";
    margin-right: 4px;
  }

  .price {
    text-align: right;
    font-weight: bold;
    color: #FFA500; /* Orange */
  }
  
  .price::before {
    content: "$";
    margin-right: 4px;
  }

  .sum-result {
    color: #fb8a00; /* Orange */
    font-weight: bold;
    font-size: 20px;
    margin-top: 20px;
    margin-right: 40px;
    margin-bottom: 20px;
    text-align: right;
}
/* =====================
FILTER FORM
=======================*/

.filter_form{
  width: 80%;
  margin: 20px auto;
  padding: 15px;
  background-color:  #fff8ef;
  border: 1px solid #ffd9a0;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(251, 139, 0, 0.1);
}

.filter_form input[type="text"],
.filter_form input[type="date"],
.filter_form select {
  padding: 8px 12px;
  margin: 5px 10px;
  border: 1px solid #fb8b00;
  border-radius: 6px;
  background-color: #fff5e6;
  color: #333;
  font-size: 16px;
  transition: border 0.2s;
}

.filter_form input[type="text"]:focus,
.filter_form input[type="date"]:focus,
.filter_form select:focus {
  border-color: #ff9900;
  outline: none;
}

.filter_form button {
  background-color: #fb8b00;
  color: white;
  padding: 10px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.filter_form button:hover {
  background-color: #e07700;
}
.clear-button {
  background-color: #e0e0e0;
  color: #333;
  padding: 8px 12px;
  margin-left: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.clear-button:hover {
  background-color: #ccc;
}
/* =====================
LOGIN PAGE
=======================*/

.auth {
  width: 100%;
  position: relative;
  z-index: 1;
  background: transparent;
  height: 99vh; /* vh = viewport height */
  display: flex; /*needed for formatting*/
  justify-content: center;
  align-items: center;
}

.auth::after{
  z-index: -1; /* places it behind objects with a higher z-index*/
  opacity: 0.1;
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.auth > .card {
  padding: 3rem 4rem;
  width: 60%;
  max-width: 65rem; /* means rem = root element. Represents the size of the root element
  /* background-color: #555; */
}

@media screen and (min-width: 750px) {
  .auth > .card {
    padding: 5rem 8rem;
    width: 95%;
    max-width: 65rem;
  }
}

.auth__header h3 {
  color: var(--color-sub);
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
  word-wrap: normal;
}

.auth__header p {
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.auth__form {
  margin: 3rem 0;
}

.auth .auth__form label,
.auth .auth__alternative p {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-sub-light);
  justify-content: center;
}

.auth .auth__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0;
}
.auth .auth__actions a {
  text-decoration: underline;
}

.auth .auth__alternative a {
  font-size: 2rem;
  font-weight: 500;
}

/* ==========
Form Section
============*/


/* Form container */
.custom_form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form heading */
.custom_form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Labels */
.custom_form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

/* Inputs and textarea */
.custom_form input, 
.custom_form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

/* Focus effect */
.custom_form input:focus, 
.custom_form textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Submit button */
.custom_form button {
  width: 100%;
  padding: 10px;
  background: #007bff;
  border: none;
  color: white;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Hover effect */
.custom_form button:hover {
  background: #0056b3;
}


/* ==========
File Upload
============*/


/* Form container */
.file_upload_form {
  text-align: left;
  /* margin: 20px; */
}

/* Hide default file input */
.file_upload_form input[type="file"] {
  display: none;
}

/* Custom file upload button */
.custom_file_upload {
  display: inline-block;
  padding: 10px 20px;
  background: gray;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Hover effect */
.custom_file_upload:hover {
  background: #fb8a00;
}


/* ==========
Date Form
============*/


/* Form container */
.date_form {
  text-align: left;
  margin: 20px;
}

/* Label styling */
.date_form label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: black;
  margin-bottom: 5px;
}

/* Date input styling */
.date_form input[type="date"] {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
  appearance: none; /* Removes default styles on some browsers */
}

/* Placeholder text formatting (for Chrome, Edge, Safari) */
.date_form input[type="date"]::-webkit-datetime-edit {
  color: #333;
  font-size: 16px;
}

/* Custom calendar icon */
.date_form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.date_form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Focus effect */
.date_form input[type="date"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


/* ==========
Profile Page
Unsure if will work or not
============*/


.container {
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 50px 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: 25%;
}
.profile-info{
  flex: 1;
  padding-right: 20px;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.button-1 {
  background:  #ff6600;
  color: black;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}
.button-1:hover {
  background: #fb8a00;
}

.button-2 {
  background: black;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}
.button-2:hover {
  background: #333;
}
/* ==========
HERO SECTION
Unsure if will work or not
============*/

/* potentially used in login section*/

.hero-section__search > .form input.input--text {
  width: 50rem;
}

@media screen and (max-width: 700px) {
  .hero-section__search > .form {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .hero-section__search > .form input.input--text,
  .hero-section__search > .form input {
    min-width: 100%;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {

  body {
    font-size: 16px;
  }

  .content {
    margin-left: 0;
    padding: 10px;
  }

  /* Responsive table */
  table {
    width: 100%;
    margin: 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
  }

  /* Responsive containers */
  .orange_container,
  .black_container,
  .white_container {
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
  }

  /* Image container stack */
  .image_container {
    display: block;
    padding: 10px;
    text-align: center;
  }

  /* Buttons stack and shrink */
  .button_start,
  .button_next,
  .button_return {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Filter form full-width */
  .filter_form {
    width: 95%;
    margin: 10px auto;
    padding: 10px;
  }

  /* Auth form shrink */
  .auth > .card {
    width: 90%;
    padding: 2rem;
  }

  /* Profile card responsiveness */
  .container {
    flex-direction: column;
    padding: 20px;
    align-items: center;
  }

  .card {
    width: 90%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info {
    padding-right: 0;
  }

  /* Form responsiveness */
  .custom_form {
    width: 90%;
    padding: 15px;
  }

  /* Date form input full width */
  .date_form input[type="date"] {
    max-width: 100%;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    border-radius: 5px;
  }

  .sidebar {
    width: 220px;
    position: fixed;
    top: 0;
    left: -240px;
    height: 100%;
    background-color: #333;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.open {
    left: 0;
  }


}


