@font-face {
  font-family: 'BDO Grotesk';
  src: url('BDOGrotesk-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

body {
  font-family: 'BDO Grotesk', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #333;
}

header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #f8f6f2;
  padding: 10px 20px;
  border-bottom: 1px solid #d5d5d5;

  height: 60px; /* Optional, helps with layout */
}


.nav-logo {
  height: 40px;
}

.nav-right #logout {
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-right #logout:hover {
  background-color: #c0392b;
}

main {
  padding: 2em;
  padding-top: 7em;
  max-width: 1000px;
  margin: auto;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 0.5em 0;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Folder controls */
#folderControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1em;
  gap: 10px;
}

/* Folder grid */
#folderList {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.folder-tile {
  width: 160px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.folder-tile:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  background-color: #f9f9f9;
}

#folderSearchContainer {
  padding: 0 10px 10px;
}

#folderSearch {
  padding: 8px 10px;
  width: 100%;
  max-width: 400px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.folder-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.folder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

.folder-name {
  font-size: 1em;
  font-weight: 500;
  color: #2c3e50;
  word-break: break-word;
  flex: 1;
}

/* .folder-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #2c3e50;
  max-width: 140px;
  margin: 8px auto 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  cursor: default;
} */


/* Image display */
#images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

#images div {
  flex: 0 0 auto;
  text-align: center;
}

#images img {
  max-width: 200px;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

#images img:hover {
  transform: scale(1.05);
}

/* Note section */
textarea {
  width: 100%;
  height: 120px;
  margin-top: 10px;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

button {
  padding: 0.5em 1em;
  margin-top: 10px;
  margin-right: 5px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #2980b9;
}

#logout {
  display: block;
  margin: 2em auto;
}

@media (max-width: 600px) {
  #images img {
    max-width: 100%;
  }

  #folderList {
    justify-content: center;
  }

  .folder-tile {
    width: 100%;
    max-width: 300px;
  }
}

.toast {
  visibility: hidden;
  min-width: 180px;
  background-color: #0e2a47;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.toast.show {
  visibility: visible;
  animation: fadein 0.3s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeout {
  from { opacity: 1; }
  to { opacity: 0; }
}

.image-label {
  font-size: 0.85em;
  color: #444;
  margin-top: 6px;
  word-break: break-word;
  text-align: center;
}

.breadcrumb {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}
.breadcrumb span {
  cursor: pointer;
  color: #337ab7;
}
.breadcrumb span:hover {
  text-decoration: underline;
}

.logout-button {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.logout-button:hover {
  background-color: #fff;
  color: #003366; /* match your navbar color */
}
