﻿/* =========================
   BODY
========================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* =========================
   NAVBAR
========================= */
/* =========================
   NAVBAR
========================= */
.navbar-custom {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    background-color: transparent;
    box-shadow: none;
    flex-wrap: nowrap; /* Keep items on the same line */
}

.day-btn {
    display: inline-flex; /* Align buttons horizontally */
    flex-direction: column; /* Align day label and date vertically */
    align-items: center;
    font-size: 16px; /* Adjust font size for the day label */
    font-weight: 600;
    text-decoration: none;
    color: #212529;
    background-color: #8BCFC5; /* Light green background */
    padding: 15px 20px; /* Adjust padding */
    border-radius: 20px; /* Rounded corners for the button */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    justify-content: center; /* Center content horizontally */
    text-align: center; /* Center the text */
    min-width: 200px; /* Fixed width for buttons */
    width: auto; /* Adjust width */
}

    .day-btn .day-label {
        font-size: 18px; /* Larger font size for the label (Day 1, Workshop Day) */
        font-weight: 700; /* Make it bold */
        text-align: center;
        margin-bottom: 5px; /* Add some space below the label */
    }

    .day-btn .day-number {
        font-size: 12px; /* Smaller font size for the date */
        font-weight: bold;
        text-align: center; /* Ensure the date is centered */
    }

        .day-btn .day-number sup {
            font-size: 0.5em; /* Slightly smaller size for the superscript */
            vertical-align: super;
        }

    .day-btn .day-date {
        font-size: 12px; /* Decrease size for the date */
        font-weight: 500;
        color: black;
        margin-left: 0; /* No margin between day number and date */
    }

    .day-btn:hover {
        background-color: #00756b;
        color: #fff;
    }

        .day-btn:hover .day-number {
            color: white; /* White text for the date when hovered */
        }

    .day-btn.active {
        background-color: #265C54; /* Darker background for the active state */
        color: white;
    }

        .day-btn.active .day-number {
            color: white; /* Active state text color for day number */
        }

        .day-btn.active .day-label {
            color: white; /* Active state text color for label */
        }


/* ========== BUTTON ROW STYLES ========== */
.button-row {
    display: flex;
    flex-wrap: nowrap; /* Force buttons into a single row */
    gap: 13px; /* Space between buttons */
    margin: 20px 0;
    justify-content: space-between;
    overflow-x: hidden; /* Hide any scroll */
    width: 100%; /* Take full width of container */
}

/* ========== BASE BUTTON STYLE ========== */
.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px; /* Comfortable padding */
    font-size: 11px; /* Slightly smaller text */
    font-weight: 600;
    color: #f0f9f8;
    border: none;
    border-radius: 12px 12px 0 0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.12em;
    background-clip: padding-box;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Allow auto width adjustment */
    flex: 1 1 auto; /* Buttons grow/shrink to fit in row */
    min-width: unset;
}

    /* ========== BUTTON HOVER EFFECT ========== */
    .toggle-btn::before {
        content: '';
        position: absolute;
        top: var(--y, 50%);
        left: var(--x, 50%);
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
        transform: translate(-50%, -50%);
        border-radius: 50%;
        pointer-events: none;
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 0;
    }

    .toggle-btn:hover::before {
        width: 200%;
        height: 200%;
        opacity: 1;
    }

    .toggle-btn:hover {
        box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* ACTIVE STATE: scale up with bottom alignment */
    .toggle-btn.active {
        transform-origin: bottom center; /* scale from bottom */
        transform: scale(1.15); /* scale up 15% */
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.6);
        z-index: 2;
        color: #ffffff;
        font-size: 13px; /* slight font increase */
        border-bottom: 2px solid white;
        transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
        margin-bottom: 0;
        animation: pulseActive 2s infinite;
    }

/* Pulse animation */
@keyframes pulseActive {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.15);
    }
}



/* Individual button colors */
.btn-anatomical {
    background-color: #44546A;
}

.btn-chemical {
    background-color: #660066;
}

.btn-haematology {
    background-color: #890000;
}

.btn-humangen {
    background-color: #00B050;
}

.btn-immunology {
    background-color: #0070C0;
}

.btn-microbiology {
    background-color: #3C7D22;
}

.btn-public {
    background-color: #833C0C;
}

.btn-virology {
    background-color: #BF8F00;
}
.btn-plenary {
    background-color: darkslategray;
}

/* Arrow style */
/*.toggle-btn .arrow {
    font-weight: bold;
    font-size: 16px;
}
*/
/* =========================
   TABLE WRAPPER
========================= */
.table-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* keeps them centered but flexible */
    margin: 10px auto 30px auto;
    overflow-x: auto; /* allow horizontal scroll on small screens */
    overflow-y: visible; /* prevent vertical clipping */
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: white;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    display: none; /* default hidden */
}


    .table-wrapper.expanded {
        display: block;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        overflow: visible;
        max-height: none; /* remove cutoff */
    }



/* =========================
   TABLE STYLES
========================= */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
}

td, th {
    padding: 8px 10px;
    text-align: center;
    word-wrap: break-word;
    white-space: normal; /* prevents cut text */
}

.time-col {
    position: relative;
    z-index: 2;
    color: white !important;
    font-weight: 700;
    text-align: center;
    width: 120px;
    white-space: nowrap;
    background-color: #38887D !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.section-header {
    background-color: #44546A;
    color: black;
    text-align: left; /* Left-aligned text */
    font-weight: bold;
}

    .section-header:first-of-type {
        background-color: #44546A !important;
        color: white !important;
    }

.oral-session {
    background: #48AE9F;
    font-weight: 600;
    color: black;
    transition: background-color 0.3s ease;
}

.Q-session {
    background: #38887D;
    font-weight: 600;
    color: black;
    transition: background-color 0.3s ease;
}

    /*    .oral-session:hover {
        background-color: #414544;
        cursor: pointer;
    }*/
    .invited-session {
        background: #b2d8bf;
        font-weight: 600;
        color: black;
        transition: background-color 0.3s ease;
    }

 /*   .invited-session:hover {
        background-color: #92c999;
        cursor: pointer;
    }
*/
.break {
    background-color: #ced4da;
    font-weight: 700;
    text-align: center;
    color: #495057;
    font-style: italic;
}

.poster {
    background-color: #0dcaf0;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.15);
}

.quiz {
    background-color: #198754;
    color: white;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.session-type-col {
    background: linear-gradient(180deg, #3a7a72, #28574f);
    color: white !important;
    font-weight: 800;
    /*    writing-mode: vertical-rl !important;*/
    /* transform: rotate(180deg) !important;*/
    text-align: left;
    vertical-align: middle;
    width: 44px;
    padding: 8px 4px;
    white-space: nowrap;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

/* Hover effect on rows except header and special */
table tr:not(.section-header):not(.break):not(.poster):not(.quiz):hover td {
    background-color: rgba(56, 136, 125, 0.5) !important; /* Darker teal, semi-transparent */
    transition: background-color 0.3s ease;
}


/* =========================
   LAYOUT
========================= */
.day-container {
    display: block; /* prevent buttons stretching */
    margin: 40px 0;

}

.button-and-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.day-header {
    margin-bottom: 15px;
}

.day-date {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    background: #f1f1f1;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* =========================
   MOBILE RESPONSIVENESS
========================= */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .navbar-custom {
        flex-wrap: wrap;
        gap: 8px;
    }

    .day-btn {
        width: 100%;
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 20px;
    }

        .day-btn .day-date {
            font-size: 12px;
        }

    .button-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 10px;
    }

    .toggle-btn {
        flex: 0 0 auto;
        font-size: 12px;
        min-width: 100px;
        padding: 6px 8px;
    }

    .table-wrapper {
        width: 100%;
        margin: 10px auto;
        border-radius: 0;
        box-shadow: none;
    }

    .day-date {
        font-size: 16px;
        padding: 4px 12px;
        text-align: center;
    }

    table {
        font-size: 12px;
    }

    .time-col,
    .session-type-col {
        font-size: 10px;
        width: 80px;
    }

    .session-type-col {
        padding: 4px 2px;
    }

    .button-and-panel {
        gap: 8px;
    }
}

.day-btn {
    display: inline-block;
    text-align: center;
    background-color: #a3e3d9;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: sans-serif;
    text-decoration: none;
}

.day-label {
    font-size: 14px;
    margin-bottom: 6px;
}

.day-date {
    background-color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
}

.day-number sup {
    font-size: 0.6em;
    vertical-align: super;
    font-weight: bold;
}

.day-btn {
    display: inline-block;
    text-align: center;
    background-color: #a3e3d9; /* Teal */
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: sans-serif;
    text-decoration: none;
    margin: 5px;
}

.day-date {
    background-color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-top: 5px;
}

.day-number sup {
    font-size: 0.6em;
    vertical-align: super;
}



/* WorkShop*/

.session-header {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff8e1;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toggle-icon {
    margin-right: 10px;
    font-size: 1.7rem;
}

/* .session-header:hover {
    background-color: #0f165b;
}*/

.time-col {
    background-color: #44546A;
    color: white;
    font-weight: bold;
    text-align: center;
    width: 160px;
}

.select-cell {
    text-align: center;
    background-color: #ede7f6;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* font-style: italic;*/
    font-size: 14px;
    height: 100%;
    margin: 0;
}

/* Custom checkbox style */
.select-cell input[type="checkbox"] {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 3px solid #888;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    background-color: #e3f2fd;
    transition: all 0.3s ease;
}

    .select-cell input[type="checkbox"]:checked {
        background-color: #43a047;
        border-color: #2e7d32;
    }

    .select-cell input[type="checkbox"]::after {
        content: '✓';
        color: white;
        font-size: 18px;
        position: absolute;
        left: 5px;
        top: 0px;
        display: none;
    }

    .select-cell input[type="checkbox"]:checked::after {
        display: block;
    }

.content-cell {
    padding: 20px;
    vertical-align: top !important;
    font-size: 0.3rem;
    text-align: center;
    font-style: italic;
}


.conveners {
    font-weight: bold;
    font-size: 0.70rem;
}

.presenters {
    font-style: italic;
    font-size: 0.70rem;
    font-weight: bold;
}

.time-block {
    /* color: white;*/
    font-size: 0.95rem;
    font-weight: bold;
}
/*
.table-hover tbody tr:hover {
    background-color: #fff9c4;
}*/

.title {
    color: red;
}

.disclaimer-text {
    color: darkred;
    font-weight: bold;
    font-size: 20px;
}




/* Apply fixed layout and equal-width column styles to all session tables */
#sessionTable table,
#session1Table table,
#session2Table table,
#session3Table table,
#session4Table table,
#session5Table table,
#session6Table table,
#session7Table table {
    table-layout: fixed;
    width: 100%  !important;
}

/* Ensure all th/td have equal column width and can wrap text */
#tblSession th, #sessionTable td,
#session1Table th, #session1Table td,
#session2Table th, #session2Table td,
#session3Table th, #session3Table td,
#session4Table th, #session4Table td,
#session5Table th, #session5Table td,
#session6Table th, #session6Table td,
#session7Table th, #session7Table td {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-overflow: unset;
    text-align: center;
    vertical-align: middle;
    padding: 6px 10px;
    font-size: 0.7rem;
    min-width: 120px; 
}


.th-small {
    font-size: 0.85rem;
    padding: 2px 4px !important; /* very small padding */
    height: 25px !important; /* small height */
    line-height: 1 !important; /* tight line height */
    max-height: 20px !important;
    vertical-align: middle !important;
}

.container-fluid.px-4.py-3 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: auto;
}
.time-coll {
    background-color: #ffffff !important;
    color: #000 !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.tim-coll {
    background-color: #44546A !important;
    color: white !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.ti-col {
    background-color: #8497B0 !important;
    color: white !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.t-col {
    background-color: lightgray !important;
    color: black !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.header-row {
    background-color: #1f4e79 !important;
    color: white;
    font-weight: bold;
}

.sub-header {
    background-color: #3c3c3b !important;
    color: white;
    /* font-weight: bold;*/
}

.yellow-highlight {
    background-color: #ffff00 !important;
    color: #000 !important;
    /* font-weight: bold;*/
}

.grey-highlight {
    background-color: white !important;
    color: #000 !important;
}

.gray-row {
    background-color: #d9d9d9 !important;
    font-weight: bold;
}

.blue-row {
    background-color: #8497B0 !important;
    font-weight: bold;
    color: white !important;
}

.purple-row {
    background-color: #00B050 !important;
    color: white !important;
    font-weight: bold;
}

.schedule-table {
    table-layout: fixed; /* ✅ Prevents extra space in second column */
    width: 100%;
}

    .schedule-table td {
        vertical-align: middle;
        padding: 6px;
        word-wrap: break-word;
        margin-bottom: 0px;
    }

.blue-background {
    background-color: #1f4e79;
    padding: 15px;
    border-radius: 5px;
    color: #FFC000;
    margin-bottom: 15px;
    text-align: left;
}

.date-label {
    color: #ffcc99;
    font-size: 1.2rem;
    font-weight: bold;
}

.text-right-note {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 1px;
    margin-top: 25px;
}

.bg-white {
    background-color: white !important;
    color: inherit;
}

/* ✅ Optional: Speaker column tighter fit */
.speaker-col {
    width: 30%;
    white-space: nowrap;
    text-align: right;
    font-style: italic;
    color: black;
}

.session-text {
    line-height: 1.3;
    width: 100%;
}
@media (max-width: 768px) {
    /* Make session header stack or wrap nicely */
    .session-header {
        flex-direction: column;
        text-align: center;
        font-size: 0.9rem;
        padding: 12px;
    }

    .toggle-icon {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 1.4rem;
    }

    .disclaimer-text {
        font-size: 1rem;
        text-align: center;
    }

    .text-right-note {
        text-align: center;
        font-size: 1rem;
    }

    .blue-background {
        font-size: 1rem;
        text-align: center;
        padding: 10px;
    }

    .date-label {
        font-size: 1rem;
    }

    /* Table adjustments */
    .schedule-table,
    .table,
    .table-bordered {
        font-size: 0.65rem;
        overflow-x: auto;
        display: block;
        width: 100%;
    }

    .schedule-table td,
    .schedule-table th {
        white-space: normal;
        font-size: 0.65rem;
        padding: 4px;
    }

    /* Columns adjustments */
    .time-col,
    .tim-coll,
    .ti-col,
    .t-col {
        width: 100px;
        font-size: 0.65rem;
    }

    .speaker-col {
        text-align: center;
        font-size: 0.6rem;
        width: 100%;
    }

    .content-cell {
        font-size: 0.6rem;
    }

    .conveners,
    .presenters {
        font-size: 0.6rem;
        text-align: center;
    }

    .container-fluid.px-4.py-3 {
        padding: 1rem !important;
        overflow-x: auto;
    }

    /* Checkbox styling adjustments */
    .checkbox-label {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }

    .select-cell input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .select-cell input[type="checkbox"]::after {
        font-size: 14px;
        left: 3px;
        top: -2px;
    }

    .th-small {
        font-size: 0.65rem;
        padding: 2px;
    }
}

.session-typer {
    background-color: #61B5A9;
    color: white;
    font-weight: bold;
    text-align: left;
}
.Q-session1 {
    background-color: #38887D;
    text-align: left;
    font-weight: bold;
    color: white;
}

/*ProgrammeataGlance */

.yime-col {
    background-color: #ffffff !important;
    color: #000 !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.tim-col {
    background-color: #44546A !important;
    color: white !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.ti-col {
    background-color: #8497B0 !important;
    color: white !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.t-col {
    background-color: lightgray !important;
    color: black !important;
    font-weight: bold;
    width: 150px;
    white-space: nowrap;
}

.header-row {
    background-color: #1f4e79 !important;
    color: white;
    font-weight: bold;
}

.sub-header {
    background-color: #3c3c3b !important;
    color: white;
    /* font-weight: bold;*/
}

.yellow-highlight {
    background-color: #ffff00 !important;
    color: #000 !important;
    /* font-weight: bold;*/
}

.grey-highlight {
    background-color: white !important;
    color: #000 !important;
}

.gray-row {
    background-color: #d9d9d9 !important;
    font-weight: bold;
}

.blue-row {
    background-color: #8497B0 !important;
    font-weight: bold;
    color: white !important;
}

.purple-row {
    background-color: #00B050 !important;
    color: white !important;
    font-weight: bold;
}

.schedule-table {
    table-layout: fixed; /* ✅ Prevents extra space in second column */
    width: 100%;
}

    .schedule-table td {
        vertical-align: middle;
        padding: 6px;
        word-wrap: break-word;
        margin-bottom: 0px;
    }

.blue-background {
    background-color: #1f4e79;
    padding: 15px;
    border-radius: 5px;
    color: #FFC000;
    margin-bottom: 15px;
    text-align: left;
}

.date-label {
    color: #ffcc99;
    font-size: 1.2rem;
    font-weight: bold;
}

.text-right-note {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 1px;
    margin-top: 25px;
}

.bg-white {
    background-color: white !important;
    color: inherit;
}

/* ✅ Optional: Speaker column tighter fit */
.speaker-col {
    width: 30%;
    white-space: nowrap;
    text-align: right;
    font-style: italic;
    color: black;
}

.session-text {
    line-height: 1.3;
    width: 100%;
}