:root {
            --color-primary: #800000;
            --color-primary-dark: #600000;
            --color-background: #f8f9fa;
            --color-text: #333;
            --color-text-light: #fff;
            --color-link: #1a0dab;
            --color-border: #dfe1e5;
        }

        * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        body {
            font-family: Arial, sans-serif;
         
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
            background-color: var(--color-background);
            color: var(--color-text);
        }
        .header {
    background-color: maroon;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px; /* Ensure space between logo and toggle button */
}

        .header-logo {
            width: auto;
            height: 30px;
            margin-right: 10px;
        }
        .header-title {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
        }
        
.login-button {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: auto; /* Keep login button pushed to the right */
    
}

/* Make sure that the login button and toggle button don't overlap on smaller screens */
@media (max-width: 768px) {
  

    .header-left {
        align-self: flex-start; /* Ensure the logo and toggle button stay on the left */
    }
        
}
        .login-button:hover {
            background-color: var(--color-background);
        }
        .main-content {
        
            display: flex;
           
           
            padding: 20px;
        }
        .container {
           
            width: 100%;
          
            
        }
   
       
        .footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 8px;
    text-align: center;
    display: flex; /* Add flexbox */
    justify-content: flex-end; /* Align items to the right */
    align-items: center;
}
.footer a {
    color: var(--color-text-light);
    text-decoration: none;
    margin: 0 15px;
    display: inline-block;
}
.footer a:hover {
    text-decoration: underline;
}


        @media (max-width: 768px) {
           
            .search-input {
                font-size: 12px;
            }
            .links {
                flex-direction: column;
                align-items: center;
            }
            .links a {
                margin: 5px 0;
            }
            .footer {
                padding: 10px;
            }
            .footer a {
                margin: 5px;
            }
            
            /* Mobile responsive styles for analytics */
            .main-content {
                padding: 70px 10px 20px;
            }
            
            .container {
                padding: 0 10px;
            }
            
            .section {
                margin-bottom: 30px;
            }
            
            .section-header h2 {
                font-size: 1.1rem;
            }
            
            .subtitle {
                font-size: 0.85rem;
            }
            
            table {
                font-size: 0.9rem;
                margin-top: 15px;
            }
            
            th, td {
                padding: 8px 6px;
                font-size: 0.85rem;
            }
            
            /* Adjust table column widths for mobile */
            #most-researched-table th:nth-child(1),
            #most-cited-table th:nth-child(1),
            #most-visited-table th:nth-child(1),
            #research-areas-table th:nth-child(1) {
                width: 8%;
            }
            
            #most-researched-table th:nth-child(2),
            #most-cited-table th:nth-child(2),
            #most-visited-table th:nth-child(2),
            #research-areas-table th:nth-child(2) {
                width: 60%;
            }
            
            #most-researched-table th:nth-child(3),
            #most-cited-table th:nth-child(3),
            #most-visited-table th:nth-child(3),
            #research-areas-table th:nth-child(3) {
                width: 20%;
            }
            
            #most-cited-table th:nth-child(4),
            #most-visited-table th:nth-child(4) {
                width: 12%;
            }
            
            /* Handle long text in mobile */
            .publication-name, .research-area {
                word-break: break-word;
                line-height: 1.3;
            }
            
            /* Ensure tables don't overflow on mobile */
            .section {
                overflow-x: hidden;
            }
            
            /* Better spacing for mobile */
            .section-header {
                margin-bottom: 8px;
            }
            
            /* Reduce icon size on mobile */
            .icon {
                width: 20px;
                height: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .main-content {
                padding: 60px 5px 15px;
            }
            
            .container {
                padding: 0 5px;
            }
            
            .section {
                margin-bottom: 25px;
            }
            
            .section-header h2 {
                font-size: 1rem;
            }
            
            .subtitle {
                font-size: 0.8rem;
            }
            
            table {
                font-size: 0.8rem;
                margin-top: 10px;
            }
            
            th, td {
                padding: 6px 4px;
                font-size: 0.8rem;
            }
            
            /* Further adjust column widths for very small screens */
            #most-researched-table th:nth-child(1),
            #most-cited-table th:nth-child(1),
            #most-visited-table th:nth-child(1),
            #research-areas-table th:nth-child(1) {
                width: 10%;
            }
            
            #most-researched-table th:nth-child(2),
            #most-cited-table th:nth-child(2),
            #most-visited-table th:nth-child(2),
            #research-areas-table th:nth-child(2) {
                width: 55%;
            }
            
            #most-researched-table th:nth-child(3),
            #most-cited-table th:nth-child(3),
            #most-visited-table th:nth-child(3),
            #research-areas-table th:nth-child(3) {
                width: 25%;
            }
            
            #most-cited-table th:nth-child(4),
            #most-visited-table th:nth-child(4) {
                width: 10%;
            }
            
            .icon {
                width: 18px;
                height: 18px;
            }
        }


.toggle-sidebar {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }
        .controls {
    margin-top: 10px;
}

.header {
            background-color: var(--color-primary);
            color: var(--color-text-light);
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .main-content {
            flex-grow: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 80px 20px 20px; /* Add padding to accommodate the fixed header */
        }

        /* Sidebar styles */
        .sidebar {
            background-color: var(--color-primary-dark);
            color: var(--color-text-light);
            width: 250px;
            position: fixed;
            top: 60px; /* Start the sidebar below the header */
            left: -250px; /* Initially hidden off-screen */
            height: calc(100vh - 60px); /* Full height, minus the header height */
            padding: 20px;
            box-sizing: border-box;
            z-index: 900;
            transition: left 0.3s ease; /* Smooth animation for sliding */
            overflow-y: auto; /* Allow scrolling if content is taller than the viewport */
        }
        .sidebar.active {
            left: 0; /* Bring the sidebar into view when active */
        }
        .sidebar a {
            display: block;
            padding: 10px;
            color: var(--color-text-light);
            text-decoration: none;
            margin-bottom: 10px;
            border-radius: 4px;
        }
        .sidebar a:hover {
            background-color: var(--color-primary);
        }

    
       
        .logo img {
    width: 100%; /* Ensures the image takes up the full width of its container */
    max-width: 500px; /* Limits the maximum size of the image */
    height: auto; /* Maintains the aspect ratio */
}

@media (max-width: 768px) {
    .logo img {
        max-width: 300px; /* Smaller size for mobile screens */
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 350px; /* Even smaller size for very narrow screens */
    }
}
.section {
            margin-bottom: 40px;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 5px;
        }

        .icon {
            width: 24px;
            height: 24px;
            background-color: #FFB800;
            display: inline-block;
        }

        h2 {
            color: #333;
            margin: 0;
            font-size: 1.2rem;
        }

        .subtitle {
            color: #666;
            margin: 0 0 20px 0;
            font-size: 0.9rem;
        }

        .learn-more {
            color: #666;
            text-decoration: none;
            margin-left: 5px;
        }

        .learn-more:hover {
            text-decoration: underline;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            overflow-x: auto;
            display: block;
        }
        
        @media (min-width: 769px) {
            table {
                display: table;
            }
        }

        th {
            text-align: left;
            padding: 10px;
            border-bottom: 2px solid #eee;
            color: #800000;
            font-weight: normal;
        }

        td {
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

        .publication-name, .research-area {
            color: #800000;
            text-decoration: none;
        }

        .publication-name:hover, .research-area:hover {
            text-decoration: underline;
        }

        .metric {
            color: #800000;
        }

        #most-cited-table {
            background-color: #f0f0f0;
            border: 2px solid #800000;  /* Example: add a red border to the Most Cited Publications table */
}

#research-areas-table {
    background-color: #f0f0f0;
    border: 2px solid #800000; /* Example: add a background color to the Research Areas table */
}

#most-visited-table {
    background-color: #f0f0f0;
    border: 2px solid #800000; /* Add a red border to the Most Visited Research table */
}
