:root {
  /*  ---------- COLOUR STYLES ----------- */
  --primary-color: #1d63ed;
  --secondary-color: #1a59d5;
  --accent-color: #fe9a01;
  --text-color-1: #1e212a;
  --text-color-2: #324d5b;
  --color-selected: #0000ff;
  --color-borders: #e0e0e0;
  --color-pitch-black: #000;
  --color-black-950: #151515;
  --color-black-900: #1b1b1b;
  --color-black-800: #252525;
  --color-black-700: #2d2d2d;
  --color-black-500: #555555;
  --color-black-300: #b7b7b7;
  --color-black-100: #e2e2e2;
  --color-off-white: #f5f5f5;
  --color-pure-white: #fff;
  --color-invisible: rgba(0, 0, 0, 0);

  /*  ---------- DROP-SHADDOW STYLES ----------- */
  --button-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --card-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  --image-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  --box-shadow-modal: 0 8px 16px rgba(0, 0, 0, 0.2);

  /* ---------- TEXT STYLES ----------- */
  --font-family: "Quicksand", sans-serif;

  --dropdown-font: 500 16px var(--font-family);

  /* ---------- BUTTON STYLES ----------- */
  --button-font-style: 500 16px var(--font-family);
  --button-font-spacing: 0.3pt;

  --filled-button-background: var(--primary-color);
  --filled-button-color: var(--color-pure-white);
  --outlined-button-border: 1.5px solid var(--color-black-100);
  --outlined-button-color: var(--primary-color);

  /* ---------- BORDER STYLES ----------- */
  --inside-border: 1px solid var(--color-borders);

  --border-radius-button: 9px;
  --border-radius-thumbnials: 2px;
  --border-radius-cards: 8px;
  --border-radius-modals: 16px;

  /*  ---------- CARDS GENERAL STYLING ----------- */
  --card-background-color: var(--color-pure-white);

  /*  ---------- PAGE GENERAL STYLING ----------- */
  --background-color: var(--color-off-white);
  --admin-background-color: #353b4a;
  --color-top-bar-bg: var(--color-pure-white);
  --color-page-heading: var(--text-color-2);
  --color-top-bar-background-color: var(--color-pure-white);
}

/* ------ GENERAL STYLES ------ */

.admin-tools {
  display: none;
}

.admin-tools.show {
  display: contents;
}

/* Global body style */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  margin: 0;
  overflow: hidden;
}

.top-bar {
  width: 100%;
  height: 62px;
  background-color: var(--color-top-bar-background-color);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cccccc;
  position: sticky;
  top: 0px;
  z-index: 40;
}

.app_logo {
  height: 32px;
  padding-left: 24px;
}

.icon {
  width: 22px;
  height: 22px;
  opacity: 0.4;
  vertical-align: middle;
  filter: grayscale(100%);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

/* General Text Styling */
a {
  text-decoration: none;
  color: inherit;
}

.welcome-text {
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background-color: #f4f4f4;
  z-index: 20;
  padding: 0 20px;
}

/* Filled button */
.filled-button {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-button);
  font: var(--button-font-style);
  letter-spacing: var(--button-font-spacing);
  background-color: var(--filled-button-background);
  color: var(--filled-button-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filled-button:hover {
  background-color: var(--secondary-color);
}

/* Outlined button */
.outlined-button {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-button);
  font: var(--button-font-style);
  border: var(--outlined-button-border);
  color: var(--outlined-button-color);
  background-color: var(--background-color);
  background: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.outlined-button:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Create Button Styles */
.create-button {
  background-color: var(--primary-color);
  color: var(--filled-button-color);
  border: none;
}

.create-button:hover {
  background-color: var(--secondary-color);
  /*/
    transform: translateY(1px);
    box-shadow: var(--button-box-shadow);
    /*/
}

.create-button img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  padding-right: 3px;
}

/* ------ SETTINGS AND PROFILE STYLES ------ */
/* Scoped styles for user role display, dropdown, and settings */

.settings-profile-container {
  font-family: sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.settings-and-profile {
  position: fixed;
  right: 0;
  top: 0;
  width: 200px;
  height: inherit;
  align-content: center;
  padding-right: 18px;
}

.user-dropdown {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-toggle img {
  width: 24px;
  height: 24px;
}

.dropdown-toggle:hover img {
  filter: none;
  opacity: 1;
}

.user-role-button,
.dropdown-toggle {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 12px 24px 12px 36px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.user-role-button:hover,
.dropdown-toggle:hover {
  background-color: #f2f2f2;
}

/* ------ PROJECTS STYLES ------ */
.logo_text {
  font-size: 18px;
  font-weight: 500;
  color: #324c5b;
  text-align: left;
  display: flex;
  align-items: center;
}

.create-bar {
  max-width: 960px;
  height: 90px;
  padding: 24px 12px 0;
  margin: 0 auto;
  padding-top: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page_text {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.125pt;
  color: var(--color-page-heading);
  text-align: left;
  display: flex;
  align-items: center;
}

.button-FAB-group {
  display: flex;
  align-items: center;
}

.button-FAB-group button {
  width: 160px;
  height: 40px;
  font: var(--button-font-style);
  letter-spacing: var(--button-font-spacing);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.button-FAB-group button svg {
  margin-right: 3px;
}

/* Card Container Styling */
.deck-of-cards {
  height: calc(100vh - 250px);
  overflow-y: auto;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 20px 148px;
  max-width: 960px;
  /*/  Maximum width for 3 cards */
  margin: 0 auto;
  /* Center container */
  overflow-y: auto;
}

#card-container.loading-hidden {
  visibility: hidden;
}

/* ------ PROJECT STYLES ------ */

.breadcrumb {
  display: flex;
  align-items: center;
}

.breadcrumb-txt {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color-1);
  padding-left: 4px;
  padding-right: 3px;
  transition: opacity 0.2s ease;
}

.breadcrumb:hover .breadcrumb-txt,
.breadcrumb:hover .icon {
  opacity: 1;
  color: var(--primary-color);
  filter: none;
}

.pgTitle {
  font-size: 17px;
  font-weight: 500;
  color: #324c5b;
  text-align: left;
}

.project-folder-id {
  margin-left: 3px;
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.content-wrapper {
  display: flex;
  height: calc(100vh - 62px);
}

.admin-layout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.right-column {
  flex-grow: 1;
  overflow-y: auto;
}

/* Card Container Styling */
.box-of-cards {
  width: 100%;
  display: flex;
  box-sizing: border-box;
}

.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  justify-items: center;
  margin: auto;
  padding: 0 30px 120px 30px;
  /* Fade-in when loading-hidden is removed */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-container:not(.loading-hidden) {
  opacity: 1;
}

/* ===== Project Card Dropdown Menu ===== */

.project-menu {
  position: relative;
  display: none;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
  /* Hidden by default */
}

.project-menu img {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

.project-menu:hover img {
  opacity: 1;
  filter: none;
}

/*---------- Dropdaow Menu Wrappers ---------*/

.project-dropdown-wrapper {
  position: absolute;
  bottom: 170px;
  right: 32px;
  z-index: 999;
}

.sort-dropdown-wrapper {
  position: absolute;
  top: -16px;
  right: -16px;
}

.sets-dropdown-wrapper {
  position: absolute;
  top: 0;
  right: -120px;
}

/* Show menu when parent .card is hovered */
.card:hover .project-menu {
  /*/display: inline-block;/*/
  display: flex;
}

/* ----- FILTERS & FILTER DROPDOWN ----- */

/* Filters and Search Section */
.search-filter-max-width {
  margin: 0 auto;
  max-width: 960px;
}

.custom-dropdown {
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  width: auto;
}

.dropdown-label {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 150px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.dropdown-label img {
  padding-left: 12px;
  opacity: 1;
}

.dropdown-label:hover img {
  filter: none;
}

.dropdown-label:hover {
  opacity: 1;
}

.dropdown-label.active {
  color: #c55a1e;
}

/* ======== SHARED DROPDOWN STYLING ========= */
/* Shared dropdown styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5em 0;
  margin: 0;
  z-index: 1000;
  min-width: 150px;
  display: none;
  flex-direction: column;
}

.dropdown-menu.dropdown-visible {
  display: flex;
}

.dropdown-option {
  padding: 18px 30px;
  min-width: 160px;
  font: var(--dropdown-font);
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  background-color: white;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  background-color: #f0f0f0;
}

.dropdown-option.logout {
  color: #e74c3c;
}

.dropdown-option-small {
  padding: 10px 16px;
  font: var(--dropdown-font);
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  background-color: white;
  transition: background-color 0.2s ease;
}

.dropdown-option-small:hover {
  background-color: #f0f0f0;
}

.dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background-color: #eee;
}

/* ----- SEARCH - SEARCH ICON AND INPUT FIELD ----- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  position: relative;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 10px;
  transition:
    width 0.4s ease,
    opacity 0.4s ease;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar.active .search-input {
  width: 200px;
  opacity: 1;
}

.close-icon-container {
  position: relative;
  width: 36px;
  height: 36px;
  cursor: pointer;
  margin-left: 3px;
  z-index: 10;
  align-items: center;
  justify-content: center;
  display: none;
}

.close-icon-container img {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.close-icon-container:hover img {
  opacity: 1;
  filter: none;
  transform: rotate(180deg);
}

.search-bar.active .close-icon-container {
  display: flex;
}

.search-icon-container {
  position: relative;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

.search-icon-container:hover img {
  opacity: 1;
  filter: none;
}

/*  ---------- LOGIN STYLES ----------- */

.logo-block {
  display: flex;
  padding: 24px;
  align-content: center;
  justify-content: center;
}

.logo {
  height: 56px;
}

.container {
  display: flex;
  justify-content: center;
  padding-top: 90px;
  height: 100%;
}

.login-block {
  padding: 2rem 4rem;
  max-width: 450px;
  background-color: white;
  border: var(--inside-border);
  box-sizing: border-box;
  border-radius: var(--border-radius-modals);
}

.input-fields {
  font-family: sans-serif;
  padding: 16px 20px;
  /* width: 262px; */
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius-button);
  font-size: 14px;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-fields:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); */
}

.login-welcome {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color-1);
  padding: 36px 0 16px;
}

.login-button-container {
  height: 56px;
  width: 100%;
  margin: 24px 0;
}

/*  ---------- LOADING SPINNER STYLES ----------- */

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 250px;
  text-align: center;
}

.loading-spinner img {
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(720deg);
  }
}
