/* Simple reset */
body, h1, div {
    
    margin: 0;
    padding: 0;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* Align items to the sides */
    align-items: center;
}
a {
    color: white;
}

.full-width-image{
  width: 100%;
  max-width: 100%;
  height: auto;  
 }

/* Banner styling */
#client-banner {
    margin-bottom: 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#banner-image {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    object-fit: cover;
}

.banner-upload-container {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.banner-file-input {
    margin-right: 10px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.banner-upload-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.banner-upload-btn:hover {
    background-color: #0056b3;
}

.banner-upload-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Responsive banner design */
@media (max-width: 768px) {
    #client-banner {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    #banner-image {
        max-height: 200px;
    }
    
    .banner-upload-container {
        padding: 8px;
        margin-top: 10px;
    }
    
    .banner-file-input {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .banner-upload-btn {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    #client-banner {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    #banner-image {
        max-height: 150px;
    }
}

/* FrontPage Card Styling */
#show-front-page-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.front-page-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.front-page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.front-page-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.front-page-paragraph {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.front-page-paragraph a {
    color: black;
    text-decoration: underline;
}

/* Responsive FrontPage Cards */
@media (min-width: 768px) {
    #show-front-page-container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .front-page-card {
        padding: 15px;
    }
    
    .front-page-title {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .front-page-paragraph {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .front-page-card {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .front-page-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .front-page-paragraph {
        font-size: 14px;
    }
}

.config-tab {
    padding: 10px;
    margin-right: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
}

.config-tab.active {
    background-color: #007bff;
    color: white;
    border: 1px solid #0056b3;
}
/*** Table Styling ***/
#sessions-container table, .showflow-table, #summary-container table {
    border-collapse: collapse;
    width: 100%;
}

#sessions-container th, #sessions-container td, .showflow-table th, .showflow-table td, #summary-container th, #summary-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    background-color: #f6f7f9;
    white-space: pre-line; /* Preserve line breaks in cell content */
}

#sessions-container th, .showflow-table th, #summary-container th {
    background-color: #f2f2f2;
    color: #333;
}
.showflow-table {
    table-layout: fixed;
    min-width: 100%; /* Ensures table is at least as wide as its container */
    width: auto; /* Allows table to grow beyond container width */
    border-collapse: collapse;
}
.showflow-table th:not(:first-child),
.showflow-table td:not(:first-child) {
    min-width: 200px; /* Adjust this value as needed */
    width: 200px; /* Fixed width */
}

.showflow-table th:first-child,
.showflow-table td:first-child {
    min-width: 150px; /* Fixed width for date column */
    width: 150px;
}
.showflow-table th, .showflow-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    white-space: pre-line;
}

.showflow-table th {
    background-color: #f2f2f2;
    color: #333;
}

.showflow-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.showflow-table tr:hover {
    background-color: #eaeaea;
}
.time-range {
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
}

.av-info-header {
    font-size: 0.9em;
    color: #777;
}

.av-notes {
    color: #555;
    white-space: nowrap;
}

.session-name {
    white-space: nowrap;
}
/*** Styles for the schedule container ***/
#schedule-container {
    grid-column: 1 / -1; /* Spans from the first to the last column */
    grid-row: 1 / -1; /* Spans from the first to the last row */
    /* Additional styling as needed */
}


#schedule-container table {
    border-collapse: collapse;
    width: 100%;
}

#schedule-container th, #schedule-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#schedule-container th {
    background-color: #f2f2f2;
    color: #333;
}

#schedule-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

#schedule-container tr:hover {
    background-color: #eaeaea;
}


#svg-placeholder {
    height: 300px;
    background: #f3f3f3;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.session-name {
    font-weight: bold;
    margin-top: 2px;
    margin-bottom: 2px;
    color: #333;
}
.table-wrapper {
    max-height: 80vh; /* 80% of viewport height */
    width: 100%; /* Fix the width to the parent container */
    max-width: 100%; /* Ensure it doesn't exceed parent width */
    overflow-y: auto; /* Vertical scrollbar when needed */
    overflow-x: auto; /* Horizontal scrollbar when needed */
    position: relative;
}