/* --- GLOBAL STYLES --- */
p, button, h1, h2, h3 {
    font-family: 'Google Sans', sans-serif;
}

body {
    font-family: 'Google Sans', Arial, sans-serif;
    background-color: white; 
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0; /* <-- Change this to 0 */
}

/* =========================================
   TOP NAVIGATION BAR (Sticky & Dark)
   ========================================= */
.top-nav {
    position: sticky; 
    top: 0;
    z-index: 1000; 
    display: flex;
    align-items: center;
    background-color: #111827; /* Dark slate background */
    padding: 0 40px;
    height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Styling for the SLGEA Logo/Text */
.nav-brand {
    font-size: 1.6em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-right: 40px; /* Pushes the menu items to the right */
    display: flex;
    align-items: center;
    font-family: 'Google Sans', sans-serif;
    letter-spacing: 1px;
}

/* Container for the links */
.nav-menu {
    display: flex;
    gap: 10px; /* Spacing between links */
}

/* Styling for the clean text links */
.nav-link {
    color: #94a3b8; /* Dimmed text color */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Google Sans', sans-serif;
}

/* Hover effect: Lightens the background slightly and turns text white */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Active effect: Shows the user exactly which page they are on */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* --- INSTRUCTION QUICK GUIDE CARD --- */
.instruction-card {
    background-color: #f8fbff;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.05);
}

.instruction-card h3 {
    margin-top: 0;
    color: #004085;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.instruction-card ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.instruction-card li {
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 1.05em;
    line-height: 1.6;
}

/* --- HERO BANNER (Dark Shaded Box) --- */
.hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.4em;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
}

h2 { color: #2c3e50; margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }
h3 { color: #007bff; }

/* --- BLAST WRAPPER & INPUTS --- */
.blast-wrapper {
    margin-top: 50px;
    padding: 20px;
    border-top: 4px solid #007bff;
    background: #f9f9f9;
}

#blastInput {
    width: 100%;
    font-family: monospace;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; 
}

.char-counter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.char-count-text {
    font-size: 0.85em;
    color: #666;
}

.size-warning-text {
    font-size: 0.85em;
    color: #d9534f;
    font-weight: bold;
}

.upload-section {
    padding: 10px;
    background: #eee;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* --- GENE EXPLORER SECTION --- */
.tissue-row { 
    background: white; 
    border-radius: 10px; 
    padding: 20px; 
    margin-bottom: 30px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.tissue-row, .blast-wrapper {
    padding: 0 20px; /* <-- This keeps your charts from touching the edge of the monitor */
    margin-bottom: 60px;
}

.flex-container { display: flex; gap: 15px; align-items: flex-start; }

.search-box { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 2px solid #2c3e50; 
    border-radius: 5px; 
    font-size: 16px; 
    box-sizing: border-box;
}

#geneTable { width: 100%; border-collapse: collapse; cursor: pointer; background: white; }
#geneTable th { background: #2c3e50; color: white; padding: 10px; text-align: left; }
#geneTable td { padding: 8px; border-bottom: 1px solid #ddd; font-size: 12px; }
#geneTable tr:hover { background: #ffe6f2; }
.selected-row { background-color: #ffeef8 !important; border-left: 4px solid deeppink; }

/* --- BLAST TABS --- */
.blast-tabs {
    overflow: hidden;
    border-bottom: 2px solid #007bff;
    margin-bottom: 15px;
}

.blast-tabs button {
    background-color: #f8f9fa;
    float: left;
    border: 1px solid #ccc;
    border-bottom: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 15px;
    font-weight: bold;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    color: #333;
}

.blast-tabs button:hover {
    background-color: #e2e6ea;
}

.blast-tabs button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tab-content {
    display: none;
    animation: fadeEffect 0.4s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
    background-color: white;
    font-size: 1.05em;
}