.section_title {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    width: 80%;
    text-align: left;
    padding: 0px 30px;
}

.mygroups {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 150px;
}

.mygroups_container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: start;
    width: 80%;
    min-height: 60vh;
    gap: 20px;
    z-index: 1;
}

.mygroups_cards,
.mygroups_no_groups {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    width: 100%;;
    height: 25vh;

    background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2ad 100%);
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.2);
    border-width: 2px;
    border-radius: 16px;
    box-shadow:
        10px 10px 10px rgba(0, 0, 0, 0.08),
        20px 30px 25px rgba(0, 0, 0, 0.12);

    z-index: 3;
    padding: 15px 30px;
}

.mygroups_no_groups {
    flex-direction: column;
    gap: 0px;
    font-size: 20px;
    font-weight: 600;
    justify-content: center;
}

.mygroups_no_groups p {
    color: var(--text-primary);
    opacity: 0.8;
}

.login_btn {
    background-color: var(--accent);
    color: var(--text-primary);
    margin: 0;

    border-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    align-self: center;
    cursor: pointer;
    padding: 10px 20px;
    transition:
        transform 0.3s ease-in-out,
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out;
}

.login_btn:hover {
    transform: scale(1.1);
    background-color: var(--text-primary);
    color: var(--bg-card);
}

.mygroups_icon {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    background:
        linear-gradient(var(--text-primary)) padding-box,
        linear-gradient(
            135deg,
            #0f172a 0%,      /* text-primary dark */
            #475569 50%,     /* text-secondary mid */
            #0f172a 100%
        ) border-box;

    /* Shadow for depth */
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.mygroups_info,
.mygroups_description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mygroups_info {
    width: 40%;
    height: 100%;
    gap: 20px;
}

.mygroups_name {
    font-size: 35px;
    font-weight: 800;
}

.mygroups_host {
    font-size: 16px;
}

.mygroups_description {
    width: 90%;
    height: 85%;
    gap: 10px;
    border-left: 2px solid;
    padding: 0px 20px;
}

.mygroups_desc_title {
    font-size: 25px;
    font-weight: 600;
}

.mygroups_infoBtn {
  align-self: center;
  padding: 7px 10px;

  background-color: var(--accent);
  color: var(--text-primary);

  border-style: solid;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;

  font-size: 30px;
  font-weight: 500;
  cursor: pointer;

  filter: drop-shadow(0 0 5px var(--accent));
  box-shadow:
    5px 10px 10px rgba(0, 0, 0, 0.08),
    10px 20px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.mygroups_infoBtn:hover {
  transform: scale(1.1);
  background-color: var(--text-primary);
  color: var(--bg-card);
}

/*Group Details Pop Up*/
#groupModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.groupModalContent {
    background: var(--bg-card);
    width: 500px;
    max-width: 50%;
    max-height: 85vh;
    padding: 30px;
    border-radius: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.group_header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.groupImage {
    width: 120px;
    height: 120px;
    border-radius: 8%;
    object-fit: cover;
    margin-bottom: 10px;
}

.group_title {
    font-size: 22px;
    font-weight: 700;
    margin: 5px 0;
}

.groupLimit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.group_limit_icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.group_members {
    font-size: 14px;
    color: var(--text-secondary);
}

.group_section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.group_section label {
    font-size: 16px;
    font-weight: 700;
}

.group_section p,
.group_section a {
    font-size: 14px;
    line-height: 1.15;
}


#group_qr {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 10px;
    border: 2px dashed #ccc;
}

.leave_group_btn {
  align-self: center;
  padding: 10px 20px;

  background: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 1),
    rgba(255, 0, 0, 0.7)
  );
  color: var(--text-primary);
  
  border-style: solid;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;

  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
  box-shadow:
    5px 10px 10px rgba(0, 0, 0, 0.08),
    10px 20px 25px rgba(0, 0, 0, 0.12);

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.leave_group_btn:hover {
  transform: scale(1.1);
  background-color: var(--text-primary);
  color: var(--bg-card);
}