 :root {
            --primary-bg: #0f172a;
            --secondary-bg: #1e293b;
            --accent-blue: #3b82f6;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --border-color: #334155;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
 body {
            background-color: var(--primary-bg);
            color: var(--text-primary);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            line-height: 1.6;
        }
        body.no-scroll {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}
 .close {
    user-select: none; 
    -webkit-user-select: none;
    padding: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
    outline: none !important; }
.close:focus {
    outline: none;
    box-shadow: none;
}
.close:active {
    transform: scale(0.9);
}

.close:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}
  header {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free";
    color:  #003eff;
}
.menu-item {
    text-decoration: none;
    color: inherit;
}

.menu-item:hover {
    text-decoration: none;
    color: inherit;
}
.logo {
    font-size: 17px;
    font-weight: bold;
    flex: 1; 
}

 .menu-toggle {
         position: fixed;
            left: 1rem;
            top: 1rem;
            background: var(--secondary-bg);
            border: none;
            color: var(--text-primary);
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
        }

 .sidebar {
            width: 240px;
            height: 100vh;
            position: fixed;
            left: -260px;
            top: 0;
            background: #0f172aa1;
            border-right: 1px solid var(--border-color);
            transition: 0.3s;
            z-index: 1000;
            overflow-y: auto;
            padding-top: 80px;
        }

 .sidebar.active {
            left: 0;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            z-index: 999;
            display: none;
            transition: 0.3s;
        }

        .sidebar.active ~ .overlay {
            display: block;
        }
 .sidebar-header {
            padding: 1rem;

            position: sticky;
            top: 0;
            background: #0f172a00;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
        }

 .sidebar-header img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

 .sidebar-menu {
            padding: 0.5rem;
        }

 .menu-item {
            padding: 0.75rem;
            margin: 0.25rem 0;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

 .menu-item:hover {
            background: var(--secondary-bg);
        }

 .menu-item i {
            font-size: 1.2rem;
        }

     
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: -9px;
    transition: 0.3s;
    margin-top: 80px;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    top: -29px; 
}
 .main-content.sidebar-active {
            margin-left: 260px;
        }

 .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-left: 1px; 
    margin: 0 auto;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-container span {
    font-size: 1.2rem;
    font-weight: bold;
}
.card {
            background:#1e293b73;
            padding: 1.5rem;
            border-radius: 0.5rem;
            border: 1px solid  #1e293b73;
        }

 .card h3 {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

 .card h3 i {
            font-size: 1.5rem;
        }

  .card p {
            color: var(--text-secondary);
            font-size: 1.2rem;
            margin: 0.5rem 0;
        }

  .card .subtext {
            color: #ffffff;
            font-size: 0.9rem;
        }

  footer {
     margin-top: -8px;
    text-align: center;
    padding: 1rem;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
     margin-bottom: -42px;
   margin-top: 0;
}
    footer p {
            color: var(--text-secondary);
        }

   @media (max-width: 768px) {
       .sidebar {
            width: 70%; 
             left: -70%;
            }

     .sidebar-header {
                padding: 0.75rem;
            }

    .menu-item {
                padding: 0.5rem;
                font-size: 0.9rem;
            }

     .menu-item i {
                font-size: 1rem;
            }
     .main-content {
        padding-left: 1px;
    }
    .dashboard-grid {
        margin-left: 1.9rem;
    }
    .overlay {
                backdrop-filter: blur(3px);
            }
            
            .sidebar.active {
                left: 0;
                box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
            }
        }

        @media (max-width: 480px) {
            .sidebar {
                width: 169px;
                left: -85%;
                
            }
        
        }

     
.dashboard-grid > .card:first-child {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(90deg, #4942a6, #00629a, #1917ba);
    padding: 2rem 1rem;
}

.dashboard-grid > .card:first-child h3 {
    justify-content: center;
}

.dashboard-grid > .card:first-child #developer {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    
    .dashboard-grid > .card:first-child #developer {
        font-size: 1.1rem;
    }
    .dashboard-grid > .card:first-child .subtext {
        font-size: 0.8rem;
    }
}

.dashboard-grid > .card:first-child:hover {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}


.network-card {
    text-align: center;
}

.network-card h3 i {
    color:#003eff;
}

.network-icon {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.network-online {
    color: #10b981; 
    animation: rotateFan 2s linear infinite;
}

.network-offline {
    color: #ef4444; 
}

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

#network-details {
    font-size: 0.9rem;
    color: #ffffff;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.whatsapp-link {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: #25d366;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
}

.star-rating {
    margin: 1rem 0;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #ffcc00;
}

#rating-feedback {
    margin-top: 1rem;
    color: var(--text-primary);
}
.channel-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 1rem auto;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.join-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.join-button i {
    font-size: 1.2rem;
}

.avatar-container {
    text-align: center;
    margin: 1rem 0;
}

#welcomeModal .modal-content {
    max-width: 400px;
    padding: 2rem;
    opacity: 0;
        transform: translateY(20px);
        animation: modalEntrance 0.5s 0.2s ease forwards;
}
#welcomeModal {
        animation: backdropFade 0.5s ease forwards;
    }

#welcomeModal h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#welcomeModal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
@keyframes modalEntrance {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes backdropFade {
        from { backdrop-filter: blur(0); opacity: 0; }
        to { backdrop-filter: blur(10px); opacity: 1; }
    }
.dashboard-grid > .card:first-child h3 i.fa-code {
    color: #ffffff !important;
}

