
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            margin: 0;
            padding: 0;
            background-color: #f8f9fa;
        }

        a:link,
        a:visited {
          color: #3b5aff; /* or specify an exact color */
          text-decoration: inherit; /* optional if you want same underline style */
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            background-color: #343a40;
            color: white;
            padding: 1rem 0;
            text-align: center;
            margin-bottom: 2rem;
        }

        h1 {
            margin: 0;
        }

        nav {
            background-color: #dbdbdb;
            padding: 10px 0;
        }

        nav ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
        }

        nav li {
            margin: 0 15px;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #17a2b8;
        }

        .card {
            background: white;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-bottom: 30px; /* Increased from 20px */
        }

        .card-title {
            margin-top: 0;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
            color: #343a40;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        table th, table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        table th {
            background-color: #f8f9fa;
            font-weight: bold;
        }

        table tr:hover {
            background-color: #f1f1f1;
        }

        .network-container {
            width: 100%;
            height: 600px;
            border: 1px solid #ddd;
            margin-bottom: 20px;
            overflow: hidden;
            min-width: 300px; /* Ensure minimum width */
            position: relative; /* For error messages */
        }

        .tooltip {
            position: absolute;
            padding: 10px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            border-radius: 5px;
            pointer-events: none;
            font-size: 14px;
            z-index: 1000;
        }

        .author-stats {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .stat-box {
            flex: 1;
            min-width: 150px;
            background: white;
            padding: 15px;
            margin: 5px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .stat-number {
            font-size: 24px;
            font-weight: bold;
            margin: 10px 0;
            color: #17a2b8;
        }

        .stat-label {
            font-size: 14px;
            color: #6c757d;
        }

        footer {
            text-align: center;
            padding: 20px;
            background-color: #343a40;
            color: white;
            margin-top: 40px;
        }

        /* Cuteries for sortable data tables */
        table.dataTable thead th {
            position: relative;
            cursor: pointer;
        }

        table.dataTable thead th.sorting:after,
        table.dataTable thead th.sorting_asc:after,
        table.dataTable thead th.sorting_desc:after {
            position: absolute;
            right: 8px;
            color: #999;
        }

        table.dataTable thead th.sorting:after {
            content: "⇕";
            opacity: 0.5;
        }

        table.dataTable thead th.sorting_asc:after {
            content: "↑";
        }

        table.dataTable thead th.sorting_desc:after {
            content: "↓";
        }

        table.dataTable thead th.sorting_asc,
        table.dataTable thead th.sorting_desc {
            background-color: #f8f9fa;
        }

        .dataTables_filter {
            margin-bottom: 10px;
        }

        .author-stats {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 15px; /* Reduced from 20px to bring the rows closer */
        }

        .stat-box {
            flex: 1;
            min-width: 150px;
            background: white;
            padding: 12px; /* Slightly reduced from 15px */
            margin: 5px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .author-stats:first-of-type .stat-box {
            background-color: #fff0f0;
        }

        .author-stats:last-of-type .stat-box {
            background-color: #f0f8ff;
        }

        .author-position {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .first-author {
            background-color: #4CAF50; /* Green */
        }

        .last-author {
            background-color: #F44336; /* Red */
        }

        .middle-author {
            background-color: #9E9E9E; /* Gray */
        }

        .solo-author {
            background-color: #4CAF50; /* Green */
            border: 2px solid #303030; /* Dark border to distinguish from first author */
        }
        