:root {
    --primary-color: #25D366;
    --secondary-color: #128C7E;
    --accent-color: #34B7F1;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* PROPER CENTERED LOADING - In container, not fixed */
.simple-loading,
.optimized-loading,
.loading,
.no-groups,
.error-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    
    margin: 2rem auto !important;
    padding: 2rem 1.5rem !important;
    
    width: 100% !important;
    max-width: 500px !important;
    min-height: 150px !important;
    
    font-size: 1.1rem !important;
    color: #666 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    
    /* Ensure it's centered in its parent container */
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

.simple-loading::before,
.optimized-loading::before {
    content: "⚡";
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
    display: block;
}

.no-groups {
    color: #128c7e;
    font-weight: 500;
}

.no-groups::before {
    content: "📱";
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}

.error-state {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.error-state::before {
    content: "⚠️";
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile styles - already centered with fixed positioning */
@media (max-width: 768px) {
    .simple-loading,
    .optimized-loading,
    .loading,
    .no-groups,
    .error-state {
        width: 95% !important;
        max-width: 350px !important;
        padding: 1.5rem 1rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .simple-loading,
    .optimized-loading,
    .loading,
    .no-groups,
    .error-state {
        width: 90% !important;
        max-width: 300px !important;
        padding: 1rem 0.8rem !important;
        font-size: 0.9rem !important;
        min-height: 100px !important;
    }
}

/* Base Styles - NO unwanted scroll bars */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden; /* Prevent horizontal scroll only */
}

/* Main container - prevent scroll issues */
.container,
main {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

.premium-groups {
    display: block;
    /* Changed from 'none' to 'block' */
}

/* Enhanced Navbar */
.navbar {
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    min-height: 70px; /* Ensure consistent height */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    /* Removes underline */
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand .logo {
    width: 50px;
    height: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Desktop Navigation Styles */
.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    z-index: 1000;
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .nav-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-links a {
    display: block;
    /* Expands clickable area */
    width: 100%;
    /* Makes the link take full width of its parent */
    padding: 5px 4px;
    /* Adds padding for better clickability */
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--primary-color) #25D366;
    /* Optional: Adds a hover effect */
}

/*Chat GPT NAV Dropdown css*/
/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    display: block;
    padding: 5px 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: 1000;
}

.nav-dropdown-content li {
    list-style: none;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Show dropdown on hover */
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* WhatsApp-style button */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
}

.hero-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/*all page header============*/
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.page-header .page-header-h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header .page-header-p {
    color: white;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

/* Improved Form Styles */
.submit-section {
    max-width: 800px;
    margin: auto;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center the form in the add-group page */
.group-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.submit-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.group-form {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Enhanced Input Styles */
input,
textarea,
select {
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-light);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    transform: translateY(-1px);
}

/* Improved Button Styles */
.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

/* Groups Grid - NO scroll bar issues */
.groups-section {
    padding: 0rem;
    max-width: 99%;
    margin: auto;
    overflow: visible !important; /* Prevent container scroll bars */
    height: auto !important; /* Natural height */
    min-height: auto !important; /* No forced height */
}

.groups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Enhanced Search Bar */
.search-bar {
    background: white;
    border-radius: 30px;
    padding: 0.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    max-width: 100%;
}

.search-bar:focus-within {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.search-bar input {
    border: none;
    padding: 1rem 3.5rem 1rem 1.5rem;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 25px;
    background: transparent;
    height: 50px;
}

.search-bar input:focus {
    outline: none;
}

.search-bar i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    transition: all 0.3s ease;
}

.search-bar:focus-within i {
    transform: translateY(-50%) scale(1.1);
    background: var(--primary-color);
    color: white;
}


/* Main grid container with NO unwanted scroll bars */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
    overflow: visible !important; /* Prevent any scroll bars */
    overflow-x: hidden !important; /* Only hide horizontal overflow */
    overflow-y: visible !important; /* Allow natural vertical flow */
    box-sizing: border-box;
    min-height: auto !important; /* Don't force height */
    height: auto !important; /* Let content determine height */
}

/* Ensure all grid items have equal width */
.groups-grid > .group-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
    }
}

/* Small tablets (596px to 767px) */
@media (min-width: 596px) and (max-width: 767px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Mobile devices (up to 595px) - CONSOLIDATED RULE */
@media screen and (max-width: 595px) {
    .groups-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 1rem 2px !important;
    }
    
    .group-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Mobile-optimized group card styles - Compact Design */
@media (max-width: 595px) {
    .group-card {
        height: 220px;
        padding: 0.3rem;
        display: flex;
        flex-direction: column;
        max-width: 340px;
        margin: 0 auto;
    }

    .group-card img {
        height: 40px !important;
        width: 40px !important;
        min-height: 40px !important;
        min-width: 40px !important;
        max-height: 40px !important;
        max-width: 40px !important;
        margin-bottom: 0.2rem;
        border-radius: 50% !important;
        align-self: center;
        object-fit: cover !important;
        border: 2px solid #25d366 !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
        aspect-ratio: 1 / 1 !important;
    }

    .group-card h3 {
        font-size: 0.6rem;
        margin-bottom: 0.15rem;
        min-height: 1.2em;
        line-height: 1.1;
        text-align: center;
    }

    .group-card p {
        font-size: 0.5rem;
        margin-bottom: 5px;
        line-height: 1.1;
        -webkit-line-clamp: 2;
        height: 2.2em;
        text-align: center;
    }

    .card-footer {
        padding: 0.15rem 0.3rem;
        font-size: 0.4rem;
        margin-top: 5px;
        text-align: center;
    }

    .views-count {
        font-size: 0.4rem;
    }

    .join-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.6rem !important;
        border-radius: 20px !important;
        margin-top: 5px;
        width: 100% !important;
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

    .group-badges {
        gap: 0.15rem;
        top: 3px;
        left: 3px;
        right: 3px;
        justify-content: center;
    }

    .category-badge,
    .country-badge {
        padding: 0.08rem 0.15rem;
        font-size: 0.35rem;
        border-radius: 2px;
    }

    .card-actions {
        padding: 0 0.3rem 0.3rem 0.3rem;
    }
}

/* Extra small mobile optimization (480px to 595px) */
@media (min-width: 480px) and (max-width: 595px) {
    .groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2px !important;
        padding: 1rem 2px !important;
    }

    .group-card {
        height: 280px;
        padding: 0.5rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .group-card img {
        height: 55px !important;
        width: 55px !important;
        min-height: 55px !important;
        min-width: 55px !important;
        max-height: 55px !important;
        max-width: 55px !important;
        margin-bottom: 0.4rem;
        align-self: center;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #25d366 !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
        aspect-ratio: 1 / 1 !important;
    }

    .group-card h3 {
        font-size: 0.8rem;
        min-height: 1.6em;
        line-height: 1.2;
        text-align: center;
    }

    .group-card p {
        font-size: 0.65rem;
        height: 2.4em;
        -webkit-line-clamp: 2;
        line-height: 1.2;
        text-align: center;
    }

    .join-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
        width: 100% !important;
        border-radius: 25px !important;
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3) !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

    .category-badge,
    .country-badge {
        padding: 0.1rem 0.25rem;
        font-size: 0.5rem;
    }

    .card-actions {
        padding: 0 0.5rem 0.5rem 0.5rem;
    }

    .card-footer {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        text-align: center;
    }
}

/* Small mobile devices (up to 479px) */
@media (max-width: 479px) {
    .groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2px !important;
        padding: 1rem 2px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .group-card {
        height: 250px;
        padding: 0.4rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .group-card img {
        height: 45px !important;
        width: 45px !important;
        min-height: 45px !important;
        min-width: 45px !important;
        max-height: 45px !important;
        max-width: 45px !important;
        margin-bottom: 0.3rem;
        align-self: center;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #25d366 !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
        aspect-ratio: 1 / 1 !important;
    }

    .group-card h3 {
        font-size: 0.7rem;
        min-height: 1.4em;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 0.2rem;
    }

    .group-card p {
        font-size: 0.55rem;
        height: 2.2em;
        -webkit-line-clamp: 2;
        line-height: 1.1;
        text-align: center;
        margin-bottom: 0.3rem;
    }

    .join-btn {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.65rem !important;
        width: 100% !important;
        border-radius: 18px !important;
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

    .category-badge,
    .country-badge {
        padding: 0.08rem 0.2rem;
        font-size: 0.45rem;
        margin: 0.05rem 0.1rem 0.05rem 0;
    }

    .card-actions {
        padding: 0 0.4rem 0.4rem 0.4rem;
        margin-top: auto;
    }

    .card-footer {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
        text-align: center;
        margin-top: 0.2rem;
    }
}

/* Very small devices (up to 380px) */
@media (max-width: 380px) {
    .groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2px !important;
        padding: 1rem 2px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .group-card {
        height: 220px;
        padding: 0.3rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .group-card img {
        height: 35px !important;
        width: 35px !important;
        min-height: 35px !important;
        min-width: 35px !important;
        max-height: 35px !important;
        max-width: 35px !important;
        margin-bottom: 0.2rem;
        align-self: center;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #25d366 !important;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
        aspect-ratio: 1 / 1 !important;
    }

    .group-card h3 {
        font-size: 0.6rem;
        min-height: 1.2em;
        line-height: 1.1;
        margin-bottom: 0.15rem;
        text-align: center;
    }

    .group-card p {
        font-size: 0.5rem;
        height: 2em;
        line-height: 1;
        margin-bottom: 0.2rem;
        text-align: center;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .join-btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.55rem !important;
        width: 100% !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3) !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

    .category-badge,
    .country-badge {
        padding: 0.05rem 0.1rem;
        font-size: 0.35rem;
        margin: 0.05rem 0.1rem 0.05rem 0;
    }

    .card-actions {
        padding: 0 0.3rem 0.3rem 0.3rem;
        margin-top: auto;
    }

    .card-footer {
        font-size: 0.4rem;
        padding: 0.15rem 0.3rem;
        text-align: center;
        margin-top: 0.15rem;
    }
}

/* Container and body width control to prevent horizontal scrolling */
.container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: 0rem;
    padding-right: 0rem;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure all group cards have consistent width constraints */
.group-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Center-align card content to match centered images */
.card-title,
.card-description {
    text-align: center !important;
}

.group-card h3,
.group-card .card-title {
    text-align: center !important;
}

.group-card p,
.group-card .card-description {
    text-align: center !important;
}

/* Base styles for all group card images - Perfect circle profile style */
.group-card img, .card-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #25d366 !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

.group-card img:hover, .card-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Desktop and large screen image sizes - Perfect circles */
@media (min-width: 768px) {
    .group-card img, .card-image img {
        height: 70px !important;
        width: 70px !important;
        min-height: 70px !important;
        min-width: 70px !important;
        max-height: 70px !important;
        max-width: 70px !important;
        margin-bottom: 0.5rem;
        align-self: center;
    }
}

/* Fixed Add Group Button at Bottom - Large Centered Mobile Only */
.fixed-add-group-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #25D366;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 200px;
}

.fixed-add-group-btn:hover {
    background: #128C7E;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.fixed-add-group-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Hide original hero button on mobile */
@media (max-width: 768px) {
    .hero-btn {
        display: none !important;
    }

    /* Show centered fixed button on mobile */
    .fixed-add-group-btn {
        display: flex !important;
    }
}

/* Responsive fixed button for smaller screens */
@media (max-width: 480px) {
    .fixed-add-group-btn {
        bottom: 15px;
        padding: 15px 30px;
        font-size: 1rem;
        border-radius: 25px;
        min-width: 180px;
    }

    .fixed-add-group-btn i {
        margin-right: 8px;
        font-size: 1.1rem;
    }
}

/* Tools Section Mobile Responsiveness */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Filter Section Loading Fix */
.filter-section {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

/* Search Box Responsive Fix */
.search-bar {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Group Card Styles */
.group-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Make sure that the layout is properly structured */
.group-card>* {
    position: relative;
}

.group-card .card-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.group-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 9px;
    color: var(--gray);
    position: relative;
    background: var(--white);
    padding: -0.5rem 1.5rem;
    z-index: 2;
    margin-top: -2.5rem;
    bottom: 40px;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.group-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    position: relative;
}

.group-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge,
.country-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.category-badge {
    background: var(--accent-color);
}

.country-badge {
    background: var(--secondary-color);
}

.group-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 2.6em;
}

.group-card p {
    margin-bottom: 1rem;
    line-height: 1.5;
    height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--text-color);
    font-size: 0.95rem;
    word-break: break-word;
}

.card-actions {
    margin-top: auto;
    width: 100%;
    padding: 0 1.5rem 1rem 1.5rem;
    position: relative;
    z-index: 2;
    bottom: 70px;
    visibility: visible;
    display: block;
}


/* chatgpt modified Filter Section */
/* General Styles */
/* General Styles */
:root {
    --primary-color: #28a745;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --radius: 8px;
}

.filter-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Search Box */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 5px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    position: relative;
}

.search-bar input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 10px;
    font-size: 16px;
}

.search-bar i {
    position: absolute;
    right: 15px;
    color: gray;
}

/* Filter Container */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    width: 100%;
    background: var(--bg-light);
    border: none;
    padding: 10px;
    font-size: 12px;
    text-align: left;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-size: 12px;
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-menu li:hover {
    background: var(--primary-color);
    color: white;
}

/* Show Dropdown */
.dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1000;
}

/* Active Filter */
.filter-btn.active {
    font-weight: bold;
    color: var(--primary-color);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    width: 100%;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 220px;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 868px) {
    .load-more-container {
        margin: 1.5rem auto;
    }

    .load-more-btn {
        font-size: 1rem;
        padding: 0.9rem 2rem;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .load-more-btn {
        width: 90%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        min-width: 180px;
    }
}

/* Click animation styles - only animate on click, not hover */
.load-more-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.load-more-btn i {
    transition: transform 0.5s ease;
}

.load-more-btn:active i {
    transform: rotate(360deg);
}

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

    100% {
        transform: rotate(360deg);
    }
}

.load-more-btn.loading i {
    animation: spin 1.5s infinite linear;
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 2rem 1rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Responsive Design Improvements */
@media (max-width: 991px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1001;
        padding: 0.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 4rem 1rem 1rem;
        box-shadow: var(--shadow);
        z-index: 999;
        overflow-y: auto;
        height: 100vh;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-toggle {
        z-index: 1000;
        position: relative;
    }

    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        width: 100%;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }

    /* Enhanced styling for tablets between 768px and 868px */
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .nav-links a,
    .nav-links .dropbtn {
        font-size: 1.2rem;
        padding: 15px;
        display: block;
        width: 100%;
        background: rgba(245, 245, 245, 0.5);
        border-radius: 8px;
        text-align: left;
    }

    .nav-links a:hover,
    .nav-links .dropbtn:hover {
        background: rgba(37, 211, 102, 0.1);
    }
}

/* Specific fixes for tablet range (768px-868px) */
@media (min-width: 768px) and (max-width: 868px) {
    .nav-toggle {
        padding: 8px;
    }

    .nav-links.active {
        width: 300px;
        left: auto;
        right: 0;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links a,
    .nav-links .dropbtn {
        padding: 12px;
        font-size: 1.1rem;
    }
}

.submit-section {
    margin: auto;
    margin-top: 1rem;
    padding: 1.5rem;
}

/* Removed conflicting grid rule - handled by responsive system above */

.groups-header {
    flex-direction: column;
    gap: 1rem;
}

.search-bar {
    max-width: 100%;
}

.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-links {
    justify-content: center;
}

.category-filters {
    padding: 1rem;
    justify-content: center;
}

.hero {
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1rem;
}

.hero-btn {
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* Group card base styles are handled above in main section */

/* Card actions styles handled in main group card section above */

/* Join button styles handled in main section and responsive breakpoints */


/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0
    }

    100% {
        background-position: 468px 0
    }
}

.loading {
    animation: shimmer 1s linear infinite;
    background: linear-gradient(to right, #269c02 8%, #07ad07 18%, #07d155 33%);
    background-size: 800px 104px;
    padding: 20px;
    text-align: center;
}

/* Enhanced Loading Styles for Group Image Extraction */
.loading-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #25D366;
}

.loading-preview p {
    color: #25D366;
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

/* Enhanced Preview Card Styles */
.link-preview.enhanced {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-preview.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2) !important;
}

.preview-image .image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(37, 211, 102, 0.9);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    z-index: 2;
}

.preview-image .image-overlay.error {
    background: rgba(220, 53, 69, 0.9);
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(38, 162, 105, 0.1);
}

.preview-status.success {
    color: #26a269;
    background: rgba(38, 162, 105, 0.1);
}

.preview-status.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.preview-url {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
    margin-top: 8px;
}

.preview-url i {
    color: #25D366;
    /*border-radius: 8px;*/
}

.group-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    position: relative;
    background-color: #f0f0f0;
    min-height: 180px;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: var(--primary-color);
    color: var(--white);
}

.notification.error {
    background: #ff4444;
    color: var(--white);
}

/* Enhanced Submit Section Title */
.submit-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.submit-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Enhanced Link Preview */
.link-preview {
    margin-top: 1rem;
    padding: 0.2rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.1);
    transition: var(--transition);
}

.link-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

.link-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.link-preview-content {
    flex: 1;
}

.link-preview-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
}

.link-preview-content p {
    margin: 0.8rem 0 0;
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Enhanced Join Group Button */
.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: 2px solid transparent;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.join-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    border-color: white;
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.join-btn:hover i {
    transform: scale(1.1);
}

.join-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.card-actions {
    margin-top: auto;
    width: 100%;
    padding-bottom: 1rem;
}

/* Update to existing CSS */
.group-badges {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.category-badge,
.country-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    padding: 0.5rem 1.5rem;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;

}

.category-badge {
    background: var(--accent-color);
}

.country-badge {
    background: var(--secondary-color);
}

.form-group+.form-group {
    margin-top: 1.5rem;
}

/* Update select styling */
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

/* Category Menu Styles */
.category-menu {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.category-btn span {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.category-btn.active {
    background: #25D366;
    color: white;
}

.category-btn.active i,
.category-btn.active span {
    color: white;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.25rem;
    }

    .category-btn {
        padding: 0.5rem;
    }

    .category-btn i {
        font-size: 1.2rem;
    }

    .category-btn span {
        font-size: 0.7rem;
    }

    .category-menu {
        display: none;
        /* Hide category menu on mobile */
    }
}

/* Loading Skeleton Styles */
.loading-skeleton {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    min-height: 350px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: #e0e0e0;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.skeleton-title {
    height: 28px;
    width: 90%;
    background: #e0e0e0;
    border-radius: 4px;
}

.skeleton-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.skeleton-badge {
    height: 24px;
    width: 100px;
    background: #e0e0e0;
    border-radius: 20px;
}

.skeleton-description {
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    width: 100%;
}

.skeleton-description:last-of-type {
    width: 70%;
}

.skeleton-button {
    height: 50px;
    background: #e0e0e0;
    border-radius: 25px;
    margin-top: auto;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
}

.skeleton-stat {
    height: 16px;
    width: 80px;
    background: #e0e0e0;
    border-radius: 10px;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Fix for card image display - Professional profile style */
.card-image {
    height: auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 1rem 0;
}

.card-image img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    border-radius: 50% !important;
    border: 2px solid #25d366 !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
    aspect-ratio: 1 / 1 !important;
}

/* Error State Styles */
.error-state {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-state i {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Design */
@media (max-width: 868px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links a,
    .dropbtn {
        font-size: 1.1rem;
        padding: 10px 15px;
    }

    .nav-dropdown-content {
        min-width: 220px;
    }
}

/* Group Title Link */
.group-title-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.group-title-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .join-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .join-btn i {
        font-size: 1.1rem;
    }

    .group-badges {
        top: 5px;
        left: 5px;
        right: 5px;
    }

    .category-badge,
    .country-badge {
        padding: 0.3rem 0.6rem;
        font-size: 10px;
    }

    .category-badge i,
    .country-badge i {
        font-size: 0.8rem;
    }
}

/* Page Layout Styles */
.page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

.page-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Form Styles for All Pages */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Button Styles for All Pages */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.page-btn i {
    font-size: 1.2rem;
}

/* Responsive Styles for All Pages */
@media (max-width: 768px) {
    .page-container {
        padding: 0;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .page-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .group-card {
        height: 350px;
        min-height: 350px;
        padding: 0.8rem;
    }

    .group-card img {
        height: 120px;
    }

    .group-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .group-card p {
        font-size: 10px;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    .card-footer {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .views-count {
        font-size: 0.45rem;
    }

    .join-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .category-badge,
    .country-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 1rem;
    }
}

/* Content Page Styles */
.content-section {
    width: 90%
        /*800px*/
    ;
    margin: 0 auto;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-section h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.content-section p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.content-section ul,
.content-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.content-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Content Page Responsive Styles */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
        margin: 1rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem;
    }

    .content-section p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .content-section ul,
    .content-section ol {
        padding-left: 1.5rem;
    }

    .content-section li {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 10px;
        margin: auto;
        /*display: contents;*/
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    .content-section li {
        font-size: 0.9rem;
    }
}

/* Content Page Lists and Tables */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-section th,
.content-section td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.content-section th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.content-section tr:hover {
    background: var(--gray-light);
}

/* Content Page Code Blocks */
.content-section pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content-section code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #333;
}

/* Content Page Images */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

/* Content Page Blockquotes */
.content-section blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray);
}

/* Content Page Responsive Tables */
@media (max-width: 768px) {
    .content-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .content-section th,
    .content-section td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Content Page Callouts */
.content-section .callout {
    background: var(--gray-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.content-section .callout h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .content-section .callout {
        padding: 1rem;
        margin: 1rem 0;
    }

    .content-section .callout h4 {
        font-size: 1.1rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Loading spinner for forms */
.loading-spinner {
    display: none;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.scroll-to-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
    }

    .nav-dropdown:hover .nav-dropdown-content,
    .nav-dropdown:focus-within .nav-dropdown-content {
        display: block;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var (--radius);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--secondary-color);
}

.modal-group-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-group-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 0;
}

.modal-group-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-group-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
    word-break: break-word;
}

.modal-group-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: var(--text-color);
    word-break: break-word;
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 0.5rem;
}

.modal-card-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-join-btn {
    width: 100%;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.modal-footer .views-count,
.modal-footer .date-added {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-footer .views-count i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal-description {
        max-height: 150px;
        margin: 1rem 0;
        font-size: 0.95rem;
    }

    .modal-card-actions {
        margin-top: 1rem;
    }

    .modal-footer {
        padding: 0.8rem;
    }

    .modal-footer .views-count,
    .modal-footer .date-added {
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .modal-footer .views-count i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-description {
        max-height: 120px;
        font-size: 0.9rem;
        margin: 0.8rem 0;
    }

    .modal-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.6rem;
        margin-top: 0.8rem;
        background: #f8f8f8;
        border-radius: var(--radius);
    }

    .modal-footer .views-count,
    .modal-footer .date-added {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        background: white;
        border-radius: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .modal-footer .views-count i {
        font-size: 0.8rem;
    }
}

/* Scrollbar Styles for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.active .modal-content {
    animation: modalFadeIn 0.3s ease forwards;
}

/* Function to render groups */
.group-render {
    display: block;
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        max-height: 85vh;
    }

    .modal-group-card img {
        height: 200px;
    }

    .modal-group-info {
        padding: 1rem;
    }

    .modal-group-info h2 {
        font-size: 1.4rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .modal-description {
        margin: 1rem 0;
        font-size: 0.95rem;
    }

    .modal-group-badges .category-badge,
    .modal-group-badges .country-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .modal-footer {
        padding-top: 0.8rem;
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .modal-footer .views-count,
    .modal-footer .date-added {
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .modal-footer .views-count i {
        font-size: 0.9rem;
    }

    /*  #player{
        width: 80%;
        margin: auto;
    }*/
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        margin: 0.3rem;
    }

    .modal-group-info {
        padding: 0.8rem;
    }

    .modal-group-info h2 {
        font-size: 1.2rem;
    }

    .modal-description {
        font-size: 0.9rem;
        margin: 0.8rem 0;
    }

    .modal-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 0.5rem;
        margin-top: 0.8rem;
        background: #f8f8f8;
        border-radius: var(--radius);
    }

    .modal-footer .views-count,
    .modal-footer .date-added {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        background: white;
        border-radius: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .modal-footer .views-count i {
        font-size: 0.8rem;
    }
}

.blog-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-section h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-section h2:first-child {
    margin-top: 0;
}

.blog-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-section ul,
.blog-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-section li {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.blog-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .blog-section h2 {
        font-size: 1.3rem;
        margin: 1.5rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 1rem;
        margin: 1rem auto;
    }

    .blog-section h2 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem;
    }

    .blog-section ul,
    .blog-section ol {
        padding-left: 1.2rem;
    }
}

.group-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.group-section h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.group-section .group-content {
    margin-bottom: 2rem;
}

.group-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-section li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--gray-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.group-section li:hover {
    transform: translateX(5px);
    background: #f0f0f0;
}

.group-section li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.group-section li a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.group-section li a i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .group-section {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .group-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .group-section li {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .group-section li a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .group-section {
        padding: 1rem;
        margin: 1rem auto;
    }

    .group-section h1 {
        font-size: 1.5rem;
    }

    .group-section li {
        padding: 0.8rem;
    }

    .group-section li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section .logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-section .logo {
    width: 40px;
    height: auto;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.footer-tagline {
    margin-top: 0.5rem;
    width: 100%;
}

.footer-tagline p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.add-group-form,
.add-group-form input[type="text"],
.add-group-form input[type="url"],
.preview-section,
.preview-section img,
.whatsapp-preview,
.whatsapp-preview-inner {
    /* Reset any previously added styles */
}

/* Add mobile-specific styles for link preview */
@media (max-width: 768px) {
    .link-preview {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .link-preview img {
        height: 100px;
        width: auto;
        object-fit: contain;
    }

    .link-preview h3 {
        font-size: 1.2rem;
        margin-top: 10px;
    }
}

/* Group Details Styles */
.group-details-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Add Group Page Styles */
.add-group-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    /* Adjust as needed */
    padding: 2rem;
}

.add-group-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the content */
    max-width: 800px;
    /* Adjust as needed */
    width: 100%;
}

/* Style the form elements as needed */

/* Duplicate mobile styles removed - handled by progressive responsive system above */
/* Fast loader specific styles */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #25d366;
    font-weight: 600;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.no-groups-message {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-groups-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-groups-message h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-groups-message p {
    color: #666;
    margin-bottom: 2rem;
}

.refresh-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.refresh-btn:hover {
    background: #128c7e;
}

.fast-loaded {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Loading Animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 211, 102, 0.2);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingDots 1.4s infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

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

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}
