/* Main Navbar: white background similar to splitter.css */
.main-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background-color: #fff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  .main-navbar a {
    position: absolute;
    left: 9px;
    color: #191931;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
  }
  .main-navbar a:hover {
    color: #027aca;
  }
  .main-navbar img.logo {
    height: 40px;
    width: auto;
  }
  /* Second Navbar: increased padding and margin on buttons */
  .navbar-tabs {
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 999;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientAnimation 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  @keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  #latestTab{
    width: 80%;
    margin-left: 22px;
  }
  #myGroupsTab{
    width: 80%;
    margin-right: 22px;
  }
  .navbar-tabs button {
    background: none;
    border: none;
    color: #d3d3d3;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
    min-width: 100px;
  }
  .navbar-tabs button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #fff;
  }
  .navbar-tabs button.active {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: 2px solid white;
    border-color: #fff;
    transform: scale(1.03);
  }
  /* Main Container */
  .container {
    max-width: 800px;
    margin: 140px auto 40px;
    padding: 0 20px;
    font-family: Arial, sans-serif;
  }
.seo-wrapper {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 0 20px;
  text-align: center;
}

.seo-wrapper h1 {
  font-size: 28px;
  color: #0044ff;
  margin-bottom: 10px;
  padding-top: 20px;
}

.seo-wrapper p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Responsive improvements */
@media (min-width: 768px) {
  .seo-wrapper h1 {
    font-size: 28px;
      padding-top: 20px;

  }

  .seo-wrapper p {
    font-size: 17px;
  }
}


/* Delete Modal container (same as before) */
/* General modal overlay */
.modal {
display: none; /* hidden by default */
position: fixed;
z-index: 2000;
left: 0; 
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4); /* semi-transparent background */
}

/* Modal box */
.modal-content {
position: relative;
background-color: #fff;
width: 360px;
margin: 8% auto; /* center it */
border-radius: 8px;
padding: 30px 20px 20px;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Close (X) button */
.modal-content .close {
position: absolute;
top: 15px;
right: 15px;
color: #aaa;
font-size: 24px;
font-weight: bold;
cursor: pointer;
}
.modal-content .close:hover {
color: #000;
}

/* Red icon at top (centered) */
.modal-icon {
font-size: 48px;
color: #e74c3c; /* red color */
margin-bottom: 10px;
}

/* Headings and subtext */
.modal-content h2 {
margin: 0;
font-size: 22px;
font-weight: 600;
color: #333;
}
.modal-subtext {
color: #666;
margin: 10px 0 20px;
line-height: 1.4;
}

/* Action buttons container */
.modal-actions {
display: flex;
justify-content: center;
margin-top: 20px;
}

/* Buttons */
.modal-actions button {
min-width: 80px;
padding: 10px 16px;
margin: 0 8px;
font-size: 14px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s ease-in-out;
}

.modal-actions .btn-cancel{
background: #CCCCCC !important ;
}
.modal-actions .btn-delete{
background: #E74C3C !important ;
}
.modal-actions .btn-ok{
background: #027aca !important ;
}
/* Cancel Button */
.btn-cancel {
background-color: #CCCCCC; /* Light gray */
color: #ffffff;
}
.btn-cancel:hover {
background-color: #B3B3B3; /* Slightly darker gray */
}

/* Delete Button */
.btn-delete {
background-color: #E74C3C !important; /* Red */
color: #fff;
}
.btn-delete:hover {
background-color: #cf4435 !important; /* Darker red */
}

/* OK Button - No hover effect */
.btn-ok {
background-color: #027aca !important;
color: #fff;
border: none;
border-radius: 4px;
padding: 10px 16px;
cursor: pointer;
font-size: 14px;
}
.btn-ok:hover {
background-color: #027aca !important; /* No change on hover */
}




  /* Group Card Styles */
  .group-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 30px 0 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
  }
  .group-card h3 {
    margin: 0 0 10px;
    color: #027aca;
    font-size: 24px;
    display: inline-block;
  }
  .group-card p {
    margin: 8px 0;
    font-size: 16px;
  }
  .member-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
  }
  .member-list li {
    padding: 6px 10px;
    margin-bottom: 5px;
    background: #f1f8ff;
    border-left: 4px solid #027aca;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .member-list li span.amount {
    color: green;
    font-weight: bold;
    margin-left: 15px;
  }
  .expense-item {
    background: #e8f5ff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 15px;
  }
  .expense-item p {
    margin: 4px 0;
  }
  .balance {
    font-weight: bold;
    margin: 15px 0;
    font-size: 18px;
  }
  /* Expense Form Styles */
  .expense-form {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
  }
  .expense-form input,
  .expense-form select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
  }
  .expense-form input.error,
  .expense-form select.error {
    border: 2px solid red;
  }

 

  .expense-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #027aca;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
  }
  .expense-form button.cancel {
    background: #ff7e5f;
  }
  .error-msg {
    color: red;
    font-size: 14px;
    margin-top: 5px;
  }
  /* Expense Splitter Styling inside Group Card */
  .expense-splitter {
    margin-top: 15px;
    padding: 15px;
    background: #e7f4f1;
    border: 1px solid #b5d3cc;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
  }
  .expense-splitter button {
    padding: 8px 15px;
    background: #027aca;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
  }
  .expense-splitter button:hover {
    background: #015f8a;
  }
  /* Transaction styling for splitter results */
  .transaction {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    margin: 5px 0;
    font-weight: 600;
    transition: transform 0.3s ease;
    text-align: left;
  }
  .transaction:hover {
    transform: scale(1.02);
  }
  /* Edit & Delete Icons: separated by positioning */
  .edit-icon, .delete-icon {
    position: absolute;
    top: 15px;
    right: 40px;
    font-size: 20px;
    cursor: pointer;
    color: #027aca;
    padding: 5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  .delete-icon {
    right: 10px;
    color: red;
  }

  .error-card {
border: 2px solid red;
background: #ffe6e6;
color: red;
font-weight: bold;
padding: 20px;
text-align: center;
margin: 20px 0;
}

  @media (max-width: 600px) {
    .edit-icon, .delete-icon {
      font-size: 18px;
      top: 10px;
      right: 42px;
      padding: 4px;
    }
    .delete-icon {
      right: 5px;
    }
  }
  /* Back to Create Group container */
  .back-container {
    margin-top: 20px;
    padding: 15px;
    background: #f2f2f2;
    border-radius: 8px;
    text-align: center;
  }
  .back-container button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #027aca;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
  }
  .back-container button:hover {
    background: #015f8a;
  }
  /* Hide Add Expense button initially in My Groups view */
  .add-expense-btn {
    display: none;
  }
  /* New Edit Group Form Styles */
  .edit-group-form {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 20px 0;
    background-color: #f9f9f9;
  }
  .edit-group-form input,
  .edit-group-form select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
  }
