/* ==========================================================
   en.css - English Universal Meeting Template
   Supplement styles specific to the universal template.
   Overrides or extends general.css / headfoot.css.
   ========================================================== */

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.topbar .top-right .top-link {
    display: none;
}
.top-info {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    flex: 1;
    min-width: 0;
}
.top-info:hover {
    color: #fff;
    text-decoration: none;
}
.top-info img {
    height: 56px;
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
}
.meeting-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}
.topxian {
    height: 3px;
    background: linear-gradient(90deg, #1a5fa8, #1a7fc1);
    width: 100%;
}

/* ----------------------------------------------------------
   Banner: full-width Swiper, 16:5 aspect ratio
   Falls back to gradient when no image is set
   ---------------------------------------------------------- */
.index-banner {
    width: 100%;
    overflow: hidden;
}
.banner-swiper {
    width: 100%;
    height: 280px;
}
.swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a5fa8; /* fallback color */
}
.banner-default {
    background: linear-gradient(135deg, #0d4b9e 0%, #1a7fc1 60%, #25a9e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.banner-default-text {
    text-align: center;
    color: #fff;
    padding: 20px;
}
.banner-default-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.banner-default-text p {
    font-size: 16px;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .banner-swiper {
        height: calc(100vw * 500 / 1920);
        min-height: 240px;
        max-height: 520px;
    }
}

/* ----------------------------------------------------------
   Right sidebar panel (showrightbox)
   ---------------------------------------------------------- */
.index-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
}
.index-left {
    flex: 1;
    min-width: 0;
}
.index-right {
    width: 280px;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .index-row {
        flex-direction: column;
    }
    .index-right {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   Important Dates panel: fully DB-driven, no inline styles
   ---------------------------------------------------------- */
.dates-item_desc p.past {
    text-decoration: line-through;
    color: #999;
}
.dates-item_desc p.upcoming {
    color: #333;
    font-weight: 500;
}

/* ----------------------------------------------------------
   Footer: DB-driven contact info
   ---------------------------------------------------------- */
.footer-contact {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 6px;
}
.footer-contact a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------
   home/ inner pages: form layout
   ---------------------------------------------------------- */
.inner-page {
    padding: 30px 0 50px;
}
.inner-page .page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a5fa8;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eef6;
}
.form-section {
    background: #fff;
    border-radius: 6px;
    padding: 24px 28px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.form-section .section-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.form-col {
    flex: 1;
    min-width: 220px;
}
.form-col label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}
.form-col input[type=text],
.form-col input[type=email],
.form-col input[type=password],
.form-col input[type=date],
.form-col select,
.form-col textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d9e8;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s;
}
.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
    border-color: #1a7fc1;
    outline: none;
}
.form-required {
    color: #e53935;
    margin-left: 2px;
}

/* Select2 v3 — hide native select (our .form-col select overrides select2-offscreen) */
.form-col select.select2-offscreen {
    display: none !important;
}
/* Select2 v3 — neutralize .form-control copied to container by select2 */
.form-col .select2-container.form-control {
    border: none;
    padding: 0;
    height: auto;
    background: transparent;
    box-shadow: none;
}
/* Select2 v3 — match form-control appearance */
.form-col .select2-container { width: 100% !important; }
.form-col .select2-container .select2-choice {
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    border: 1px solid #d0d9e8;
    border-radius: 4px;
    background: #fff;
    background-image: none;
    color: #333;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s;
}
.form-col .select2-container-active .select2-choice {
    border-color: #1a7fc1;
    box-shadow: none;
}
.form-col .select2-container .select2-choice .select2-arrow {
    border-left: none;
    background: none;
    border-radius: 0 4px 4px 0;
}
.select2-drop {
    border: 1px solid #d0d9e8;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.select2-results .select2-highlighted {
    background: #1a7fc1;
}
.select2-results .select2-result-label {
    padding: 6px 12px;
    font-size: 14px;
}
.select2-search input {
    border: 1px solid #d0d9e8 !important;
    border-radius: 4px;
    font-size: 14px;
}
.form-note {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.form-note.correct { color: #51ac0e !important; font-size: 14px !important; }
.form-note.error   { color: #FF2323 !important; font-size: 14px !important; }
.form-submit-bar {
    text-align: center;
    margin-top: 28px;
}
.btn-primary {
    background: #1a7fc1;
    color: #fff;
    border: none;
    padding: 10px 36px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}
.btn-primary:hover {
    background: #1567a3;
}
.btn-default {
    background: #f0f4f8;
    color: #555;
    border: 1px solid #cdd5e0;
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

/* ----------------------------------------------------------
   Abstract / paper submission page
   ---------------------------------------------------------- */
.sub-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.paper-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.paper-list th {
    background: #1a5fa8;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
}
.paper-list td {
    padding: 9px 12px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}
.paper-list tr:hover td {
    background: #f5f8fc;
}
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending   { background: #fff3cd; color: #856404; }
.status-review    { background: #cfe2ff; color: #0a58ca; }
.status-accepted  { background: #d1e7dd; color: #155724; }
.status-rejected  { background: #f8d7da; color: #842029; }

/* ----------------------------------------------------------
   Data table (viewabstract, hotel, programs …)
   ---------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}
.data-table th {
    background: #1a5fa8;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}
.data-table tr:hover td {
    background: #f5f8fc;
}

/* ----------------------------------------------------------
   Form hint text (small grey note below inputs)
   ---------------------------------------------------------- */
.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    line-height: 1.5;
}

/* ----------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-col { min-width: 100%; }
    .inner-page { padding: 20px 0 30px; }
    .form-section { padding: 16px; }
}

/* ==========================================================
   Design additions
   ========================================================== */

/* ----------------------------------------------------------
   Login panel — tighten for sidebar use
   ---------------------------------------------------------- */
.login-panel { border-radius: 6px; }
.login-panel .panel-title { font-size: 17px; }
.login-panel .panel-foot  { font-size: 13px; }
.login-panel .panel-foot a { font-size: 13px; }
.forget-password a { font-size: 12px; }
.login-panel .form-control {
    font-size: 14px !important;
    height: 40px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    margin-bottom: 10px;
}
.login-panel .btn {
    height: 40px;
    font-size: 14px;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   Right sidebar — My Conference card
   ---------------------------------------------------------- */
.rightPanel {
    background: #fff;
    border: 1px solid #dde5f0;
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: 0 1px 5px rgba(26,95,168,.08);
    margin-bottom: 16px;
}
.rightPanel > .title {
    font-size: 14px;
    font-weight: 700;
    color: #1a5fa8;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8eef6;
    letter-spacing: .01em;
}
.rightPanel > .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #aaa;
    margin-top: 12px;
    margin-bottom: 3px;
}
.rightPanel > .value {
    font-size: 13px;
    color: #333;
    word-break: break-word;
    line-height: 1.4;
}
.rightPanel .dashedline {
    border: 0;
    border-top: 1px dashed #e0e8f4;
    margin: 10px 0;
}
.rightPanel .Jump { font-size: 13px; padding: 3px 0; }
.rightPanel .Jump a,
.rightPanel > a {
    color: #1a7fc1;
    text-decoration: none;
    display: block;
}
.rightPanel .Jump a:hover,
.rightPanel > a:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */
.bluefont, a.bluefont  { color: #1a7fc1; }
a.bluefont:hover { color: #1567a3; text-decoration: underline; }

.footer-copyright {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    margin-top: 8px;
}

/* ----------------------------------------------------------
   Alert banners
   ---------------------------------------------------------- */
.alert-success {
    background: #d1e7dd; border: 1px solid #badbcc;
    border-radius: 4px; padding: 12px 16px;
    margin-bottom: 16px; font-size: 14px; color: #155724;
}
.alert-warning {
    background: #fff3cd; border: 1px solid #ffe69c;
    border-radius: 4px; padding: 12px 16px;
    margin-bottom: 16px; font-size: 14px; color: #664d03;
}
.alert-error {
    background: #f8d7da; border: 1px solid #f5c2c7;
    border-radius: 4px; padding: 12px 16px;
    margin-bottom: 16px; font-size: 14px; color: #842029;
}

/* ----------------------------------------------------------
   Inline flash (AJAX feedback)
   ---------------------------------------------------------- */
.flash-msg {
    display: none;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
}
.flash-msg.flash-success { background:#d1e7dd; border:1px solid #badbcc; color:#155724; }
.flash-msg.flash-error   { background:#f8d7da; border:1px solid #f5c2c7; color:#842029; }

/* (form-note.correct/error rules are near .form-note above) */

/* ----------------------------------------------------------
   Button states
   ---------------------------------------------------------- */
.btn-primary:disabled,
.btn-primary[disabled] { opacity: .7; cursor: wait; }

/* ----------------------------------------------------------
   Scrollable tables on narrow screens
   ---------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ----------------------------------------------------------
   Mobile nav backdrop
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    body.c-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 98;
    }
}

/* ----------------------------------------------------------
   Mobile fine-tuning
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .inner-page .page-title { font-size: 18px; }
    .form-section { padding: 14px 12px; }
    .login-panel  { padding: 18px 14px 14px; }
    .rightPanel   { padding: 14px 14px; }
    .banner-swiper { height: 40vw; min-height: 140px; }
    .wrapper { padding: 14px 0 28px; }
    .btn-primary { padding: 10px 28px; }
    .form-submit-bar { margin-top: 20px; }
    .data-table, .paper-list table { min-width: 480px; }
}
@media (max-width: 480px) {
    .inner-page .page-title { font-size: 16px; }
    .navbar-nav > li > a { font-size: 15px; }
}
