/* Time Schedule Agenda Plugin Styles v2.0 */

:root {
    --ts-border-color: #e0e0e0;
    --ts-header-bg: #f5f5f5;
    --ts-header-text: #333;
    --ts-primary-color: #4285f4;
}

/* ======================================================= */
/* Διορθωμένο Σύστημα Tabs (v2 - Forceful)                */
/* ======================================================= */

.ts-tabs-container {
    width: 100%;
}

.ts-tab-input {
    display: none !important;
}

.ts-tab-label {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--ts-border-color);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    background-color: var(--ts-header-bg);
    position: relative;
    bottom: -1px;
}

.ts-tab-content {
    display: none !important;
}

.ts-tab-input:checked + .ts-tab-label {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    color: var(--ts-primary-color);
}

#ts-tab1:checked ~ #ts-content1,
#ts-tab2:checked ~ #ts-content2 {
    display: block !important;
}


/* --- Πλέγμα Προγράμματος (Grid) --- */
.ts-grid-container {
    display: grid;
    grid-template-columns: 80px repeat(calc(var(--total-cols) - 1), 1fr);
    grid-template-rows: auto repeat(var(--total-rows, 50), 100px);
    border: 1px solid var(--ts-border-color);
    background-color: #fff;
}

.ts-header {
    background-color: var(--ts-header-bg);
    color: var(--ts-header-text);
    padding: 12px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 32px;
    z-index: 10;
    border-bottom: 1px solid var(--ts-border-color);
    border-right: 1px solid var(--ts-border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ts-header:last-child {
    border-right: none;
}

.stage-title {
    font-weight: bold;
    font-size: 1.1em;
}

.stage-description {
    font-size: 0.9em;
    font-weight: normal;
    color: #555;
    margin-top: 8px;
    line-height: 1.4;
}

.stage-description img {
    max-width: 100px;
    height: auto;
    margin-top: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.stage-description p {
    margin: 0;
    padding: 0;
}

/* .ts-event-item αρχικά σχολιασμένο */
/* .ts-event-item {
    border-radius: 4px;
    padding: 8px;
    margin: 1px;
    color: white;
    font-size: 13px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
} */

.ts-event-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 4px;
    padding: 8px;
    margin: 1px;
    color: white;
    font-size: 13px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
}

.ts-event-item .ts-time {
    display: block;
    font-size: 0.9em;
    opacity: 0.85;
}

.ts-event-item .ts-title {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}

.ts-event-notes {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 10px;
}

.ts-speakers-list {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.ts-speaker {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.ts-speaker-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.ts-speaker-info {
    display: flex;
    flex-direction: column;
}

.ts-speaker-name {
    font-weight: bold;
}

.ts-speaker-job {
    font-size: 0.85em;
    opacity: 0.8;
}

.ts-moderators-list {
    font-size: 0.85em;
    margin-top: 10px;
    opacity: 0.9;
}

.ts-moderator-name {
    display: block;
}

.ts-company-logo {
    max-height: 35px;
    width: auto;
    max-width: 100px;
    margin-right: 8px;
}

.ts-time-label {
    text-align: right;
    padding-right: 10px;
    font-size: 12px;
    color: #888;
    border-bottom: 1px dotted #f0f0f0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.ts-time-label.full-hour {
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
}

/* ======================================================= */
/* Responsive Styles for Mobile                          */
/* ======================================================= */
@media (max-width: 768px) {
    .ts-grid-container {
        grid-template-columns: 60px repeat(calc(var(--total-cols) - 1), 200px);
    }

    .ts-header {
        font-size: 0.9em;
    }

    .stage-title {
        font-size: 1.1em;
    }

    .ts-event-item {
        padding: 8px;
        font-size: 12px;
    }

    .ts-speaker-photo {
        width: 30px;
        height: 30px;
    }

    .ts-speaker-name {
        font-size: 0.9em;
    }
}

/* ======================================================= */
/* Popup / Modal Styles                                  */
/* ======================================================= */

.ts-popup-content {
    display: none;
}

.ts-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.ts-popup-wrapper.is-visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ts-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.ts-popup-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    position: relative;
    z-index: 1001;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
}

.ts-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

/* ======================================================= */
/* Sticky πρώτη στήλη (Ώρα)                               */
/* ======================================================= */

.ts-grid-container {
    overflow-x: auto;
}

.ts-header.ts-time-col {
    position: sticky;
    left: 0;
    z-index: 12;
    background-color: var(--ts-header-bg);
    border-right: 1px solid var(--ts-border-color);
}

.ts-time-label {
    position: sticky;
    left: 0;
    z-index: 6;
    background-color: #fff;
    padding-right: 10px;
}

.ts-time-label.full-hour {
    z-index: 7;
    background-color: #fff;
    border-bottom: 1px solid var(--ts-border-color);
}
