/* التصميم الأساسي للصفحة */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: Arial, sans-serif;
    margin: 0;
    overflow: hidden;
}

/* Header */

.header {
    background: #0D1421;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    color: #1e3a5f;
    font-size: 1.2rem;
    transform: rotate(15deg);
}

.img-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00B9FF, #135FFB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #135FFB;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

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

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}


.sidenav {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 200;
    top: 0;
    right: -280px;
    background-color: #272c4a;
    overflow-x: hidden;
    transition: right 0.4s ease;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
}

.sidenav {
    /* Glass Effect Start */
    background-color: rgba(0, 45, 56, 0.3);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav.open {
    right: 0;
}

.sidenav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    margin-bottom: 20px;
}

.sidenav-logo {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

.close-btn {
    font-size: 2rem;
    color: #8a91b4;
    text-decoration: none;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #fff;
}

.sidenav-links {
    list-style: none;
    padding: 0 15px;
    flex-grow: 1;
}

.sidenav-links li a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1rem;
    color: #a8b0d3;
    display: flex;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.sidenav-links li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.sidenav-links li a:hover,
.sidenav-links li a.active {
    background-color: #3b426e;
    color: #ffffff;
}

.logout-section {
    padding: 20px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background-color: #fff;
    color: #272c4a;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.logout-btn i {
    margin-right: 10px;
}

@media (max-width: 992px) {

    .nav-links,
    .login-btn {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .results-header {
        justify-content: center;
    }

}

/* End Header */

#knowledge-graph {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

/* تصميم الشريط الجانبي */
#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border-left: 2px solid #20c997;
    /* box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); */
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px;
    color: #f0f6fc;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#sidebar.visible {
    transform: translateX(0);
}

#close-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #f85149, #da3633);
    border: none;
    color: white;
    font-size: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-sidebar:hover {
    transform: scale(1.1);
}

#sidebar h3 {
    text-align: center;
    border-bottom: 2px solid #20c997;
    padding: 0 0 15px 25px;
    margin: 3px 0 25px 0;
    font-size: 18px;
    background: linear-gradient(45deg, #20c997, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#paper-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 120px);
    overflow-x: hidden;
    padding-right: 10px;
}

#paper-list::-webkit-scrollbar {
    width: 6px;
}

#paper-list::-webkit-scrollbar-track {
    background: #0d1117;
}

#paper-list::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #20c997, #17a2b8);
}

#paper-list li {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

#paper-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #20c997, #17a2b8, #007bff);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#paper-list li:hover::before {
    transform: translateX(0);
}

#paper-list li:hover {
    background: linear-gradient(135deg, #30363d 0%, #21262d 100%);
    border-color: #20c997;
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.2);
    transform: translateX(-5px);
}

#paper-list a {
    display: block;
    padding: 15px;
    color: #f0f6fc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

#paper-list a:hover {
    color: #20c997;
}