/* --- General body reset --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #333;
}

main {
    width: 80%;
    max-width: 1200px; /* optional: prevent it from getting too wide on large screens */
    margin: 40px auto; /* centers the main content horizontally and adds vertical spacing */
    background: #fff;  /* optional: white background to make it stand out */
    padding: 20px 30px;
    border-radius: 10px; /* optional: soft corners for modern look */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* optional subtle shadow */
}


/* --- Header / banner --- */
/* --- Header / banner --- */
.site-header {
    width: 100%;
    margin: 0;
    padding: 0;
}
/* Apply same banner styles as header */
.header-style-banner {
    background-color: #008a7f; /* replace with header banner color */
    color: #ffffff; /* text color to match header */
    padding: 1rem 0;
}

.header-style-banner p {
    margin: 0;
}



.banner {
    background-color: #008a7f;
    width: 100%;
    padding: 15px 0;
    box-sizing: border-box;
}

.banner-inner {
    display: flex;
    justify-content: flex-start; /* Left align */
    align-items: center;
    width: 100%;
    max-width: 1200px;           /* keeps it neat on large screens */
    margin: 0 auto;              /* centers the container, not the logo */
    padding: 0 30px;
}

.footer-disclaimer {
    text-align: center;
}


.logo {
    max-height: 70px;
    width: auto;
    display: block;
}


/* --- Navigation --- */
.navbar {
    background-color: #006d66;
    text-align: center;
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.navbar li {
    display: inline-block;
    position: relative;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    padding: 8px 6px;
    transition: all 0.25s ease;
    position: relative;
}

/* Subtle underline animation */
.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

/* Hover & focus effects */
.navbar a:hover,
.navbar a:focus {
    color: #b2f0e9;
}

.navbar a:hover::after,
.navbar a:focus::after {
    width: 100%;
}

/* Active page highlight */
.navbar a.active {
    color: #b2f0e9;
}

.navbar a.active::after {
    width: 100%;
}

/* Responsive tweak for small screens */
@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
        gap: 12px;
    }

    .navbar a {
        font-size: 0.95rem;
        padding: 10px 0;
    }
}


/* --- Table styling --- */
.table-container {
    width: 95%;
    margin: 40px auto;
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
    color: #333;
    table-layout: fixed; /* ← ADD THIS */
}

.data-table thead {
    background-color: #00796b;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table th,
.data-table td {
    padding: 8px 10px;       /* tighter */
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;       /* slightly smaller */
}


.data-table tr:hover {
    background-color: #f4fdfc; /* light teal tint on hover */
}

.data-table th:first-child,
.data-table td:first-child {
    border-left: none;
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Column width tuning */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 70px;
    text-align: center;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 160px; /* Company */
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 110px; /* NCT ID */
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 220px; /* Condition */
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 90px; /* Phase */
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 140px; /* Status */
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 90px; /* Patients */
}

.data-table th:nth-child(8),
.data-table td:nth-child(8) {
    width: 120px; /* Market cap */
}

.data-table th:nth-child(9),
.data-table td:nth-child(9) {
    width: 140px; /* Date */
}












.error {
    color: #c62828;
    font-weight: bold;
    text-align: center;
}


.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px auto;
    width: 80%;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
    flex: 1 1 250px;
}

.filter-group label {
    margin-right: 10px;
}

input[type="range"] {
    width: 100%;
}

/* Base button */
.btn {
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

/* Primary action button */
.btn-primary {
    background: #007bff;
    color: white;
}
.btn-primary:hover {
    background: #005fcc;
}

/* Danger / delete */
.btn-danger {
    background: #d9534f;
    color: white;
}
.btn-danger:hover {
    background: #b52b27;
}

/* Secondary / neutral */
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #555e65;
}

.market-table th {
    background-color: #009688;
    font-size: 10px;
}

.market-table td {
    font-size: 10px;
}

.market-section {
    margin-top: 12px;
}










