/* Custom styles */
:root {
    --primary-color: #00ff00;
    --secondary-color: #333;
    --text-color: #ffffff;
}

body {
    font-family: 'IRANSans', Arial, sans-serif;
    background-color: #000;
    background-image: url('BG3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This keeps the background fixed while scrolling */
    color: var(--text-color);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.logo {
    height: 40px;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    min-height: 500px;
    background-color: #00000085;
}

.main-title {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.download-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 25px;
}

.btn-info {
    background-color: #00ffff;
    border: none;
    color: #000000;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-info:hover {
    background-color: #00dddd;
    color: #000000;
}

.btn-success {
    background-color: var(--primary-color);
    border: none;
    color: #000000;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-success:hover {
    background-color: #00dd00;
    color: #000000;
}

.action-buttons .btn {
    margin: 0.5rem;
    border-radius: 25px;
    color: #ffd700;
    border-color: #ffd700;
    border-width: 2px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 2rem;
}

.action-buttons .btn:hover {
    background-color: #ffd700;
    color: #000000;
    border-color: #ffd700;
    text-shadow: none;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: white;
    padding: 1rem;
    z-index: 1045;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    width: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1044;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.sidebar ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.2rem 0;
    position: relative;
    overflow: hidden;
}

.sidebar ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    opacity: 0.1;
    transition: width 0.3s ease;
    z-index: 0;
}

.sidebar ul li a:hover {
    color: #000;
    transform: translateX(-5px);
    background-color: rgba(0, 255, 0, 0.1);
}

.sidebar ul li a:hover:before {
    width: 100%;
}

/* Optional: Add active state for current menu item */
.sidebar ul li a.active {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}

.footer {
    background-color: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 1rem 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (min-width: 1220px) {
    .sidebar {
        transform: translateX(0);
        width: 200px;
        border-radius: 10px 0 0 10px;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .navbar-toggler {
        display: none;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .main-content .container {
        margin-right: 220px; /* Account for sidebar width */
    }
}

@media (max-width: 1219px) {
    .navbar-toggler {
        display: block;
        order: 1;
    }
    
    .navbar-brand {
        order: 2;
    }
    
    .nav-buttons {
        order: 3;
    }
}

/* Update button styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.btn-close {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .main-content {
        min-height: 400px;
    }
    
    .main-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .download-buttons .btn,
    .action-buttons .btn {
        width: 90%;
        margin: 0.5rem auto;
    }

    .sidebar.active {
        width: 280px; /* Slightly wider on mobile for better touch targets */
    }

    .main-content .container {
        margin-right: 0; /* Reset the margin on mobile */
    }
}

/* Add specific styles for very small screens */
@media (max-width: 360px) {
    .sidebar.active {
        width: 100%; /* Full width on very small screens */
    }
}

/* Update content container */
.main-content .container {
    max-width: 100%;
    padding: 0 1rem;
}

/* Add smooth scrolling to the page */
html {
    scroll-behavior: smooth;
}

/* Ensure buttons don't overflow on mobile */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.nav-buttons .btn {
    white-space: nowrap;
}

/* Ensure content doesn't overflow horizontally */
.container {
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Style the unordered list to center it vertically */
.sidebar ul.list-unstyled {
    margin: auto 0; /* Centers vertically */
    width: 100%;
    padding: 2rem 0;
} 