body {
    background: linear-gradient(to bottom, #4a90e2, #9013fe) fixed;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: white;
    text-align: center;
    margin: 0;
    overflow-y: scroll;
  }

 
  
  .container {
    max-width: 500px;
    margin: auto;
    padding: 1rem;
  }
  
  .title {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 500;
  }
  
  h1 {
    font-size: 1.6em;
    margin-bottom: 0.5em;
  }
  
  h2 {
    font-size: 1.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
  }
  
  h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }
  
  .summary {
    font-size: 1.3em;
    font-weight: bold;
    margin: 1em 0;
  }
  
  ul {
    list-style: none; 
    padding: 0;
    margin: 0;
  }
  
  ul li {
    background: rgba(255, 255, 255, 0.15);
    margin: 0.5em 0;
    padding: 0.75em 1em;
    border-radius: 8px;
    font-size: 1em;
    text-align: left;
    position: relative;
  }
  
  ul li::before {
    display: none;
  }
  
  ul li {
    padding-left: 1em;
  }
  
  .section {
    margin-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1em;
  }
  
  @media (max-width: 480px) {
    .title {
      font-size: 1.5em;
    }
  
    h1 {
      font-size: 1.4em;
    }
  
    h2 {
      font-size: 1.2em;
    }
  
    h3 {
      font-size: 1.1em;
    }
  
    .summary {
      font-size: 1.1em;
    }
  
    ul li {
      font-size: 0.95em;
    }
  }

  input#group_name {
    display: block; 
    margin: 1rem auto;
    width: 90%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1.5em;   
  }
  
  input#group_name::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
  
  input#group_name:focus {
    border: 1px solid white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  }

  input[type="email"],
input[type="password"] {
  display: block;
  margin: 1rem auto;
  width: 90%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input[type="email"]:focus,
input[type="password"]:focus {
  border: 1px solid white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

button {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: white;
  color: #4a90e2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #e0e0e0;
}

.highUp{
  position: absolute !important;
  top: 45vh !important;
}

#authMessage {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
  display: block;
  margin: 1rem auto;
  width: 90%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:focus {
  border: 1px solid white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

button {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: white;
  color: #4a90e2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e0e0e0;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  width: 80%;
  margin: 2rem auto;
}

#authMessage {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
}

@media (max-width: 480px) {
  button {
    width: 90%;
    max-width: 400px;
  }
}

.selected {
  background-color: rgba(76, 175, 80, 0.2); 
  border-left: 4px solid #4caf50;
  font-weight: bold;
  color: #ffffff;
}

.claimed {
  background-color: #ffcccc33; /* reddish tint for items claimed by others */
  color: #ffaaaa;
}

.tip-box {
  display: flex;
  margin: 0.5em;
  padding: 0.75em 1.25em;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tip-box.selected-tip {
  background: rgba(0, 255, 128, 0.3);
  border: 1px solid white;
}

/* Container for tips */
#tips {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

/* Each tip option */
.tip-box {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  width: 50%;
  display: flex;
  flex-direction: row;
}

.tip-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.tip-box.selected-tip {
  background: rgba(0, 255, 128, 0.3);
  border: 1px solid white;
}

/* Custom tip input inside the box */
.tip-box input[type="number"] {
  width: 100px;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  outline: none;
  transition: border 0.3s ease;
}

.tip-box input[type="number"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.tip-box input[type="number"]:focus {
  border: 1px solid white;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.split-mode-toggle {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: white;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #4a90e2;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.hidden {
  opacity: 0;
  pointer-events: none;
}

.hidden-new{
  display: none;
}

#collapse-unclaimed{
  max-height: 30vh;
  overflow-y: scroll;
}

#venmoButton, #venmo-button {
  background-color: #3d95ce; /* Venmo blue */
  color: white;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  margin: 1.5rem auto;
  display: block;
}

#venmoButton:hover {
  background-color: #2d7cbf;
}

#venmoButton:active {
  background-color: #256aa9;
}

.owner {
  background-color: rgba(255, 255, 255, 0.25);
  border-left: 4px solid gold;
  font-weight: bold;
  color: #fff;
  margin-right: 0.2rem;
  position: relative;
}

.current-user{
  background-color: rgba(255, 255, 255, 0.25);
  border-left: 4px solid rgb(249, 5, 5);
  font-weight: bold;
  color: #fff;
  margin-right: 0.2rem;
  position: relative;
}

.other-selected {
  background-color: rgba(255, 87, 34, 0.15); 
  border-left: 4px solid #ff5722;
  font-style: italic;
  color: #eeeeee;
  opacity: 0.8;
}

#shareButton {
  background: none;
  color: white;
  font-size: 1rem;
  padding: 0.6em 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 10%;
}

.back-btn {
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  z-index: 1000;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  width: 20%;
}

.back-btn:hover {
  background-color: #ffffff40;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.modal-content button {
  margin: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#remainBtn {
  background: #ccc;
}

#leaveBtn {
  background: #e74c3c;
  color: white;
}

.hidden {
  display: none;
}

.member-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; 
  padding: 0.5rem 1rem;
  line-height: 1.5; 
  position: relative;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.5;
  width: 10%;
  padding: 0;
  margin-right: 0.2rem;
}

.settings-container label {
  display: block;
  text-align: left;
  margin: 0.5rem auto 0.25rem;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

input[readonly] {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

#paypalButton {
  background-color: #ffc439; 
  color: #003087; 
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  margin: 1.5rem auto;
  display: block;
}

#paypalButton:hover {
  background: #ffb500;
  transform: translateY(-2px);
}

#paypalButton:active {
  background: #e6ac00;
  transform: translateY(0);
}

.payment-options{
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 1rem;
}

select {
  display: block;
  margin: 1rem auto;
  width: 90%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  outline: none;
  appearance: none;
}

select:focus {
  border: 1px solid white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 400px;
  margin: 1rem auto;
  gap: 0.1rem;
  font-size: 1rem;
  color: white;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4a90e2;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

#account-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#account-container button {
  height: 3em;
  padding: 0 1.5em;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: white;
  color: #4a90e2;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 140px; 
  box-sizing: border-box;
}

.user-group-button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-bottom: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#group-container > div {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

#group-container > div > ul {
  text-align: center;
  list-style: none;
  padding: 0;
}

#user-info-modal * {
  color: black;
}

#inviteCodeBtn {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  background-color: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:  auto; 
  text-align: center;
  position: relative;
  top: 1.5rem;
}

#inviteCodeDisplay {
  margin: 0;
  padding: 0;
}

/*.claimed-by-you {
  background-color: #c8e6c9;            
  border-left: 6px solid #2e7d32;      
  color: #1b5e20;
  font-weight: bold;
  padding: 0.6rem;
  border-radius: 6px;
  margin: 0.3rem 0;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}*/

.claimed-by-you {
  background-color: rgba(255, 255, 255, 0.12);    /* semi-transparent white for contrast */
  border-left: 8px solid gold;             /* warm gold accent – readable on both blue and purple */
  font-weight: 550;                          /* bold for emphasis */
  color: #ffffff;                                /* pure white text for clarity */
  padding: 0.6rem;
  border-radius: 6px;
  margin: 0.3rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);       /* subtle lift against dark bg */
  backdrop-filter: blur(4px);                    /* frosted glass effect (if supported) */
}


.claimed-by-others {
  /*background-color: #ffe0b2;           
  border-left: 6px solid #ef6c00;      
  color: #bf360c;
  font-weight: bold;
  padding: 0.6rem;
  border-radius: 6px;
  margin: 0.3rem 0;
  box-shadow: 0 2px 6px rgba(239, 108, 0, 0.3);*/
}

li > button {
  padding: 0.2rem 0.5rem;
  background-color: white;
  color: black;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;  
  margin: 0; 
  max-width: 2rem;
  position: absolute;
  right: 0.5rem;
}

#swipe-wrapper {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.swipe-panel {
  flex: 0 0 100%;
  transition: transform 0.3s ease-in-out;
  padding-bottom: 2rem;
}


body, html {
  overscroll-behavior-x: none;
  overflow-x: hidden;
}

.swipe-indicators {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  right: 0;
  gap: 0.4rem;
  z-index: 1000; 
  padding-bottom: 0.1px;
  margin-bottom: 0.1px;
}

.swipe-indicators .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.swipe-indicators .dot.active {
  background-color: white;
}

li > button:hover {
  background-color: #f2f2f2;
}

#item-details-modal * {
  color: black;
}

#swipe-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.swipe-panel {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#header{
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-direction: row;
}

#header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#group_name {
  flex: 1 1 100%;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  outline: none;
  text-align: center;
  position: relative;
  top: 1.5rem;
  width: 50%;
}

#group_name::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#shareButton {
  position: absolute;
  top: 0.1rem;
  right: 0.75rem;
  width: auto; 

}

.back-btn {
  position: absolute;
  top: 0.1rem;
  left: 0.75rem;
  width: auto; 

}

#breakdownBtn, #yourTotalsBtn, #personalbreakdownBtn, #unclaimedBalanceBtn{
  background: none;
  padding: 0;
  margin: 0;
  color: white;
  height: auto;
  width: auto;
  line-height: normal;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.summary-row {
  display: contents;
}

.summary-grid span {
  font-size: 1rem;
  color: #333;
}

.summary-card {
  background: rgba(255, 255, 255, 0.12); 
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.01rem;
  backdrop-filter: blur(6px); 
  margin: 0;
  overflow-y: scroll;
}

.summary-card:not(.hidden) {
  margin-bottom: 1rem !important;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  line-height: 0;
  margin: 0;
  padding: 0;
  word-break: break-word;
}

#collapse, #collapse-yourtotals, #collapse-yourtotals-party {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  overflow-y: scroll;
}

#collapse:not(.hidden) {
  max-height: 500px; 
}

#collapse-yourtotals:not(.hidden) {
  max-height: 120px; 
}

#collapse-yourtotals-party:not(.hidden) {
  max-height: 500px; 
}

.carrot-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.5em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carrot-circle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carrot-circle i {
  font-size: 1em;
  color: white;
  line-height: 1;
}

#items-section, #edit-items{
 border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 60vh;          
  overflow-y: auto;
}

#edit-items input[type='number'] {
  width: 12%;
}

#edit-items input[type='text'] {
  width: 50%;
}

#edit-items li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding: 0.1rem;
}

#tax-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.fade{
  display: none;
}

#groupMemberScroll{
  max-height:45vh;          
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#collapse-yourtotals{
  align-items: center;
  overflow-y: auto;

}

#collapse-yourtotals-party .summary-item:nth-child(4),
#collapse-yourtotals-party .summary-item:nth-child(5),
#collapse-yourtotals-party .summary-item:nth-child(6) {
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.member-details-container{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
  background: transparent;
  border-radius: 8px;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.claimed-items-list {
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

#personalBreakdownBtn{
  background: none;
}

.hamburger-menu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-menu .bar {
  height: 4px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #4a90e2;
  padding: 2rem 1rem;
  box-shadow: -2px 0 10px #4a90e2;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  backdrop-filter: blur(8px); 
  color: white;
}

.side-nav ul {
  color: linear-gradient(to bottom, #4a90e2, #9013fe) fixed;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.side-nav ul li {
  color: linear-gradient(to bottom, #4a90e2, #9013fe) fixed;
  margin: 1.5rem 0;
}

.side-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.side-nav button#closeNav {
  background: none;
  border: none;
  color: linear-gradient(to bottom, #4a90e2, #9013fe) fixed;
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.side-nav.show {
  transform: translateX(0);
}

.modal {
  position: fixed;
  top: 20rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  width: 90%;
  height: 15%;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  color: white;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#modalBackdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.modal, .modal-content{
  background: linear-gradient(to bottom, #4a90e2, #9013fe) fixed;
}

#start-group, #join-group{
  position: absolute;
  top: 10rem;
}

#inviteCodeInput, #joinPartyButton{
  width: auto;
}

#leaveModal{
  border: 1px solid rgba(255, 255, 255, 0.2);
}

a.menu-item {
  text-decoration: none; 
  color: inherit;        
  font: inherit;         
  cursor: pointer;       
}

#loading-message {
  font-size: 1.4em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#leaveGroup {
  width: 50%;
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
}

#panel-members {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem); 
  position: relative;
}

.scroll-wrapper {
  flex: 1;
  padding: 1rem;
  padding-bottom: 5rem;     
  overflow-y: auto;
}

#deleteGroup {
  margin: 1rem auto;
  width: 50%;
  z-index: 10;
}

#group-container > div > ul{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#claimed-items-title{
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
}

.breakdown-row{
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0.4rem 0;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

#groupMembers li {
  text-align: center;
}

.unclaimed-item{
  padding: 1.1rem 1rem;
  margin: 0.5rem;
}

.unclaimed-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.google-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
}
.google-button img {
  width: 20px;
  height: 20px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background-color: white;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 10px 20px;

  font-family: Roboto, sans-serif;
  font-size: 16px;
  color: #444;
  cursor: pointer;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  width: 100%;
}

.google-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.google-btn img {
  width: 20px;
  height: 20px;
}


#venmo-button:hover {
  background-color: #3189be;
}

#venmo-button:active {
  background-color: #2975a3;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

#venmo-button:disabled {
  background-color: #aacbe1;
  cursor: not-allowed;
}


#totals-edit {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem;
  padding: 0.5rem;
}

#item-name-input, #item-price-input{
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  margin-left: 0.5rem !important;
}

#item-name-input{
  margin-right: 0 !important;
}

.icon-button {
  margin-right: 0.3rem !important;
  background: none;
  border: none;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 6px;
}

.icon-button:focus,
.icon-button:active {
  background-color: transparent;
  box-shadow: none;
  outline: none;
}

#tax-input{
  width: 15% !important;
}

.edit-owners-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;

  background-color: #4a90e2;
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInScale 0.3s ease-out;
}

.edit-owners-modal h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.edit-owners-modal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edit-owners-modal li {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: white;
}

.edit-owners-modal li:last-child {
  border-bottom: none;
}

.remove-user-from-item-button{
  background: none;
  border: none;
  color: #cc0000;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.add-owner-button{
  width: auto;
}

.delete-item-button{
  width: auto;
}

.owner-dropdown{
  flex-direction: column;
}

.select-all-container{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: center;
}

#add-owner-checkbox {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #999;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

#add-owner-checkbox:checked {
  background-color: #007bff;
  border-color: #007bff;
}

#add-owner-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.selected-new-member{
  background-color: #007bff;   
  color: white;
  border-radius: 6px;
  padding: 6px 10px;
}