* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
}

button,
input,
/* input:not([type="checkbox"]):not([type="radio"]), */
p {
  all: unset;
}

input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: checkbox;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

p {
  display: block;
}

/* body, */
span,
a,
li,
p {
  font-size: 1.5rem;
}

ul,
li {
  list-style-type: none;
  list-style-position: inside;
  margin: 5px 0;
  padding: 0;
  font-weight: 500;
  font-size: 1em;
  flex-wrap: wrap;
  font-size: 1em;
  display: flex;
  align-items: center;
}

ul > li > div {
  display: flex;
  align-items: center;
}

ul {
  list-style: none;
  flex-direction: column;
}

th {
  text-align: left;
  padding: 10px 15px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #667ae8;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
}

.avatar.initials {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #667ae8;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  font-family: inherit;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-left {
  flex: 1;
}

.header-right {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  margin-right: 20px;
  font-size: 2.5rem;
  font-weight: 600;
  color: #55b355;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 0.4rem;
}

.main-nav a:hover {
  color: #667ae8;
}

.main-nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a,
.nav-bar-right > div > a,
.nav-bar-right > a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 5px;
  padding: 10px;
}

.nav-bar-right > div > a,
.nav-bar-right > a {
  border: 1px solid #383838;
}

.main-nav a:hover,
.nav-bar-right > div > a:hover,
.nav-bar-right > a:hover {
  color: #667ae8;
}

.nav-bar-right {
  display: flex;
  align-items: center;
}

.nav-bar-right > * {
  margin-left: 20px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.auth-link {
  border: 1px solid #333;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.auth-link:hover {
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
}

h2 {
  color: #737373;
  font-weight: 600;
}

.add-item {
  font-size: 1.2rem;
  color: #5965a9;
  border: 1px solid #5965a9;
  border-radius: 5px;
  padding: 7px 15px;
  margin-top: 21px;
}

.add-item:hover {
  color: #475085;
  border: 1px solid #475085;
}

.add-item-container {
  margin-top: 30px;
  box-sizing: border-box;
  margin-bottom: 35px;
}

.form-group {
  text-align: center;
  margin: 10px;
}

.form-group .make-secret-santa {
  display: flex;
}

.welcome-hi {
  font-size: 2em;
}

.welcome-hi > p {
  margin-bottom: 10px;
}

.gift-list-table-header {
  color: #717171;
}

.gift-list-item {
  background: white;
  border: 2px solid #161616;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gift-list-item.deleted {
  background-color: #f8f8f8 !important;
  border-color: #ddd;
}

.gift-list-item.deleted td {
  color: #888;
}

.gift-list-item.deleted td:not([data-label='Actions']) {
  text-decoration: line-through;
}

.gift-list-item.deleted .initials {
  opacity: 0.6;
}

.gift-list-item.deleted .button-link {
  color: #888;
}

.deleted-note {
  display: inline-block;
  font-style: italic;
  color: #888;
  font-size: 0.9em;
  text-decoration: none;
  margin-left: 8px;
}

.gift-list-item > td,
.hidden-gift-list-item > td {
  font-weight: 400;
  text-align: left;
  padding: 10px 15px;
  vertical-align: middle;
}

.gift-list-item a,
.hidden-gift-list-item a {
  font-weight: 400;
  text-align: left;
  font-size: 1rem;
}

.nav-bar-right > * {
  margin-left: 20px;
}

.nav-bar-right > div > a,
.nav-bar-right > a {
  border-radius: 5px;
  border: 1px solid #383838;
  padding: 10px;
  text-decoration: none;
  color: #383838;
  margin-right: 10px;
}

.nav-bar-right > div > a:hover,
.nav-bar-right > a:hover {
  text-decoration: none;
  color: black;
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
}

.socialaccount_providers > img {
  height: 3em;
}

.socialaccount_ballot {
  margin-bottom: 1.2rem;
}

.welcome-images > img {
  margin: 20px;
}

.welcome-body {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  font-size: 1.5em;
  width: 60%;
  margin: 20px auto;
  text-align: center;
  color: #333;
}

@media (max-width: 768px) {
  .welcome-body {
    width: 80%;
  }
}

footer > p {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  color: #444444;
}

footer > p > a {
  color: #3c3cff;
}

.your-email {
  color: gray;
}

.index-list-group > li > a,
.index-list-event > li > a,
.pending-invitation-item {
  text-decoration: none;
  color: #667ae8;
  font-size: 1.5rem;
  width: fit-content;
}

.index-list-event > li {
  display: flex;
  flex-direction: column;
  margin: 5px 0px;
}

.index-list-event > li > span {
  margin-left: 2px;
}

table {
  border: 1px solid gray;
  margin: auto;
  border-radius: 5px;
  padding: 20px;
  background: #edf4ff;
  width: 80%;
  border-spacing: 0px 10px;
}

.table > tr {
  margin: 10px;
}

.add-button {
  margin-top: 30px;
}

.add-button > a {
  border: 2px solid #14b760;
  padding: 10px;
  border-radius: 5px;
  font-weight: 500;
  color: white;
  background: #2bcd77;
}

.add-button > a:hover {
  background: #2bc574;
}

.messages {
  font-weight: 400;
  color: darkgray;
}

form {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  border: 1px solid #dbdbdb91;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
  padding: 2rem;
  max-width: 800px;
  width: 50%;
  margin: 2rem auto;
  font-family: inherit;
}

@media (max-width: 768px) {
  form {
    width: 90%;
  }
}

form input {
  padding: 0.5rem;
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 1rem;
  border: 1.1px solid #989898;
}

.form-minimalist {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  border: none;
  width: fit-content;
  margin: auto;
  justify-content: center;
  padding: 0;
}

/* Your custom button styles */
button {
  display: inline-block;
  padding: 0.5rem;
  cursor: pointer;
  color: white;
  text-wrap: pretty;
  margin: 1rem;
  background: #34b934;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

/* Primary button style */
.button-primary {
  background-color: #007bff;
  color: white;
  border: 2px solid #007bff;
}

.button-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Secondary button style */
.button-secondary {
  background-color: white;
  color: #007bff;
  border: 2px solid #007bff;
}

.button-secondary:hover {
  background-color: #007bff;
  color: white;
}

.button-link {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  font-family: inherit;
}

.button-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.add-form {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 50%;
}

.add-form > input,
.add-form > button,
.add-form > select,
.add-form > label {
  margin: 10px;
  line-height: 2;
  padding: 5px 10px;
  font-size: 1em;
}

.add-form > label {
  margin: 0px;
}

.add-form > select,
.add-form > option {
  padding: 10px;
}

.add-form > button {
  cursor: pointer;
}

@media (max-width: 768px) {
  .add-form {
    width: 80%;
  }
}

.form-h2 {
  text-align: center;
}

.outer-container {
  margin-left: 20px;
}

.event-sub-group {
  color: darkgray;
  font-size: 0.9em;
}

.list-member-self {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.list-member-other {
  display: flex;
  flex-direction: row;
  font-size: 1rem;
  justify-content: center;
  align-items: center;
}

.group-name-event-header {
  font-size: 1rem;
}

.event-header,
.group-header,
.gift-list-header {
  margin: 0 0 0.1rem 0;
}

.create-nickname {
  color: #84abbd;
  font-size: 1rem;
  font-weight: 400;
}

.create-event-link {
  font-size: 1.2rem;
}

.form-span {
  text-align: left;
  margin: 20px auto;
  width: 60%;
}

.hidden-gift-list-item {
  background: #c0d9ff;
}

#added-by-box {
  background: #1cc76b;
  height: 1em;
  width: 1em;
  margin: 0px;
  float: right;
}

#not-added-by-box {
  background: none;
  height: 1em;
  width: 1em;
  margin: 0px;
  float: right;
}

.gift-list-legend {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  justify-content: center;
  color: gray;
}

.gift-list-legend > p {
  font-size: 0.9rem;
}

.gift-list-legend > #added-by-box {
  margin-right: 10px;
}

.how-to-p {
  width: 60%;
  font-size: 1.1em;
}

body {
  margin: 0;
  padding: 0;
  padding-bottom: 50px;
}

.main-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .main-container {
    width: 95%;
    padding: 10px;
  }
}

.main-container p {
  margin-bottom: 1rem;
}

header {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  header {
    width: 95%;
    padding: 10px;
  }
}

.outer-container {
  margin: 0;
}

.get-started {
  color: #667ae8;
}

.get-started:hover {
  color: #5667c4;
}

#purchased-check {
  color: green;
  text-align: center;
}

.group-name {
  font-size: 1.3em;
  margin-bottom: 0.2em;
  font-weight: 500;
  color: gray;
}

.group-events-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.group-events-block {
  width: 80%;
  max-width: 600px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.group-name.collapsible {
  background-color: #f5f5f5;
  padding: 10px;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-icon {
  float: right;
}

.event-cards {
  display: none;
  padding: 10px;
}

.event-cards p {
  font-size: 1rem;
}

.event-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  background-color: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-icon {
  margin-bottom: 5px;
  font-size: 1.5em;
}

.event-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.event-date {
  font-size: 0.8em;
  color: #666;
}

@media (max-width: 768px) {
  .group-events-block {
    width: 100%;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  font-size: 0.9em;
}

.pagination a,
.pagination .current-page {
  margin: 0 5px;
  padding: 5px 10px;
  text-decoration: none;
  color: #667ae8;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

.pagination .current-page {
  font-weight: bold;
  background-color: #f5f5f5;
}

.event-group {
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
}

.all-events {
  display: flex;
  flex-direction: column;
  padding: 10px;
  width: 50%;
}

.all-events .event-card-link {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .all-events {
    width: 90%;
  }
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.hamburger-menu span {
  width: 28px; /* Slightly increased */
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.4s;
  transform-origin: center; /* Ensure rotation around center */
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    position: relative;
    order: 2;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .hamburger-menu {
    display: flex;
    order: 2;
    margin-left: 15px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: normal;
  }

  .main-nav .auth-link {
    border: none;
  }

  .nav-bar-right {
    display: none;
  }

  /* Active state styles for the hamburger menu */
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
  }
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("welcome-background.d21369d70f83.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
}

h1 {
  color: #555555;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #667ae8;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  max-width: 60%;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  margin: auto;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #5569d4;
}

.welcome-page .main-nav a,
.welcome-page .nav-bar-right > div > a,
.welcome-page .nav-bar-right > a,
.welcome-page h1 {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-page .main-nav a:hover,
.welcome-page .nav-bar-right > div > a:hover,
.welcome-page .nav-bar-right > a:hover {
  color: #f0f0f0;
}

.welcome-page .auth-link {
  border-color: white;
}

.welcome-page .auth-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.welcome-page .main-nav a,
.welcome-page .auth-link {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-page .main-nav a:hover,
.welcome-page .auth-link:hover {
  color: #f0f0f0;
}

.welcome-page .auth-link {
  border-color: white;
}

.welcome-page .auth-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.gift-list-container {
  width: 100%;
  overflow-x: auto;
}

.gift-list-table {
  width: 100%;
  /* border-collapse: collapse; */
}

.gift-list-table th,
.gift-list-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.gift-list-table .gift-list-table-header {
  background-color: #edf4ff;
}

.hidden-gift-list-item {
  background-color: #c0d9ff;
}

.added-by-box {
  background: #1cc76b;
  height: 1em;
  width: 1em;
  margin: 0;
}

.not-added-by-box {
  background: none;
  height: 1em;
  width: 1em;
  margin: 0;
}

.gift-list-btn {
  padding: 5px 10px;
  background-color: #667ae8;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.purchased-check {
  color: green;
  text-align: center;
}

@media (max-width: 768px) {
  .gift-list-table,
  .gift-list-table tbody,
  .gift-list-table tr,
  .gift-list-table td {
    display: block;
  }

  .gift-list-table tr {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
  }

  .gift-list-table td {
    border: none;
    position: relative;
    padding-left: 50%;
    padding-right: 1rem;
    min-height: 30px;
    display: flex;
    text-align: right;
    justify-content: flex-end;
    align-items: center;
  }

  .gift-list-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 100%;
  }

  /* .gift-list-table td[data-label='Actions'] {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gift-list-table td[data-label='Actions']:before {
    position: static;
    width: 100%;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
  } */

  .gift-list-table-header {
    display: none;
  }

  .added-by-box,
  .not-added-by-box {
    margin: 0 auto;
  }

  .gift-list-btn {
    width: 100%;
    font-size: 1rem;
    margin-top: 5px;
  }

  .gift-list-table th,
  .gift-list-table .gift-list-table-header {
    display: none;
  }
}

.section-title-small {
  font-size: 0.9rem;
  color: gray;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title-small a {
  font-size: 0.9rem;
}

.initials {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #9ac49a;
  color: #333;
  font-size: 0.9rem;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.recipient-added {
  background-color: #1cc76b;
  color: white;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.gift-added-animation {
  position: fixed;
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */
  font-size: 5rem;
  color: #ff4081;
  opacity: 0;
  pointer-events: none;
  animation: heartbeat 0.5s ease-in-out, fadeInOut 1s ease-in-out;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
}

.tab button {
  background: none;
  color: #605f5f;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #55b355;
  color: white;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.tabcontent.active {
  display: block;
}

.date-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1.1px solid #989898;
  font-size: 1rem;
  box-sizing: border-box;
  min-height: 44px; /* Add this line */
  line-height: 2; /* Add this line */
}

@supports (-webkit-touch-callout: none) {
  .date-input {
    font-size: 1rem; /* Prevent zoom on focus */
    padding: 0.4rem 0.5rem; /* Adjust padding */
  }
}

.list-members {
  align-items: flex-start;
  flex-wrap: wrap;
  margin: auto;
}

.list-member-actions {
  display: flex;
}

@media (max-width: 768px) {
  .list-members {
    align-items: center;
  }

  .list-members li {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .list-member-other {
    flex-direction: column;
  }

  .list-member-actions {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .group-section-members form:first-child .button-link {
    margin-left: 0;
  }
}

.group-section {
  margin-bottom: 20px;
}

.group-section-members {
  margin: 0 auto 20px auto;
}

.group-section-invitations {
  margin-bottom: 20px;
}

.group-section-invitations p {
  font-size: 1rem;
  font-weight: 400;
  color: rgb(97, 97, 97);
}

.group-section-invitations .button-link,
.group-section-members .button-link {
  font-size: 1rem;
  text-decoration: underline;
  font-weight: 400;
  margin-right: 0.5rem;
}

.group-section-invitations form:first-child .button-link,
.group-section-members form:first-child .button-link {
  margin-left: 2rem;
}

@media (max-width: 768px) {
  .group-section-members li .list-member-other .list-member-actions form:first-child .button-link {
    margin-left: 0;
  }

  .group-section-invitations li form:first-child .button-link {
    margin-left: 0;
  }
}

.pending-invitation-item {
  color: #adbaff;
  display: flex;
  flex-direction: column;
}

.pending-invitation-item span {
  font-size: 0.8rem;
  color: #a19d9d;
  font-weight: 400;
}

.invitation-status {
  font-size: 0.8rem;
  color: #a19d9d;
  font-weight: 400;
}

.add-gift-to-other-checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.add-gift-to-other-checkbox input {
  margin: 0 1rem 0 1rem;
}

.add-to-other-events-container {
  margin-bottom: 2rem;
}

.add-to-other-events-container h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #5e5e5e;
}

.add-gift-to-other-checkbox input[type='checkbox'] {
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: checkbox;
}

.actions-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  padding: 0;
}

.actions-cell > * {
  margin: 0 5px;
}

.actions-cell .button-link {
  font-weight: 400;
  margin: 0 0rem 0 0.7rem;
}

.actions-cell .form-minimalist {
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .gift-list-table .actions-cell:before {
    display: none;
  }
}

.gift-list-table td.actions-cell:before {
  content: none;
}

.gift-list-table td.actions-cell {
  margin: 0;
  max-height: 100%;
  border: 0;
}

.purchased-cell input[type='checkbox'] {
  display: none;
}

.purchased-cell label {
  cursor: pointer;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  position: relative;
}

.purchased-cell input[type='checkbox']:checked + label::after {
  content: '\2714';
  font-size: 16px;
  position: absolute;
  top: 0;
  left: 3px;
  color: green;
}

.gift-list-table td.purchased-cell {
  text-align: center;
}

.gift-list-table td.purchased-cell .form-minimalist {
  padding: 0;
  margin: auto;
}

@media (max-width: 768px) {
  .gift-list-table td.purchased-cell .form-minimalist {
    margin-right: 0;
  }
}

.purchased-check {
  color: green;
  font-size: 16px;
}

.no-events-message,
.no-groups-message {
  font-size: 1.2rem;
  font-weight: 400;
  color: #5e5e5e;
}

.get-started-steps {
  border: 3px solid #41a141;
  border-radius: 5px;
  max-width: 60%;
  margin: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0rem 3rem 1rem 3rem;
}

@media (max-width: 768px) {
  .get-started-steps {
    max-width: 90%;
    padding: 0rem 1.5rem 1rem 1.5rem;
  }
}

.get-started-steps li {
  font-size: 1rem;
  display: list-item;
  font-weight: 400;
  list-style-type: auto;
  text-align: left;
}

.get-started-steps ol {
  padding-left: 0;
}

.delete-group-container {
  margin-top: 20px;
  text-align: center;
}

.delete-group-button {
  background-color: #ff4136;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.delete-group-button:hover {
  background-color: #ff1a1a;
}

.external-giver {
  color: #666;
  font-style: italic;
}

.celebration {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: celebrate 1.5s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes celebrate {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) translateY(-75px) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(0) translateY(-150px) rotate(360deg);
    opacity: 0;
  }
}

.secret-santa-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.secret-santa-section {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.help-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
  font-style: italic;
}

.secret-santa-controls {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.draw-button {
  background-color: #55b355;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.draw-button:hover {
  background-color: #449944;
}

.budget-info {
  margin-top: 10px;
  color: #666;
  font-style: italic;
}

.assignment-card {
  background: inherit;
  border-radius: 8px;
  margin: 20px 0;
}

.view-assignment-link {
  display: inline-block;
  margin-top: 10px;
  color: #55b355;
  text-decoration: none;
}

.view-assignment-link:hover {
  text-decoration: underline;
}

.secret-santa-badge {
  background-color: #e74c3c;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  display: inline-block;
}

.secret-santa-badge:before {
  content: '🎅';
  margin-right: 4px;
}

.delete-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  margin: 0;
}

.delete-button:hover {
  background-color: #c82333;
}

.delete-form {
  margin: auto;
  padding: 0;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

.toggle-drawing-button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.toggle-drawing-button.active {
  background-color: #28a745;
}

.drawing-locked {
  color: #6c757d;
  font-style: italic;
  margin: 1rem 0;
}

.drawing-indicator {
  text-align: center;
  margin: 1rem 0;
}

.loading-text {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #666;
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.assignment-card strong {
  color: #28a745;
}

.reset-drawing-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
}

.reset-drawing-button:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .gift-list-item.deleted td:before {
    text-decoration: none;
  }

  .deleted-note {
    display: block;
    margin-top: 4px;
    margin-left: 0;
  }
}

.invitation-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-left: 8px;
}

.invitation-status.expired {
  background-color: #f8d7da;
  color: #721c24;
}

.invitation-status.approved {
  background-color: #d4edda;
  color: #155724;
}

.invitation-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.invitation-status.accepted {
  background-color: #cce5ff;
  color: #004085;
}

.user-actions {
  margin-top: 10px;
}

.purchased-gifts-link {
  color: #667ae8;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.purchased-gifts-link:hover {
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

.share-url-container {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.share-url-container input {
  flex: 1;
  padding: 8px;
}

.share-button-container {
  margin-bottom: 20px;
}

.share-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.share-btn:hover {
  background-color: #45a049;
}

.share-link {
  margin-top: 1rem;
  text-align: center;
}

.share-link a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.share-link a:hover {
  text-decoration: underline;
  color: #333;
}
