body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

header {
    background: #1a2a3a;
    color: #ffffff;
    padding: 30px 0;
    border-bottom: #3498db 5px solid;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.workshop-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.subtitle {
    font-size: 1.3em;
    color: #3498db;
    margin: 5px 0;
}

.lab-name {
    font-size: 1.1em;
    opacity: 0.8;
}

.schedule-section {
    padding: 40px 0;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 2px solid #ddd;
    /* 增加手機版橫向捲動支援，以防按鈕太多 */
    overflow-x: auto;
    white-space: nowrap;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #777;
    transition: 0.3s;
}

.tab-link:hover {
    color: #3498db;
}

.tab-link.active {
    color: #1a2a3a;
    border-bottom: 4px solid #3498db;
}

.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-top: none;
    animation: fadeEffect 0.5s;
}

.tab-content.active {
    display: block;
}

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

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th, .schedule-table td {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    vertical-align: top; /* 確保內容對齊頂部 */
}

.schedule-table th {
    background-color: #f1f1f1;
    color: #1a2a3a;
    font-weight: bold;
}

/* --- 新增：Poster Program 專用樣式 --- */
.poster-header {
    color: #1a2a3a;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.poster-meta {
    background-color: #f1f4f6;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #555;
    border-left: 4px solid #3498db;
}

/* 讓表格在手機上可以橫向捲動 */
.table-responsive {
    overflow-x: auto;
}

.poster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    min-width: 600px; /* 防止在手機上擠成一團 */
}

.poster-table th, .poster-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.poster-table th {
    background-color: #1a2a3a;
    color: white;
    font-weight: normal;
}

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

.poster-table tr:hover {
    background-color: #f0f8ff;
}

/* Poster 表格欄位寬度設定 */
.poster-col-id { width: 5%; text-align: center; color: #888; }
.poster-col-title { width: 45%; font-weight: bold; color: #2c3e50; }
.poster-col-presenter { width: 20%; color: #3498db; }
.poster-col-authors { width: 30%; font-size: 0.9em; color: #666; }

/* RWD 調整 */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }

    .tab-link {
        padding: 15px 15px;
        font-size: 1em;
    }
}
/* Container for the buttons */
.action-bar {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* The Primary RSVP Button */
.btn-rsvp {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-rsvp:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* The Stylized Join Remotely Button */
.btn-remote {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(52, 152, 219, 0.7);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Soft modern blur effect */
}

.btn-remote:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

/* Adding a small dot icon for the "Live" feel */
.btn-remote::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ecc71; /* Green status dot */
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px #2ecc71;
}

/* Parking Section Styles */
.parking-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.parking-card {
    background-color: #fff;
    border-left: 5px solid #3498db;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.parking-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.parking-header h3 {
    margin: 0;
    color: #1a2a3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.parking-details {
    background: #f1f4f6;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.parking-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-parking {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-parking:hover {
    background-color: #34495e;
}

.parking-code {
    background: white;
    padding: 10px 15px;
    border: 1px dashed #3498db;
    border-radius: 4px;
    color: #1a2a3a;
}

.parking-code strong {
    color: #e74c3c; /* Highlight the code in red */
    margin-left: 5px;
    font-size: 1.1em;
}

.parking-footer {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

/* Container for the code */
.parking-code-container {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 10px 15px;
    border: 1px dashed #3498db;
    border-radius: 4px;
    font-size: 0.95em;
}

/* The hidden/placeholder state */
.code-hidden {
    background-color: #eee;
    color: #777;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    transition: all 0.2s ease;
}

.code-hidden:hover {
    background-color: #ddd;
    color: #333;
}

/* The revealed state */
.code-revealed {
    background-color: transparent;
    color: #e74c3c; /* Red highlight */
    padding: 2px 8px;
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.1em;
    font-family: monospace;
}
.pdf-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.85em;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.pdf-btn:hover {
    background-color: #c0392b;
}
.btn-download-all {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}
.btn-download-all:hover {
    background-color: #34495e;
}
/* Style for the venue info table to make it distinct */
.venue-table td {
    background-color: #f9f9f9;
}