.stat-box {
    flex: 1;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}
.stat-box h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.stat-box p {
    margin: 0;
    margin-top: 4px;
    color: #666;
}
.sessions-header h2 {
    font-size: 22px;
    font-weight: 700;
}
.add-btn {
    background: #0ea5e9;
    color: #fff;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}
.active-session {
    border-radius: 14px;
    padding: 22px;
    background: #f4f9ff;
    border: 1px solid #d5e7ff;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.06);
}
.active-session h3 {
    margin-top: 0;
    font-size: 20px;
    color: #0a66c2;
}
.start-btn {
    margin-top: 14px;
    background: #0a66c2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
table {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
}
thead tr th {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
}
tbody tr {
    border-bottom: 1px solid #eee;
}
tbody tr td {
    padding: 12px;
    color: #444;
    text-align: center;
}


.table-wrapper {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

/* Base table */
.session-table {
    width: 100%;        /* fixed table width so middle scrolls */
    border-collapse: collapse;
    background: white;
}

/* Sticky columns */
.sticky-col-left {
    position: sticky;
    left: 0;
    background: white;
    z-index: 3;
}

.sticky-col-mid {
    position: sticky;
    right: 80px;   /* adjust depending on middle column width */
    background: white;
    z-index: 3;
}

.sticky-col-right {
    position: sticky;
    right: 0;
    background: white;
    z-index: 3;
}

/* Table styling */
thead tr th,
tbody tr td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}



.view-btn {
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
}

.active-session-row {
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    background: #eaf3ff;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #c9dfff;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    gap: 20px;
}

.active-left {
    width: 32%;
}

.active-label {
    font-size: 14px;
    font-weight: 700;
    color: #0a66c2;
    margin-bottom: 5px;
}

.active-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.inst-toggle {
    background: #0ea5e9;
    border: none;
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.inst-box {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.inst-box.show {
    display: block;
}

.active-middle {
    width: 38%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    font-size: 15px;
}

.active-right {
    width: 20%;
    text-align: right;
}

.start-btn-lg {
    background: #0a66c2;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}




.active-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    align-items: center; 
}

.active-col {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center content horizontally in column */
    min-width: 80px;
}

.label {
    font-size: 12px;
    color: gray;
    margin-bottom: 3px;
}

.value {
    font-size: 14px;
    font-weight: 500;
}

.session-name {
    font-weight: 600;
    font-size: 15px;
}

.start-val button {
    display: block;
    margin: 0 auto;
}

.start-val{
    display: flex;
    gap: 18px;
    align-items: center;
}

.status-active, 
.status-scheduled, 
.status-completed {
    display: inline-block;
    padding: 2px 8px;       /* small padding */
    border-radius: 12px;    /* rounded pill */
    font-size: 12px;        /* small text */
    text-align: center;
}

.status-active {
    background-color: #FFF4E5;  /* light orange */
    color: #FF8000;             /* orange */
}

.status-scheduled {
    background-color: #E5F2FF;  /* light blue */
    color: #007BFF;             /* blue */
}

.status-completed {
    background-color: #E6F4EA;  /* light green */
    color: #28A745;             /* green */
}



.session-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    /*background: #f8f8f8;*/
    border-radius: 10px;
    margin-bottom: 4px;
    width: 100%;
}

.nav-left, .nav-center, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-center { justify-content: center; display: none;}
.nav-right { justify-content: flex-end; display: none;}

.session-nav-btn {
    padding: 4px 10px;
    font-size: 12px;
    border: none;
    background: lightgray;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: black;
}

.analytics-box {
    display: flex;
    gap: 20px;
}

.analytics-item {
    text-align: center;
}

.analytics-item label {
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

.analytics-item .value {
    font-size: 15px;
    font-weight: bold;
}

.refresh-btn {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: 0.2s;
}

.refresh-btn:hover {
    transform: rotate(90deg);
}


.bot-session-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bot-session-popup {
    width: 95%;
    max-width: 550px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.bot-session-table {
    width: 100%;
    border-collapse: collapse;
}

.bot-session-table th,
.bot-session-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

.bot-label {
    font-weight: 600;
    background: #f5f5f5;
    width: 35%;
}

.bot-textarea {
    width: 100%;
    max-height: 180px;
    resize: none;
    border: none;
    border-radius: 6px;
    color: #444;
    outline: none;
    font-size: 14px;
    overflow-y: auto;
}

.bot-popup-footer {
    margin-top: 20px;
    text-align: center;
}

.bot-popup-footer button {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin: 0 10px;
}

.bot-close-btn {
    background: #ddd;
}

.bot-continue-btn {
    background: #4caf50;
    color: white;
}
