/* General Layout */
.content-box {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Page Headers */
.content-box h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

/* Description Text */
.description {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Grid for Cancer Categories */
.cancer-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cancer-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cancer-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    color: #007BFF;
}

.cancer-type-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.cancer-type-card span {
    font-weight: bold;
    font-size: 1.1em;
}

/* --- General Page & Container Styles --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    background-color: #007BFF;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

h1 {
    margin: 0;
    font-size: 1.8em;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #cceeff;
}

main {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Registration Page Specific Styles --- */
.registration-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.registration-container h2 {
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 2em;
}

.registration-container p {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
}

.register-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
    font-weight: bold;
}

.register-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.error-message {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
/* --- Main content (for all pages) --- */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Content Box Styling (GLOBAL) --- */
.content-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 20px;
    padding: 30px;
    max-width: 1000px;
    width: 95%;
    box-sizing: border-box;
}

/* --- About Us Page Specific Styling --- */
.about-container {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.about-section {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

/* --- Documentation Page Specific Styling --- */
.documentation-page {
    padding: 40px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.documentation-page h2 {
    text-align: center;
    color: #0056b3;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* --- Base --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #007BFF;
    padding: 10px 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* New: Set a specific height for the header */
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%; /* New: Make it the same height as the header */
}

.logo {
    /* New: Set a fixed height for the logo */
    height: 50px;
    width: auto; /* New: Maintain aspect ratio */
    margin-right: 15px;
}

header h1 {
    color: white;
    margin: 0;
    padding: 0;
    font-size: 1.8em;
}

/* --- Main Navigation Menu --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* New: Vertically align nav items with the logo */
    height: 100%; /* New: Make nav bar the same height as the header */
    gap: 25px;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.main-nav li a i {
    margin-right: 8px;
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.main-nav li a:hover {
    color: #e0e0e0;
    text-decoration: none;
}

.main-nav li a:hover i {
    transform: translateY(-2px);
}


/* --- Main content --- */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Center the content box horizontally */
    align-items: center; /* Center vertically, adjust as needed */
    padding: 20px;
    box-sizing: border-box;
}

/* --- Content Box Styling --- */
.content-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 20px; /* Add margin around the box */
    padding: 30px; /* Add padding inside the box */
    max-width: 1000px; /* Limit the maximum width of the box */
    width: 95%; /* Make it responsive */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

/* --- About Us Page Specific Styling --- */
.about-container {
    padding: 0; /* Remove padding from the inner container as it's in the box now */
    max-width: 100%; /* Expand to the width of the box */
    margin: 0 auto; /* Center within the box */
    background-color: transparent; /* Make it transparent so the box background shows */
    box-shadow: none; /* Remove inner shadow */
    border-radius: 0; /* Remove inner border-radius */
}

.about-section {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    color: #0056b3;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    text-align: justify;
    margin-bottom: 15px;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-section ul li {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-section ul li i {
    color: #28a745;
    margin-right: 15px;
    font-size: 1.2em;
}

.about-section ul li strong {
    color: #007BFF;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 30px;
}

.team-member {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007BFF;
}

.team-member h3 {
    color: #333;
    font-size: 1.4em;
    margin: 10px 0 5px;
}

.team-member p {
    color: #777;
    font-size: 1em;
    margin: 0;
}

/* --- Footer --- */
footer {
    background-color: #28a745;
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.15);
    width: 100%;
    box-sizing: border-box;
}

/* --- Global link styling --- */
a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
}



/* Documentation Page Specific Styles */
.documentation-page {
    max-width: 900px; /* Adjust width as needed - controls the overall content width */
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.documentation-page h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.documentation-page p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.guide-step {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.guide-step h3 {
    color: #007BFF;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.image-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    /* Optional: A border around the image */
    border: 1px solid #ccc; 
    padding: 5px;
    border-radius: 5px;
    background-color: #fff;
    /* Ensure the wrapper respects the content box width */
    max-width: 100%; 
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.documentation-image {
    max-width: 100%; /* Important: Makes image responsive, never wider than its container */
    height: auto;    /* Important: Maintains aspect ratio */
    display: block;  /* Removes extra space below inline images */
    margin: 0 auto;  /* Centers the image within its wrapper */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow for images */
    border-radius: 4px;
    /* You can add a specific maximum width here if you want images to not grow beyond a certain point 
       even if the screen is very wide. For example: */
    /* max-width: 700px; */ 
}


.guide-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #555;
}

/* --- Search Page Specific Styling --- */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.search-form input {
    width: 60%;
    max-width: 500px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-form input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
    outline: none;
}

.search-form button {
    padding: 12px 25px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3;
}

.search-results {
    margin-top: 20px;
}

.search-results h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.search-results p {
    text-align: center;
    color: #888;
}



/* --- Solid Cancer Page Styling --- */

/* Wrapper for all ligand cards to create a grid layout */
.ligand-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

/* Individual ligand card styling */
.ligand-card {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the card */
.ligand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Styling for the image */
.ligand-structure-img {
    max-width: 180px; /* Increased size for better visibility */
    height: auto;
    display: block;
    margin: 0 auto 20px; /* Centered with bottom margin */
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Header within the card */
.ligand-card h4 {
    color: #007BFF;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Description text */
.ligand-description {
    font-style: italic;
    color: #555;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Target info */
.ligand-card p strong {
    color: #333;
}

/* Container for external links */
.ligand-links {
    margin-top: auto; /* Pushes links to the bottom of the card */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #e9ecef; /* Separator line */
}

/* Styling for the individual links */
.ligand-links a {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.ligand-links a:hover {
    color: #0056b3;
    transform: scale(1.05);
}

/* --- Solid Cancer Page Design --- */
.cancer-types-grid {
    display: grid;
    /* This will create a grid with columns of a fixed size */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.cancer-type-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* NEW: Enforce a fixed size for the card */
    width: 250px;
    height: 250px;
    /* Optional: Center the card itself within the grid cell */
    justify-self: center;
}

.cancer-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cancer-type-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.cancer-type-card span {
    font-size: 1.2em;
    font-weight: bold;
    color: #007BFF;
}

/* New: To vertically center the span */
.cancer-type-card span {
    margin-top: auto;
}
/* You might want to remove the redundant h1 from the header since OncoligandDB is already there */
/* Here's a quick fix to make the header cleaner */
header h1 {
    font-size: 1.8em;
    margin: 0;
    padding: 0;
}


/* Styling for the table */
#ligandsTable {
    width: 100%;
    border-collapse: collapse;
}

/* Highlighting the table header */
#ligandsTable thead tr {
    background-color: #007BFF;
    color: white;
}

#ligandsTable th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
}

/* Styling for table rows */
#ligandsTable tbody tr {
    border-bottom: 1px solid #dddddd;
}

/* Hover effect for the table rows */
#ligandsTable tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Specific styling for the cells to improve padding */
#ligandsTable td {
    padding: 10px 15px;
}
