/* =====================
   TOP NAV (legacy, unused)
   ===================== */
.topnav {
  background-color: #025043;
  overflow: hidden;
}

.topnav a {
  float: left;
  color: #FFFFFF;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* =====================
   TABS
   ===================== */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #05998c;
  border-radius: 8px 8px 0 0;
  background: #e0f2f0;
  color: #05998c;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover {
  background: #b3e0dc;
}

.tab-btn.active {
  background: #05998c;
  color: #FFFFFF;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =====================
   LIST BOX
   ===================== */
.ListBox {
  background-color: #FFFFFF;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #3b3a3a;
  margin-bottom: 16px;
}

/* =====================
   LIST TITLE (header bar)
   ===================== */
.ListTitle {
  background-color: #05998c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.list-title-text {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.list-title-text a {
  color: #FFFFFF;
  text-decoration: none;
}

.list-title-text a:hover {
  text-decoration: underline;
}

.list-collapse-btn {
  cursor: pointer;
  margin-right: 6px;
  user-select: none;
}

.list-title-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.list-title-actions form {
  margin: 0;
  padding: 0;
}

/* =====================
   LIST ITEMS
   ===================== */
.ListItem {
  background-color: #b3e0dc;
  display: flex;
  align-items: center;
  border-top: 1px solid #8a8a8a;
  min-height: 44px;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-text {
  color: #000000;
  font-size: 15px;
  padding: 10px 16px;
}

.item-link {
  color: #333333;
  font-size: 11px;
  text-decoration: none;
  padding: 0 16px 8px;
  display: block;
  word-break: break-all;
}

.item-link:hover {
  text-decoration: underline;
}

.item-edit-form {
  background-color: #81cdc6;
  padding: 14px 16px;
}

.item-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  padding: 0 8px;
}

.item-actions form {
  margin: 0;
  padding: 0;
}

.item-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-menu-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
  padding: 8px 10px;
  line-height: 1;
  color: #000000;
}

.item-menu-toggle:hover {
  color: #444444;
}

/* =====================
   NOTIFICATIONS
   ===================== */
.Notification {
  background-color: #05998c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.notif-text {
  color: #FFFFFF;
  font-size: 16px;
  padding: 10px 8px;
  flex: 1;
  min-width: 0;
}

.notif-text a {
  color: #FFFFFF;
  font-weight: bold;
}

.notif-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.notif-actions form {
  margin: 0;
  padding: 0;
}

/* =====================
   PROFILE PAGE
   ===================== */
.Profile {
  background-color: #FFFFFF;
}

.Profile header {
  background-color: #05998c;
  color: #FFFFFF;
  padding: 14px 16px;
  font-size: 28px;
  border-radius: 10px;
  border: 1px solid #3b3a3a;
  margin-bottom: 12px;
}

.profile-stats {
  background-color: #05998c;
  color: #FFFFFF;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #3b3a3a;
  margin-bottom: 12px;
}

.profile-settings {
  background-color: #05998c;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #3b3a3a;
}

/* =====================
   BUTTONS & FORM FIELDS
   ===================== */
.btn {
  color: #05998c;
  background-color: #FFFFFF;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
}

.btn-action {
  background-color: #b3e0dc;
  color: #000000;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.btn-action:hover {
  background-color: #9dd5d0;
}

.field {
  color: #05998c;
  font-weight: bold;
  border-radius: 5px;
  border: 1px solid #3b3a3a;
  height: 30px;
  padding: 4px 10px;
}

/* =====================
   LINK PREVIEW CARD
   ===================== */
.link-preview {
  display: flex;
  border: 1px solid #b0d4d1;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 16px 10px;
  background: #f0faf9;
  max-width: 420px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.link-preview:hover {
  box-shadow: 0 2px 8px rgba(5, 153, 140, 0.2);
}

.link-preview-image {
  width: 90px;
  min-width: 90px;
  height: 90px;
  object-fit: cover;
  background: #cde8e5;
}

.link-preview-content {
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.link-preview-title {
  font-size: 13px;
  font-weight: bold;
  color: #111;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-preview-description {
  font-size: 11px;
  color: #555;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
  line-height: 1.4;
}

.link-preview-domain {
  font-size: 10px;
  color: #05998c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =====================
   LOGIN / REGISTER
   ===================== */
.Login {
  display: grid;
  grid-template-columns: minmax(0px, 33%) minmax(min-content, 33%) minmax(0px, 33%);
}

.login-box {
  grid-column: 2/3;
  background-color: #05998c;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #3b3a3a;
  text-align: center;
  padding: 20px;
}

.login-box h1 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.login-field {
  text-align: left;
  margin-bottom: 12px;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.login-actions a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
}

.login-actions a:hover {
  text-decoration: underline;
}
