﻿/* 議程前台樣式 — 由 sp_agenda.aspx 抽出。
   改樣式只要更新這支檔，不用動 .aspx（記得把 .aspx 裡 <link> 的 ?v= 版號一起改，才能穿過瀏覽器快取）。*/
    .agenda-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding:12px 0; flex-wrap:wrap; }
    .agenda-search { flex:1; min-width:200px; max-width:400px; padding:9px 14px; border:1px solid #ced4da; border-radius:6px; font-size:14px; color:#212529; background:#fff; }
    .agenda-search:focus { outline:none; border-color:#0d6efd; box-shadow:0 0 0 3px rgba(13,110,253,.15); }
    .btn-toggle-filter { padding:8px 16px; border:1px solid #dee2e6; border-radius:6px; background:#fff; font-size:14px; cursor:pointer; color:#495057; white-space:nowrap; }
    .btn-toggle-filter:hover { background:#f8f9fa; }
    .agenda-notice { flex:1 1 260px; min-width:220px; font-size:13px; line-height:1.55; color:#fff; font-weight:600; text-shadow:0 1px 3px rgba(0,0,0,.35); }
    .day-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:20px; border-bottom:2px solid rgba(255,255,255,0.2); padding-bottom:0; }
    .day-tab { padding:10px 18px; border:none; background:none; cursor:pointer; font-size:14px; color:rgba(255,255,255,0.75); border-bottom:3px solid transparent; margin-bottom:-2px; transition:color .15s, border-color .15s, background .15s; border-radius:4px 4px 0 0; }
    .day-tab:hover { color:#fff; background:rgba(255,255,255,0.1); }
    .day-tab.active { color:#fff; border-bottom-color:#60a5fa; font-weight:700; }
    .day-tab .tab-date { font-weight:400; font-size:12px; margin-left:4px; }
    .day-tab .tab-count { font-size:12px; margin-left:4px; color:rgba(255,255,255,0.45); }
    .day-tab.active .tab-count { color:#93c5fd; }
    .agenda-wrapper { display:flex; gap:24px; max-width:1300px; margin:0 auto; }
    .filter-panel { min-width:240px; max-width:260px; flex-shrink:0; background:#fff; border:1px solid #dee2e6; border-radius:8px; padding:16px; box-shadow:0 2px 8px rgba(0,0,0,.06); align-self:flex-start; }
    .filter-panel.hidden { display:none; }
    .filter-panel details { margin-bottom:0; border-bottom:1px solid #f0f0f0; }
    .filter-panel details:last-of-type { border-bottom:none; }
    .filter-panel summary { font-size:13px; font-weight:700; color:#212529; cursor:pointer; padding:10px 0; list-style:none; display:flex; align-items:center; justify-content:space-between; user-select:none; }
    .filter-panel summary::-webkit-details-marker { display:none; }
    .filter-panel summary::after { content:'\25B2'; font-size:10px; color:#adb5bd; }
    .filter-panel details:not([open]) summary::after { content:'\25BC'; }
    .filter-group-list { list-style:none; padding:0 0 8px 0; margin:4px 0 0 0; }
    .filter-group-list li { margin-bottom:4px; }
    .filter-group-list label { display:flex; align-items:center; gap:8px; cursor:pointer; padding:4px 8px; border-radius:5px; font-size:13px; color:#333; transition:background .12s; }
    .filter-group-list label:hover { background:#f0f4ff; }
    .filter-group-list input[type="checkbox"] { width:15px; height:15px; accent-color:#0d6efd; flex-shrink:0; }
    .filter-badge { margin-left:auto; background:#e9ecef; color:#495057; font-size:11px; padding:1px 7px; border-radius:10px; font-weight:600; }
    .filter-subgroup-search { width:100%; padding:5px 8px; border:1px solid #dee2e6; border-radius:5px; font-size:12px; margin-bottom:6px; color:#212529; box-sizing:border-box; }
    .filter-subgroup-search:focus { outline:none; border-color:#0d6efd; }
    .btn-clear-all { width:100%; padding:7px; border:1px solid #dee2e6; border-radius:6px; background:#f8f9fa; font-size:13px; cursor:pointer; color:#495057; margin-top:4px; }
    .btn-clear-all:hover { background:#e9ecef; }
    .agenda-scroll { flex:1; min-width:0; }
    .time-group { margin-bottom:4px; }
    .time-group-header { font-size:14px; font-weight:700; color:#495057; padding:10px 14px 8px 14px; border-bottom:2px solid #e9ecef; margin-bottom:10px; margin-top:24px; background:#f8f9fa; border-radius:6px 6px 0 0; }
    .time-group:first-child .time-group-header { margin-top:0; }
    .time-group-header .time-label { color:#0d6efd; font-size:15px; }
    .agenda-card { background:#fff; border:1px solid #dee2e6; border-radius:8px; padding:16px 18px; margin-bottom:10px; box-shadow:0 1px 4px rgba(0,0,0,.04); transition:box-shadow .18s, transform .15s; cursor:pointer; }
    .agenda-card:hover { box-shadow:0 4px 16px rgba(13,110,253,.13); transform:translateY(-1px); border-color:#b8d0ff; }
    .agenda-card-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
    .agenda-tag { display:inline-block; font-size:11px; padding:2px 10px; border-radius:10px; font-weight:600; color:#fff; }
    .agenda-card-title { font-size:15px; font-weight:700; color:#1a3a5c; margin-bottom:8px; line-height:1.4; }
    .agenda-card-speakers { margin-bottom:6px; }
    .agenda-speaker-row { font-size:13px; color:#495057; margin-bottom:2px; }
    .agenda-speaker-row strong { color:#212529; }
    .agenda-card-meta { font-size:12px; color:#6c757d; margin-top:8px; padding-top:8px; border-top:1px solid #f0f0f0; display:flex; flex-wrap:wrap; gap:12px; }
    .agenda-card-meta span { display:inline-flex; align-items:center; gap:4px; }
    .agenda-no-result { text-align:center; padding:60px 20px; color:#adb5bd; font-size:16px; display:none; }
    /* Modal */
    .agenda-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:9999; justify-content:center; align-items:center; }
    .agenda-modal-overlay.show { display:flex; }
    .agenda-modal { background:#fff; border-radius:12px; width:92%; max-width:760px; max-height:88vh; overflow-y:auto; box-shadow:0 12px 40px rgba(0,0,0,.28); animation:modalIn .2s ease; position:relative; }
    @keyframes modalIn { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }
    .agenda-modal-hdr { background:linear-gradient(135deg,#1a3a5c 0%,#2d5f8a 100%); color:#fff; padding:20px 24px 16px 24px; border-radius:12px 12px 0 0; }
    .agenda-modal-hdr .modal-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
    .agenda-modal-hdr h4 { margin:0 32px 0 0; font-size:18px; color:#fff; line-height:1.4; }
    .modal-meta-row { font-size:13px; color:rgba(255,255,255,.8); margin-top:8px; }
    .agenda-modal-close { position:absolute; right:16px; top:14px; background:none; border:none; color:#fff; font-size:28px; cursor:pointer; line-height:1; opacity:.8; padding:0 4px; }
    .agenda-modal-close:hover { opacity:1; }
    .agenda-modal-body { padding:24px; color:#212529; }
    .modal-section-title { font-weight:700; font-size:12px; color:#6c757d; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; margin-top:20px; }
    .modal-section-title:first-child { margin-top:0; }
    .modal-abstract { font-size:14px; color:#212529; line-height:1.75; white-space:pre-wrap; }
    /* ---- Timeline 時間軸（場次內時段）---- */
    .modal-timeline { display:flex; flex-direction:column; gap:0; }
    .timeline-row { display:flex; gap:0; border-bottom:1px solid #f0f0f0; padding:12px 0; }
    .timeline-row:last-child { border-bottom:none; padding-bottom:0; }
    .timeline-time { min-width:110px; font-size:12px; color:#6c757d; font-weight:600; padding-top:2px; white-space:nowrap; }
    .timeline-content { flex:1; min-width:0; }
    .timeline-item-title { font-weight:700; font-size:14px; color:#212529; margin-bottom:6px; }
    .timeline-speaker { display:flex; gap:12px; align-items:flex-start; }
    .timeline-speaker + .timeline-speaker { margin-top:14px; padding-top:14px; border-top:1px dashed #e9ecef; }
    .timeline-speaker-photo { width:64px; height:64px; border-radius:50%; object-fit:cover; border:2px solid #dee2e6; flex-shrink:0; }
    .timeline-speaker-photo-init { width:64px; height:64px; border-radius:50%; border:2px solid #dee2e6; flex-shrink:0; background:#e9ecef; display:flex; align-items:center; justify-content:center; font-size:26px; color:#adb5bd; font-weight:700; }
    .timeline-speaker-info { flex:1; min-width:0; }
    .timeline-speaker-name { font-weight:600; font-size:14px; color:#212529; }
    .timeline-speaker-org { font-size:12px; color:#6c757d; margin-bottom:3px; }
    .timeline-speaker-bio { font-size:12px; color:#495057; line-height:1.55; margin-top:4px; }
    @media(max-width:768px) {
        .agenda-wrapper { flex-direction:column; }
        .filter-panel { max-width:100%; min-width:auto; }
        .day-tab { padding:8px 12px; font-size:13px; }
        .timeline-time { min-width:80px; }
    }
    /* ---- Papers Section（連結論文清單） ---- */
    .modal-paper-row { display:flex; gap:0; border-bottom:1px solid #f0f0f0; padding:12px 0; align-items:flex-start; }
    .modal-paper-row:last-child { border-bottom:none; padding-bottom:0; }
    .modal-paper-time { min-width:110px; font-size:12px; color:#6c757d; font-weight:600; white-space:nowrap; padding-top:3px; }
    .modal-paper-content { flex:1; min-width:0; }
    .modal-paper-no { font-size:11px; color:#6c757d; margin-bottom:3px; font-weight:600; letter-spacing:.04em; }
    .modal-paper-title { font-size:14px; font-weight:700; color:#212529; margin-bottom:4px; line-height:1.4; }
    .modal-paper-author { font-size:12px; color:#495057; margin-bottom:2px; }
    .modal-paper-presenter { font-size:11px; color:#6c757d; }
    .btn-open-pdf { display:inline-block; margin-top:8px; padding:4px 12px; font-size:12px; background:#0d6efd; color:#fff; border:none; border-radius:5px; cursor:pointer; font-weight:600; }
    .btn-open-pdf:hover { background:#0b5ed7; }
    .btn-open-pdf:disabled { background:#6c757d; cursor:default; }
    @media(max-width:600px) {
        .modal-paper-time { min-width:70px; }
    }
    /* ---- PDF Lightbox ---- */
    #pdfLightbox { position:fixed;inset:0;background:rgba(10,20,35,.88);z-index:99999;display:flex;flex-direction:column;animation:pdfFadeIn .22s ease; }
    @keyframes pdfFadeIn { from{opacity:0} to{opacity:1} }
    .pdf-lb-bar { display:flex;align-items:center;gap:12px;padding:10px 18px;background:linear-gradient(135deg,#1a3a5c 0%,#2d5f8a 100%);flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.35); }
    .pdf-lb-icon { font-size:20px;color:#93c5fd;flex-shrink:0; }
    .pdf-lb-title { flex:1;font-size:14px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
    .pdf-lb-hint { font-size:12px;color:rgba(255,255,255,.5);white-space:nowrap; }
    .pdf-lb-close { padding:6px 18px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:6px;cursor:pointer;font-size:13px;font-weight:700;color:#fff;transition:background .15s,border-color .15s;flex-shrink:0; }
    .pdf-lb-close:hover { background:rgba(255,255,255,.28);border-color:rgba(255,255,255,.6); }
    .pdf-lb-body { flex:1;position:relative;overflow:hidden; }
    .pdf-lb-body iframe { position:absolute;inset:0;width:100%;height:100%;border:none;background:#525659; }
    .pdf-lb-loading { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#525659;color:#ccc;font-size:14px;gap:14px;transition:opacity .3s; }
    .pdf-lb-spinner { width:40px;height:40px;border:4px solid rgba(255,255,255,.2);border-top-color:#60a5fa;border-radius:50%;animation:spin .8s linear infinite; }
    @keyframes spin { to{transform:rotate(360deg)} }
