/* 1. إعدادات عامة وتصفير الهوامش */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('vvvv.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    overflow-x: hidden;
}

/* 2. الهيدر (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* هذا الكود سيطبق الخصائص على أي زر يحمل كلاس login-btn مباشرة */
.login-btn {
    background: #530131dc; /* اللون الوردي الخاص بك */
    border: none;
    color: white;
    padding: 8px 25px; /* تكبير الحجم قليلاً ليكون أوضح */
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: bold;
}

.login-btn:hover {
    background: #530131dc; /* درجة أغمق عند مرور الماوس */
    transform: scale(1.05); /* حركة تكبير بسيطة */
}
.Logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
}

/* 3. شريط البحث (توسيط احترافي) */
.search-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 30%;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px;
    flex: 1;
}

.search-bar button, .user-menu button {
    background: #530131dc;
    border: none;
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.search-bar button:hover, .user-menu button:hover {
    background: #530131;
    transform: scale(1.05);
}

/* 4. زر الثلاث شرطات */
.menu-icon {
    cursor: pointer;
    z-index: 1100;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
}

/* 5. القائمة الجانبية (Sidebar) */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* مخفية تماماً */
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: rgba(255, 255, 255, 0.1);
    padding: 100px 20px 20px; /* مسافة من الأعلى عشان الهيدر */
    transition: 0.5s ease-in-out;
    z-index: 999 !important;
    border:none;
   
}

.sidebar.active {
    left: 0 !important;
}

/* 6. قائمة الروابط (داخل الـ Sidebar) */
.sidebar ul {
    list-style: none;
   
}

.sidebar li {
    margin-bottom: 15px;
    background: #530131dc;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%); /* الشكل الهندسي اللي كنت مسويه */
    justify-content: center;
}

.sidebar li:hover {
    background: #530131dc;
    transform: translateX(10px);
}

.sidebar li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}
/* الحاوية الرئيسية للمحتوى بجانب السايد بار */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr; /* تقسيم الصفحة لجزئين: جزء كبير وجزء صغير */
    gap: 30px;
    padding: 40px;
    margin-left: 0; /* سيتغير عند فتح السايد بار */
    transition: 0.5s;
}

/* بطاقات المحتوى الزجاجية */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    color: white;
    

}
.sidebar-brand {
    padding: 30px 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgb(163, 2, 136);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    
}

/* حاوية البطاقات لتكون في صف واحد */
.status-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* تصميم البطاقة الصغيرة */
.status-card.mini {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-card.mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

/* تنسيق الأيقونات */
.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.card-icon.cyan {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.card-icon.purple {
    background: rgba(187, 38, 247, 0.1);
    color: #bb26f7;
}

/* تنسيق النصوص داخل البطاقة */
.card-info {
    display: flex;
    flex-direction: column;
}

.card-info .label {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

.card-info .value {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}



/* حاوية القسم */
.traffic-monitor-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.traffic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* النقطة النابضة (الخضراء) */
.pulse-indicator {
    width: 100px;
    height: 100px;
    background: #4CAF50;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* مصور البيانات (Bars) */
.visualizer-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100px;
    gap: 5px;
    margin-bottom: 20px;
}

.bar {
    width: 10%;
    background: linear-gradient(to top, #bb26f7, #00d4ff);
    border-radius: 5px 5px 0 0;
    animation: flow-up 2s ease-in-out infinite alternate;
}

/* جعل الأعمدة تتحرك بسرعات مختلفة */
.bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 70%; animation-delay: 0.3s; }
.bar:nth-child(3) { height: 50%; animation-delay: 0.5s; }
.bar:nth-child(4) { height: 90%; animation-delay: 0.2s; }
.bar:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.bar:nth-child(6) { height: 80%; animation-delay: 0.6s; }

@keyframes flow-up {
    0% { transform: scaleY(0.5); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* النصوص السفلية */
.traffic-details {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.cyan-text { color: #00d4ff; font-weight: bold; }
.purple-text { color: #bb26f7; font-weight: bold; }






/* الحاوية الكبرى للقسم */
.network-monitor-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* صندوق الرسم البياني */
.traffic-visualizer, .server-health {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.visualizer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.live-tag {
    color: #4CAF50;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-tag .dot {
    width: 8px; height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* حركة الأعمدة */
.bars-container {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.data-bar {
    flex: 1;
    background: linear-gradient(to top, #bb26f7, #00d4ff);
    border-radius: 4px 4px 0 0;
    animation: bar-dance 2s ease-in-out infinite alternate;
}

/* توزيع حركات مختلفة للأعمدة */
.data-bar:nth-child(odd) { animation-duration: 1.5s; }
.data-bar:nth-child(even) { animation-duration: 2.5s; }

@keyframes bar-dance {
    0% { height: 20%; opacity: 0.4; }
    100% { height: 100%; opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* أشرطة الصحة (Health Bars) */
.health-item { margin-bottom: 20px; }
.health-item span { display: block; font-size: 0.85rem; color: #888; margin-bottom: 8px; }

.progress-bg {
    width: 100%; height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar { height: 100%; border-radius: 10px; }
.progress-bar.cyan { background: #00d4ff; box-shadow: 0 0 10px #00d4ff; }
.progress-bar.purple { background: #bb26f7; box-shadow: 0 0 10px #bb26f7; }





.threat-log-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    backdrop-filter: blur(10px);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* تصميم الجدول */
.threat-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.threat-table th {
    color: #888;
    font-size: 0.85rem;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
}

.threat-table td {
    padding: 15px 12px;
    color: #eee;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* تأثير التوهج عند تمرير الفأرة على السطر */
.threat-table tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

/* علامات الخطورة (Risk Badges) */
.risk {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
}
.risk.high { background: rgba(255, 71, 87, 0.2); color: #ff4757; }
.risk.medium { background: rgba(255, 165, 2, 0.2); color: #ffa502; }
.risk.low { background: rgba(46, 213, 115, 0.2); color: #2ed573; }

/* علامات الحالة (Status) */
.status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status.blocked::before { content: '●'; color: #ff4757; }
.status.isolated::before { content: '●'; color: #ffa502; }
.status.cleared::before { content: '●'; color: #2ed573; }

/* زر التصدير */
.view-all-btn {
    background: transparent;
    border: 1px solid #bb26f7;
    color: #bb26f7;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.view-all-btn:hover {
    background: #bb26f7;
    color: white;
    box-shadow: 0 0 15px rgba(187, 38, 247, 0.4);
}






.radar-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.radar {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

/* شعاع المسح */
.sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(0, 212, 255, 0.4) 100%);
    animation: rotate-radar 3s linear infinite;
    transform-origin: center;
}

/* الدوائر الداخلية */
.circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
}
.c1 { width: 30%; height: 30%; }
.c2 { width: 60%; height: 60%; }
.c3 { width: 90%; height: 90%; }

/* النقاط المكتشفة (الومضات) */
.blip {
    position: absolute;
    width: 5px; height: 5px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    animation: blink-blip 2s infinite;
}
.b1 { top: 30%; right: 40%; }
.b2 { bottom: 20%; left: 30%; animation-delay: 1s; }

@keyframes rotate-radar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink-blip {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.radar-info h4 {
    color: #00d4ff;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}
.radar-info p {
    color: #666;
    font-size: 0.75rem;
    margin: 5px 0 0;
}





.about-section {
    width: 100%;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px ;
}

.about-container {
    display: flex;
    justify-content: space-between; /* هذا السطر هو الذي يدفع النص لليسار والشعار لليمين */
    align-items: center;
    width: 100%;
    padding: 0 5%; /* مسافة أمان خفيفة من الحواف */
}

.about-text-content {
    flex: 1;
    max-width: 60%; /* ليأخذ النص مساحة أكبر قليلاً */
    text-align: left;
}

.about-text-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.goals-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.goal-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 3px solid #ff007f; /* لمسة بلون شعارك */
    flex: 1;
}

.about-logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* دفع الشعار لأقصى اليمين */
    /* مسافة أمان من الحافة اليمنى */
}

.about-logo-wrapper img {
    width: 990px; /* كبّرنا الحجم ليكون واضحاً في اليمين */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(226, 14, 113, 0.4));
    animation: float 4s ease-in-out infinite; /* حركة عائمة بسيطة */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* للتوافق مع الهواتف */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-text-content {
        max-width: 100%;
        text-align: center;
    }
    .about-logo-wrapper {
        margin-bottom: 30px;
    }
}





.share-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.btn {
    position: relative;
    width: 200px;
    height: 70px;
    border-radius: 40px;
    border: 2px solid #310115; /* يمكنك تغييره للون شعارك #00d2ff */
    box-shadow: 2px 3px 7px rgba(196, 0, 75, 0.521);
    cursor: pointer;
    overflow: hidden; /* لإخفاء الأيقونات قبل التوسع */
    transition: all 0.5s ease;
}

.follow-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: none;
    background: #ff007f; /* خلفية متناسقة مع موقعك */
    color: white;
    font-family: inherit;
    z-index: 2;
    transition: all 0.5s ease;
    margin: bottom 50px;    
}
/* حالة التحويم - التوسع */
.btn:hover {
    width: 300px; /* يتوسع الزر عند مرور الماوس */
}

.btn:hover .follow-btn {
    top: -100%; /* تختفي الكلمة للأعلى */
}

.media {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-radius: inherit;
    font-size: 1.5rem;
    position: absolute;
    bottom: -100%; /* الأيقونات تكون مختبئة بالأسفل */
    z-index: 1;
    transition: bottom 0.5s ease;
}

.btn:hover .media {
    bottom: 0; /* تظهر الأيقونات عند التحويم */
}

.media a {
    color: white;
    transition: 0.3s;
}

.media a:hover {
    color: #ff007f; /* لون شعارك عند التأشير على الأيقونة */
    transform: scale(1.2);
}




.main-footer {
    background: rgba(0, 0, 0, 0.8); /* خلفية داكنة متناسقة مع الرادار */
    backdrop-filter: blur(15px);
    color: white;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 5%;
}

.footer-logo {
    flex: 2;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: #00d2ff; /* اللون الأزرق التقني */
}

.footer-logo p {
    color: #bbb;
    max-width: 300px;
    line-height: 1.5;
}

.footer-links {
    flex: 1;
    margin-bottom: 30px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #ff007f; /* اللون الفوشي لتمييز العناوين */
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #00d2ff;
    padding-left: 5px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom i {
    color: #ff007f;
}


html {
    scroll-behavior: smooth;
}





/* خلفية النافذة (تغطي الشاشة بالكامل) */
.modal {
    display: none; /* مخفية افتراضياً */
    position: fixed;
    z-index: 2000; /* لتكون فوق كل شيء بما في ذلك الرادار */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

/* صندوق المحتوى */
.modal-content {
    background: rgba(20, 20, 20, 0.95);
    margin: -100px auto; /* تبدأ من فوق الشاشة */
    padding: 30px;
    border: 1px solid #00d2ff;
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    transition: all 0.5s ease-in-out; /* حركة النزول */
    position: relative;
}

/* عندما تصبح النافذة نشطة */
.modal.active {
    display: block;
}

.modal.active .modal-content {
    margin: 10% auto; /* تنزل لمكانها الطبيعي */
}

/* زر الإغلاق (X) */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #888;
    font-size: 28px;
    cursor: pointer;
}

.close-btn:hover { color: #ff007f; }

.input-group {
    margin: 20px 0;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #00d2ff;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
}

.login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00d2ff, #ff007f);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}



#exportLogBtn {
    transition: all 0.3s ease;
    cursor: pointer;
}

#exportLogBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
    filter: brightness(1.2);
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

