/* -------------------------------
   CSS VARIABLES
---------------------------------- */
:root {
  --primary-color: #1565C0 ; /* Green blue */
  --secondary-color: #1E88E5 ; /* Bleu de France */
  --success-color: #4CAF50;  /* Pigment Green */
  --attention-color: #FFC107; /* Amber */
  --danger-color: #CE2F2F; /* Persian red */
  --background-color: #F5F5F5; /* White Smoke */
  --text-color: #212121;  /* Eerie Black */
  --primary-font: "Inter", sans-serif;
  --secondary-font: "Roboto", sans-serif;
}



/* -------------------------------
   GENERAL STYLING
---------------------------------- */

* {
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--primary-font);
    color: var(--text-color);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: large;
    line-height: 1.5;
    letter-spacing: 0.1rem;
  }
  
  p {
    margin:0;
    font-size: medium;
  }
  main {flex: 1;}
  
  /* -------------------------------
     HEADINGS
  ---------------------------------- */
  
  h1, h2 {
    margin: 0;
    font-family: var(--secondary-font);
    letter-spacing: 0;
  }
  
   h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  
  /* -------------------------------
     LINK STYLING
  ---------------------------------- */
  a, .custom-anchor {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-color); 
    transition: all 0.3s ease;
  }
  
  /*Active State*/
  a:active, .custom-anchor:active {
    color: var(--success-color); 
    border-bottom: 2px solid var(--success-color);
  }
  
  /*Hover State*/
  a:hover, a:active, .custom-anchor:hover  {
    color: var(--secondary-color); 
    border-bottom: 2px solid var(--secondary-color); 
  }
  
  /*Focus State*/
  a:focus-visible, .custom-focus-visible {
    outline: 3px dashed var(--attention-color); 
    outline-offset: 3px; 
  }
  
  
  /* -------------------------------
     BUTTONS
  ---------------------------------- */
  
  button {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary {
    color: white;
    background-color: var(--primary-color); 
  }
  
  .btn-danger {
    color: white;
    background-color: var(--danger-color); 
  }
  
  /* Hover States */
  
  button:hover, .btn-primary:hover {
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
  
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
  }
  
  
  /* Focus States */
  
  button:focus-visible, .btn-primary:focus-visible {
    outline: 3px dashed var(--attention-color);  
    outline-offset: 3px; 
    transform: translateY(-2px); 
  }
  button:focus, .btn-primary:focus {
    transform: translateY(-2px); 
  }
  
  
  .btn-round {
    border-radius: 50%;
    font-size: smaller;
  }
  .btn-primary:focus {
    background-color: var(--secondary-color);
  }
  
  /* Active States */
  
  button:active{
    transform: scale(0.98);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
  }
  
  .btn-primary:active {
    background-color: var(--success-color);
  }
  
  /* Disabled States */
  
  .btn-primary:disabled {
    background-color: #BDBDBD; 
    color: #FFFFFF; 
    cursor: not-allowed; 
    box-shadow: none; 
    opacity: 0.6; 
  }
  
  
  /* -------------------------------
     UTILITY CLASSES
  ---------------------------------- */
  
  .hidden {
    display: none;
  }
  
  .sr-only {
    /* Accessible Invisible Content (WEBAIM) 
    https://webaim.org/techniques/css/invisiblecontent */
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  /* -------------------------------
  NAVIGATION
  ---------------------------------- */
  nav {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 99;
    height: 60px;
    width: 100%;
    padding: 0 10px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-family: var(--secondary-font);
  }
  
  nav .navbar-branding {
    font-size: 100%;
    margin-left: 10px;
    font-weight: bold;
    display: none;
    letter-spacing: 0.1em;
  }
  
  nav .logo-image {
    height: 28px;
    width: auto;
    float: left;
    aspect-ratio: 1/1;
  }
  
  /* Hide the checkbox */
  #nav-toggle {
    display: none;
  }
  
  #nav-toggle-label i{
    font-size: 2rem;
    cursor: pointer;
  }
  
  #nav-toggle-label {
    margin-right: 10px;
  }
  
  /* Show menu when the checkbox is checked */
  #nav-toggle:checked ~ .nav-menu-list {
    display: block;
  }
  
  nav ul {
    padding-left: 15px;
  }
  
  .nav-menu-list {
    display: none;
    list-style-type: none;
    font-size: 120%;
    position: absolute;
    top: 32px;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0px 20px 20px -15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu-list > li {
    margin: 1rem 0;
  }
  
  
  /* Nav Links */
  nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 15px;
  }
  
  nav a.active {
    color: var(--primary-color);
  }
  
  nav a:hover, nav a.active:hover {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color); 
  }
  
  /* -------------------------------
  FOOTER
  ---------------------------------- */
  footer  {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    margin-bottom: 2rem;
  
  }
  
  
/* -------------------------------
   EMPTY STATE
---------------------------------- */
.empty-message {
  color: var(--primary-color);
  font-size: large;
  text-align: center;
  margin: 25% auto;
  width: 80%;
}
/* -------------------------------
TOAST NOTIFICATION
Code from: https://www.geeksforgeeks.org/how-to-make-a-toast-notification-in-html-css-and-javascript/
---------------------------------- */

.toast-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast-icon {
  padding: 0.35rem 0.5rem;
  font-size: 1.3rem;
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
  color: #000000;
  padding: 0.5rem;
  font-family: var(--secondary-font);
}

.toast {
  position: fixed;
  top: 25px;
  right: 25px;
  max-width: 300px;
  background: #fff;
  padding: 0.2rem;
  border-radius: 4px;
  box-shadow: -1px 1px 10px
      rgba(0, 0, 0, 0.3);
  z-index: 1023;
  animation: slideInRight 0.3s
          ease-in-out forwards,
      fadeOut 0.5s ease-in-out
          forwards 3s;
  transform: translateX(110%);
}

.toast.closing {
  animation: slideOutRight 0.5s
      ease-in-out forwards;
}

.toast-progress {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #b7b7b7;
  animation: toastProgress 3s
      ease-in-out forwards;
}

.toast.toast-success {
  background: #95eab8;
}

.toast.toast-success .toast-progress {
  background-color: var(--success-color);
}

.toast.toast-danger {
  background: #efaca5;
}

.toast.toast-danger .toast-progress {
  background-color: var(--danger-color);
}

.toast.toast-info {
  background: #bddaed;
}

.toast.toast-info .toast-progress {
  background-color: var(--primary-color);
}

.toast.toast-warning {
  background: #ead994;
}

.toast.toast-warning .toast-progress {
  background-color: var(--attention-color);
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #555;
  cursor: pointer;
  box-shadow: none;
}
.toast-close:hover {
  color: #000;
  box-shadow: none;
}

@keyframes slideInRight {
  0% {
      transform: translateX(110%);
  }

  75% {
      transform: translateX(-10%);
  }

  100% {
      transform: translateX(0%);
  }
}

@keyframes slideOutRight {
  0% {
      transform: translateX(0%);
  }

  25% {
      transform: translateX(-10%);
  }

  100% {
      transform: translateX(110%);
  }
}

@keyframes fadeOut {
  0% {
      opacity: 1;
  }

  100% {
      opacity: 0;
  }
}

@keyframes toastProgress {
  0% {
      width: 100%;
  }

  100% {
      width: 0%;
  }
}

/* -------------------------------
  MEDIA QUERY - TABLET (min-width: 768px)
---------------------------------- */

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

  /*navigation*/
  #nav-toggle-label {
    display: none; /* Hide hamburger menu */
}

.nav-menu-list {
    display: flex; /* Show nav items inline */
    position: static;
    width: auto;
    justify-content: flex-end;
    box-shadow: none;
    background-color: transparent;
}

.nav-menu-list > li {
    display: inline-block;
    margin-right: 15px;
}

}

/* -------------------------------
MEDIA QUERY - LARGE SCREEN (min-width: 992px)
---------------------------------- */


@media screen and (min-width: 992px) {
    /* Navbar */
    nav .navbar-branding {
      display: inline-block;
    }  
  
}

  