@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #3498db;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #2ecc71;
    --error-color: #e74c3c;
}

* {
    font-family: 'Poppins', 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack spinner and progress bar */
    z-index: 1000;
  }
  
  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  
  #progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    height: 10px; /* Adjust this to fit your design */
    margin-top: 20px; /* Optional space between spinner and progress bar */
    border-radius: 5px;
  }
  
  #progress-text {
    margin-top: 10px;
    font-size: 16px; /* Adjust font size */
    color: white;
    font-weight: bold;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  

#dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    background-color: var(--surface-color);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#user-info {
    display: flex;
    align-items: center;
}

#avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

#name {
    font-weight: 600;
    font-size: 1.1rem;
}

#nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background-color: #2980b9;
}

#logout, #home {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

#logout:hover, #home:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#language-switcher {
    display: flex;
    gap: 10px;
}

#language-switcher button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 5px 10px;
    font-size: 0.9rem;
}

#content {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

#licenses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.license-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.license-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.license-item h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.license-item p {
    margin-bottom: 10px;
}

.license-item input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.license-item input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.license-item button {
    width: 100%;
    margin-top: 15px;
}

.hidden {
    display: none;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    background-color: #7289da;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.discord-link:hover {
    background-color: #5f73bc;
}

.discord-link i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    #nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
    }

    #language-switcher {
        margin-top: 15px;
    }
}
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #3498db;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #2ecc71;
    --error-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    background-color: var(--surface-color);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#user-info {
    display: flex;
    align-items: center;
}

#avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

#name {
    font-weight: 600;
    font-size: 1.1rem;
}

#nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background-color: #2980b9;
}

#logout, #home {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

#logout:hover, #home:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#language-switcher {
    display: flex;
    gap: 10px;
}

#language-switcher button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 5px 10px;
    font-size: 0.9rem;
}

#content {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

#licenses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.license-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.license-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.license-item h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.license-item p {
    margin-bottom: 10px;
}

.license-item input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
    filter: blur(5px); /* Apply blur by default */
}

.license-item input:hover,
.license-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    filter: blur(0); /* Remove blur on hover or focus */
}



.license-item button {
    width: 100%;
    margin-top: 15px;
}

.hidden {
    display: none;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    background-color: #7289da;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.discord-link:hover {
    background-color: #5f73bc;
}

.discord-link i {
    margin-right: 10px;
}

#dlcs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
#updates-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
#downloads-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}
.download-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.download-item:hover {
    transform: translateY(-5px);
}

.download-item h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
}

.download-item a, 
.download-item button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.download-item a:hover,
.download-item button:hover {
    background-color: #2980b9;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.download-item button {
    background-color: #3498db;
}

.download-item button:hover {
    background-color: #2980b9;
}

  

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    #nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
    }

    #language-switcher {
        margin-top: 15px;
    }
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: #222;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    color: white;
    text-align: center;
  }
  
  .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #f44336;
    text-decoration: none;
  }
  
  .dlc-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .dlc-item a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
  }
  
  .dlc-item a:hover {
    background-color: #2980b9;
  }
  

  .update-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .update-item a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
  }
  
  .update-item a:hover {
    background-color: #2980b9;
  }
  