body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.content {
    margin: 0 auto;
    width: 1200px;

}

.dropdown-content {
    z-index: 9999;
}

/* Floating Menu Basic Styling */
.floating-menu {
    position: fixed;
    top: 10%;
    left: 10px;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
}

.floating-menu ul {
    list-style-type: none;
    padding: 0;
}

.floating-menu li {
    position: relative;
}

.floating-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.floating-menu li:hover {
    background-color: #444;
}

/* Submenu Styling */
.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #333;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.submenu li {
    white-space: nowrap;
}

/* Show submenu on hover */
.dropdown:hover>.submenu {
    display: block;
}

nav {
    display: flex;
    justify-content: space-between;
    /* Ensures logo and menu are on opposite sides */
    align-items: center;
    /* Vertically center items */
    background-color: #333;
}

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

nav ul li {
    position: relative;
}

.logo {
    float: left;
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    padding: 15px 20px;
    display: block;
}


nav ul li a {
    float: right;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
}

/* nav ul li div{
    float: right;
    color: red;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
} */

nav ul li a:hover {
    background-color: #575757;
}

nav ul li:hover>a {
    background-color: #444;
}

nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #323030;
    min-width: 70px;
    top: 100%;
    left: 0;
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.3);
    justify-content: left;
}

.dropdown-content li a {
    padding: 12px 12px;
    /* text-align: left;
    justify-content: left; */
}

.dropdown-content li a:hover {
    background-color: #575757;
}

.regularTable {
    width: 100%;
    border-collapse: collapse;
    /* Collapses borders into a single line */
}

.regularTable table .regularTable th,
.regularTable td {
    border: 1px solid #ddd;
    /* Light border for table, header and data cells */
}

.regularTable th,
.regularTable td {
    padding: 8px;
    text-align: left;
}

.regularTable th {
    background-color: #f2f2f2;
    /* Light gray for odd rows */
}

/* Apply background color to alternate rows */
.regularTable tr:nth-child(even) {
    background-color: #f2f2f2;
    /* Light gray for odd rows */
}

.regularTable tr:nth-child(odd) {
    background-color: #ffffff;
    /* White for even rows */
}

/* Optional: Add hover effect for rows */
.regularTable tr:hover {
    background-color: #ddd;
    /* Light gray background on row hover */
}

#new_button {
    float: right;
    padding: 10px 0px;
}

.button {
    display: inline-block;
    /* Makes the link behave like a block element */
    padding: 5px 5px;
    /* Adds padding to make it look like a button */
    background-color: #1308ed;
    /* Green background */
    color: white;
    /* White text */
    text-align: center;
    /* Center the text inside the button */
    text-decoration: none;
    /* Remove the underline */
    font-size: 16px;
    /* Font size */
    border-radius: 5px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    transition: background-color 0.3s;
    /* Smooth transition for background color */
}

.button:hover {
    background-color: #45a049;
    /* Darker green on hover */
}

a.button {
    display: inline-block;
    /* Makes the link behave like a block element */
    padding: 10px 20px;
    /* Adds padding to make it look like a button */
    background-color: #1308ed;
    /* Green background */
    color: white;
    /* White text */
    text-align: center;
    /* Center the text inside the button */
    text-decoration: none;
    /* Remove the underline */
    font-size: 16px;
    /* Font size */
    border-radius: 5px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    transition: background-color 0.3s;
    /* Smooth transition for background color */
}

/* Change the background color when hovered */
a.button:hover {
    background-color: #45a049;
    /* Darker green on hover */
}

.disabled {
    color: gray;
    /* Change text color */
    pointer-events: none;
    /* Disable interactions (clicking, hover, etc.) */
    opacity: 0.5;
    /* Optional: make it look less prominent */
}

.nav-user {
    float: left;
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 5px 5px;
    display: block;
}

#ajax-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: yellow;
}


.grid-table {
    width: 100%;
    table-layout: fixed;
    border: 0;
    padding: 0;
    /* Makes columns equal width */
}

.grid-cell {
    border: 0px;
    padding: 0px;
    vertical-align: top;
    text-align: left;
}

.toolbox-table {
    table-layout: fixed;
    border: 10;
    padding: 10;
    background-color: #e6f7ff;
    /* Makes columns equal width */
}

.toolbox-cell {
    border: 0px;
    padding: 0px;
    vertical-align: top;
    text-align: left;
}


a.active-link {
    background-color: yellow;
    color: black;
    font-weight: bold;
    /* or any other highlight style you prefer */
    text-decoration: underline;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.sortableTable {
    border-collapse: collapse;
    width: 100%;
}

.sortableTable table,
.sortableTable th,
.sortableTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.sortableTable th {
    background-color: #f2f2f2;
    cursor: pointer;
}

.sortableTable th:hover {
    background-color: #ddd;
}



/* Apply background color to alternate rows */
.sortableTable tr:nth-child(odd) {
    background-color: #f2f2f2;
    /* Light gray for odd rows */
}

.sortableTable tr:nth-child(even) {
    background-color: #ffffff;
    /* White for even rows */
}

.sortableTable tr:hover {
    background-color: #ddd;
}

.sort-asc::after {
    content: " ↑";
}

.sort-desc::after {
    content: " ↓";
}

.error-message {
    background-color: #ffebee;
    /* Light red background */
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    color: #c62828;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spacer {
    display: block;
    width: 100%;
    /* No background or border by default */
}

.spacer-sm {
    height: 1rem;
}

.spacer-md {
    height: 2rem;
}

.spacer-lg {
    height: 4rem;
}

.spaced-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0px;
    /* 15px vertical spacing */
}

.spaced-table tr {
    background: white;
    /* Needed for visual separation */
    text-align: center;
    /* Centers content horizontally */
}

.spaced-table td {
    padding: 8px 0px;
    background: #f8f8f8;
    text-align: center;
    /* Centers content horizontally */
}

.table-container table {
    width: 100%;
    /* Fill container */
    table-layout: fixed;
    /* Force cells to respect width */
    word-break: break-word;
    /* Prevent long text from breaking layout */
}

.paging {
    display: flex;
    justify-content: space-between;
    /* Ensures logo and menu are on opposite sides */
    align-items: center;
    /* Vertically center items */
    background-color: #333;
}

.paging a {
    color: white !important;
}


#context-menu {
    position: absolute;
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    min-width: 150px;
}

#context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#context-menu li {
    padding: 8px 15px;
    cursor: pointer;
}

#context-menu li:hover {
    background-color: #f5f5f5;
}

#context-menu li.divider {
    padding: 0;
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
    cursor: default;
}

.menu-item-danger {
    color: #e74c3c;
}

.alert-box {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-box.info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-box.success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-box.warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-box.error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.gallery {
    display: grid;
    grid-auto-flow: column;
    /* Arrange items in columns (horizontal) */
    grid-auto-columns: max-content;
    overflow-x: auto;
    /* grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); */
    gap: 20px;
    padding: 20px;
}

.thumbnail {
    background: white;
    width: 200px;
    height: 200px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    object-fit: cover;
    border-radius: 3px;
}

.visited {
    border: 3px solid white !important;
    box-shadow: 0 0 10px white;
}

.recently-clicked {
    border: 3px solid #FF5722 !important;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
    transform: scale(1.05);
}

.caption {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    word-break: break-word;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 12px;
}

.title {
    text-align: center;
}

.center_container {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    /* or any specific width */
}

/* ========== Demo / Gallery page ========== */
.demo-page {
    padding: 0 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    background: linear-gradient(135deg, #1a2f3a 0%, #2d4a5a 50%, #1e3a47 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.demo-title {
    margin: 0 0 0.5rem;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.demo-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.demo-gallery-section {
    margin-bottom: 2.5rem;
}

.demo-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 1.25rem;
    padding: 1rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.demo-gallery::-webkit-scrollbar {
    height: 8px;
}

.demo-gallery::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 4px;
}

.demo-gallery::-webkit-scrollbar-thumb {
    background: #2d4a5a;
    border-radius: 4px;
}

.demo-thumbnail {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.demo-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 74, 90, 0.18);
}

.demo-thumbnail .thumbnail-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.demo-thumbnail .thumbnail-image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f7f8;
}

.demo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.25s ease;
}

.demo-thumbnail:hover img {
    transform: scale(1.03);
}

.demo-thumbnail .caption {
    display: block;
    padding: 0.75rem 0.6rem;
    margin: 0;
    font-size: 0.8rem;
    color: #444;
    line-height: 1.35;
    word-break: break-word;
    border-top: 1px solid #eee;
}

.demo-thumbnail .thumbnail-link:hover .caption {
    color: #1a2f3a;
}

.demo-thumbnail img.visited {
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.demo-thumbnail img.recently-clicked {
    border: 3px solid #2d8f7a;
    box-shadow: 0 0 16px rgba(45, 143, 122, 0.45);
}

.demo-playground-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8eaec;
}

.playground-heading {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2f3a;
}

.demo-playground {
    margin: 0 auto;
    width: 100%;
    min-height: 320px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e2e4;
}

.flex-container {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.grid-container {
    display: grid;
    grid-auto-flow: column;
    /* Force horizontal flow */
    gap: 5px;
}

input[type="text"] {
    width: 400px;
    /* Limits the input's width to a maximum of 400 pixels */
    height: 40px;
    /* Sets the height of the input field */
    padding: 8px 12px;
    /* Adds internal spacing */
    border: 1px solid #ccc;
    /* Adds a border */
    border-radius: 4px;
    /* Rounds the corners */
    font-size: 16px;
    /* Sets the font size of the input text */
    box-sizing: border-box;
    /* Ensures padding and border are included in the specified width/height */
}

/* Target list page */
.target-list-page {
    padding: 0 0 2rem;
    max-width: 100%;
}

.target-list-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.25);
}

.target-list-page .page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ecf0f1;
    letter-spacing: 0.02em;
}

.target-list-page .page-title .project-name {
    color: #3498db;
    font-weight: 700;
}

.target-list-page .table-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    overflow: hidden;
}

.target-list-page .regularTable {
    margin: 0;
}

.target-list-page .regularTable thead tr {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 2px solid #e2e8f0;
}

.target-list-page .regularTable th {
    padding: 12px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-right: 1px solid #e2e8f0;
}

.target-list-page .regularTable th:last-child {
    border-right: none;
}

.target-list-page .regularTable tbody tr {
    transition: background-color 0.15s ease;
}

.target-list-page .regularTable tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.target-list-page .regularTable tbody tr:nth-child(odd) {
    background-color: #fff;
}

.target-list-page .regularTable tbody tr:hover {
    background-color: #f0f7ff !important;
}

.target-list-page .regularTable td {
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
}

.target-list-page .regularTable td:last-child {
    border-right: none;
}

.target-list-page .pdb-link {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4fd;
    color: #1e6bb8;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.target-list-page .pdb-link:hover {
    background: #3498db;
    color: #fff;
}

.target-list-page .action-pill {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #e2e8f0;
}

.target-list-page .action-pill:hover {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

.target-list-page .action-pill.primary {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.target-list-page .action-pill.primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.target-list-page .display-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.target-list-page .display-links .action-pill {
    margin: 0;
}

.target-list-page .comment-cell {
    max-width: 180px;
    font-size: 0.9rem;
    color: #64748b;
}

.target-list-page .created-cell {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

.target-list-page #new_button .button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.35);
}

.target-list-page #new_button .button:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.45);
}

/* ===== Complex Display Page ===== */
.complex-display-page {
    padding: 0 0 2rem;
    max-width: 100%;
}

.complex-display-header {
    margin-bottom: 1.25rem;
}

.complex-display-page .complex-display-title {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    color: #155724;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.complex-display-page .complex-display-title a {
    color: #0d47a1;
    font-weight: 600;
    text-decoration: none;
}

.complex-display-page .complex-display-title a:hover {
    text-decoration: underline;
}

.complex-display-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf0;
    margin-bottom: 1.25rem;
}

.complex-display-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.complex-display-toolbar .toolbar-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.complex-display-toolbar .toolbar-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 160px;
}

.complex-display-toolbar .toolbar-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.complex-display-page .button-outline {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.complex-display-page .button-outline:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #94a3b8;
}

.complex-display-toolbar .toolbar-group-cluster {
    font-size: 0.875rem;
    color: #475569;
}

.complex-display-toolbar .toolbar-group-cluster #select_core {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    min-width: 100px;
}

.complex-display-toolbar #sort-range {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.complex-display-toolbar #sort-range #sort_key {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    min-width: 100px;
}

.complex-display-toolbar #sort-range #sort_btn {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.complex-display-table-section .table-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    overflow: hidden;
}

.complex-display-page .table-container .paging {
    padding: 0.6rem 1rem;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.complex-display-page .table-container .paging:first-of-type {
    border-radius: 8px 8px 0 0;
}

.complex-display-page .table-container .paging:last-of-type {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
}

.complex-display-page .table-container .paging a {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    background: #e2e8f0;
    color: #334155 !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.complex-display-page .table-container .paging a:hover {
    background: #3498db;
    color: #fff !important;
}

.complex-display-page .regularTable {
    margin: 0;
}

.complex-display-page .regularTable thead tr {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 2px solid #e2e8f0;
}

.complex-display-page .regularTable th {
    padding: 12px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    border-right: 1px solid #e2e8f0;
}

.complex-display-page .regularTable th:last-child {
    border-right: none;
}

.complex-display-page .regularTable tbody tr {
    transition: background-color 0.15s ease;
}

.complex-display-page .regularTable tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.complex-display-page .regularTable tbody tr:nth-child(odd) {
    background-color: #fff;
}

.complex-display-page .regularTable tbody tr:hover {
    background-color: #f0f7ff !important;
}

.complex-display-page .regularTable tbody tr.selected {
    background-color: #e0f2fe !important;
}

.complex-display-page .regularTable td {
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.875rem;
}

.complex-display-page .regularTable td:last-child {
    border-right: none;
}

.complex-display-page .regularTable td a {
    color: #1e6bb8;
    text-decoration: none;
}

.complex-display-page .regularTable td a:hover {
    text-decoration: underline;
}

.complex-display-page .regularTable td:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.25rem 0.4rem;
    margin: 0 1px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.complex-display-page .regularTable td:last-child a:hover {
    background: #334155;
    color: #fff;
    text-decoration: none;
}

.complex-display-page #context-menu {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.complex-display-page .regularTable #context-button {
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

.complex-display-page .regularTable #context-button:hover {
    background: #e2e8f0;
    color: #334155;
}

/* ===== Molecule Revise Page ===== */
.molecule-revise-page {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.molecule-revise-page .molecule-revise-grid {
    border-spacing: 0 0;
}

.molecule-revise-header {
    padding: 1rem 0 1.25rem !important;
    border-bottom: 1px solid #e2e8f0;
}

.molecule-revise-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.molecule-revise-panel {
    padding: 1rem !important;
    width: 50%;
    vertical-align: top;
}

.molecule-revise-panel-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 420px;
}

.molecule-revise-panel-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.molecule-revise-toolbar {
    padding: 1rem 0 !important;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.molecule-revise-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.molecule-revise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.molecule-revise-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.molecule-revise-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.molecule-revise-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.molecule-revise-btn-primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.molecule-revise-btn-primary:hover:not(:disabled) {
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.molecule-revise-btn-secondary {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.molecule-revise-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.molecule-revise-btn-accent {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.molecule-revise-btn-accent:hover:not(:disabled) {
    background: #7c3aed;
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.molecule-revise-smiles-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.molecule-revise-smiles-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    flex-shrink: 0;
}

.molecule-revise-smiles-value {
    font-family: ui-monospace, "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: #334155;
    word-break: break-all;
    background: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
}

.molecule-revise-complex-wrap {
    padding: 0.5rem 0 !important;
}

.molecule-revise-complex-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.molecule-revise-page .molecule-revise-complex-section .regularTable {
    margin: 0;
    border-radius: 0 0 10px 10px;
}

.molecule-revise-page .molecule-revise-complex-section .regularTable th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.molecule-revise-page .molecule-revise-complex-section .regularTable td {
    padding: 10px 12px;
    border-color: #f1f5f9;
}

.molecule-revise-page .molecule-revise-complex-section .regularTable button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #f87171;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
}

.molecule-revise-page .molecule-revise-complex-section .regularTable button:hover {
    background: #fef2f2;
}

.molecule-revise-viewer-wrap {
    padding: 1rem 0 !important;
}

.molecule-revise-viewer-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    min-height: 120px;
}