/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background-color: #0a1a35;
    color: #fff;
}

.container {
    display: flex;
    min-height: 100vh;
}

.main-container {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s ease;
}

.main-container.sidebar-open {
    margin-left: 250px; /* Match sidebar width */
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: linear-gradient(to bottom, #7a2bff, #f15bb5);
    padding: 50px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    height: 100%;
    left: -250px; /* Hide sidebar by default - match width */
    top: 0;
    z-index: 3000; /* Higher than sticky download container */
    transition: left 0.3s ease;
}

.sidebar.show {
    left: 0; /* Show sidebar when .show class is added */
}

.close-btn {
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-item {
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 18px 25px;
    width: 100%;
    text-decoration: none;
}

.sidebar-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    margin-right: 20px;
    object-fit: contain;
}

.sidebar-item span {
    font-size: 16px;
    color: white;
    white-space: nowrap;
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 30px;
}

.main-logo {
    max-width: 300px;
    height: auto;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 200px;
    width: 45%;
    max-width: 250px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.whatsapp {
    background-color: #25D366;
}

.telegram {
    background-color: #0088cc;
}

.contact-btn i {
    margin-right: 10px;
    font-size: 22px;
}

/* Download Cards */
.download-card {
    background-color: #c2ff88;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.app-info {
    display: flex;
    align-items: center;
}

.app-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.app-details {
    display: flex;
    flex-direction: column;
}

.app-name {
    font-weight: bold;
    color: #333;
}

.app-version {
    font-size: 12px;
    color: #666;
}

.download-btn {
    background-color: #00b894;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 184, 148, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
    background-color: #00d1a7;
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 184, 148, 0.3);
}

.download-btn:hover::before {
    width: 100%;
}

.download-btn.ios {
    background-color: #74b9ff;
    box-shadow: 0 2px 5px rgba(116, 185, 255, 0.3);
}

.download-btn.ios:hover {
    background-color: #54a0ff;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

/* Login Card */
.login-card {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-label {
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.flag {
    width: 80px;
    height: 50px;
}

.flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Content Card */
.content-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    color: #333;
    margin-bottom: 20px;
}

.content-card h1 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.content-card h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.content-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.content-card h3 {
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Keep Table of Contents heading blue */
.content-card h3.toc-heading {
    color: #0088cc;
}

.toc {
    padding-left: 20px;
    font-size: 14px;
}

.toc li {
    margin-bottom: 5px;
}

.toc a {
    color: #0088cc;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.content-card ul {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.content-card ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

/* Menu Button */
.menu-button {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.menu-button button {
    background: linear-gradient(135deg, #7a2bff, #f15bb5);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(122, 43, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(122, 43, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(122, 43, 255, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(122, 43, 255, 0.4);
    }
}

.menu-button button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.menu-button button:hover::before {
    left: 100%;
}

.menu-button button i {
    margin-right: 10px;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.menu-button button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(122, 43, 255, 0.6);
    background: linear-gradient(135deg, #8a3bff, #f76bc6);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.whatsapp-float i {
    font-size: 30px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding-bottom: 0; /* Remove bottom padding */
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: column;
        padding: 10px;
        overflow-y: auto;
        left: 0;
        top: -100%; /* Hide at the top instead of left side for mobile */
        transition: top 0.3s ease;
        z-index: 3000; /* Ensure sidebar is above sticky header on mobile */
    }
    
    .sidebar.show {
        top: 0; /* Show from top for mobile */
    }
    
    .sidebar-item {
        padding: 10px;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .main-container.sidebar-open {
        margin-left: 0; /* No margin on mobile */
    }
    
    /* Mobile contact buttons */
    .contact-buttons {
        gap: 15px;
        margin: 25px 0;
    }
    
    .contact-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 150px;
        width: 45%;
        max-width: 180px;
    }
    
    .contact-btn i {
        margin-right: 8px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .menu-button {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .contact-buttons {
        gap: 10px;
    }
    
    .contact-btn {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 130px;
        border-radius: 20px;
    }
    
    .contact-btn i {
        margin-right: 6px;
        font-size: 16px;
    }
    
    .main-logo {
        max-width: 240px;
    }
    
    /* Mobile menu button */
    .menu-button button {
        padding: 14px 30px;
        font-size: 18px;
        min-width: 180px;
        border-radius: 10px;
    }
    
    .menu-button button i {
        font-size: 22px;
        margin-right: 12px;
    }
}
