body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 10px;
  background-color: #1a1a1a;
  color: #e0e0e0;
}
h1{
  text-align: center;
}
.groups-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}
.group-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #2d2d2d;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.group-header-container {
  position: relative;
}

.group-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.group-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  color: #b0b0b0;
}

.group-actions .fa-trash{
  color: rgb(253, 138, 138);
}

.group-header-container:hover .group-actions {
  display: block;
}

.group-icon {
  font-size: 24px;
  margin-right: 10px;
  color: #6c8eff;
}
.group-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #e0e0e0;
}
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.group-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  font-size: 1.2em;
}

.group-actions i {
  margin-left: 5px;
  cursor: pointer;
  margin: 0;
}
.link-item-container {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
}

.link-item {
  margin: 8px 0;
  /* display: flex; */
  align-items: center;
}
.link-icon {
  margin-right: 8px;
  width: 20px;
  text-align: center;
  color: #8a8a8a;
}
.link-item a {
  text-decoration: none;
  color: #6c8eff;
  font-weight: bold;
  flex-grow: 1;
}
.link-item a:hover {
  color: #7dff85;
  outline:greenyellow;
}

.link-actions {
  /* position: absolute;
  top: 0;
  right: 0;
  */
  display: none;
  color: #b0b0b0;
}

.link-item-container:hover .link-actions {
  display: block;
}

.link-actions i {
  margin-left: 5px;
  cursor: pointer;
  margin: 0;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #333;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 50%; /* Could be more or less, depending on screen size */
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

/* The Close Button */
.close {
  color: #ccc;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* Form Styling */
#createGroupForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#createGroupForm input[type="text"],
#createGroupForm input[type="number"],
#createGroupForm select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #555;
  background-color: #2d2d2d;
  color: #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box; /* Make sure padding doesn't affect width */
}

.create-button {
  background-color: #2e7d32;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.create-button:hover {
  background-color: #1b5e20;
}

.hidden {
  display: none;
}

/* Style for link modal */
#createLinkForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#createLinkForm input[type="text"],
#createLinkForm input[type="url"],
#createLinkForm input[type="checkbox"],
#createLinkForm select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Make sure padding doesn't affect width */
}

.add-link-btn {
  background: none;
  color: #2e7d32;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 20px;
}

.add-link-btn:hover {
  color: #1b5e20;
}
.notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4a1f1f;
  color: #ffb3b3;
  border: 1px solid #5c2a2a;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
/* Confirmation Modal Styles */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.confirm-modal-content {
    position: relative;
    background-color: #333;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.confirm-button-container {
    text-align: right;
    margin-top: 20px;
}

.confirm-button-container button {
    margin-left: 10px;
}
#lock-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2d2d2d;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000;
}

#lock-container:hover {
  background-color: #3d3d3d;
  transform: scale(1.1);
}

#lockIcon {
  font-size: 28px;
  color: #ff0000;
}