/* ==========================================================================
   VIETCALL 2026 - PREMIUM WIDE-SCREEN THEME (FULL WIDTH FIX)
   ========================================================================== */

:root {
    --conf-theme-header-bg: #52618A; 
    --conf-theme-header-border-bottom: #E50000; 
    --conf-theme-header-text: #ffffff;
    --conf-theme-menu-bg: #ffffff;
    --conf-theme-menu-border: #e2e8f0;
    --conf-theme-menu-link: #334155; 
    --conf-theme-menu-selected: #E50000; 
    --conf-theme-menu-selected-bg: #fff5f5; 
    --conf-theme-menu-selected-border: #E50000;
    --conf-theme-hover-bg: #f8fafc;
    --conf-theme-hover-color: #52618A; 
}

/* ==========================================================================
   1. ÉP BUNG RỘNG TẤT CẢ CÁC LỚP BỌC NGOÀI CÙNG (PHÁ MAX-WIDTH)
   ========================================================================== */
.layout-wrapper, 
.page-container, 
.ui.container, 
.event-page-container,
.conference-page,
#g-page > div {
    width: 96% !important; /* Chiếm 96% chiều rộng màn hình */
    max-width: 1800px !important; /* Nới giới hạn lên mức màn hình siêu rộng */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   2. CẤU TRÚC LẠI LAYOUT (CHIA CỘT CHUẨN FLEXBOX)
   ========================================================================== */
/* Bọc chứa Menu và Nội dung */
.event-page-container, 
.conference-page {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 35px !important; /* Khoảng trống giữa menu và nội dung */
    width: 100% !important;
}

/* ==========================================================================
   3. MENU TRÁI (Khóa cứng kích thước, không cho biến dạng)
   ========================================================================== */
.local-navigation, 
#event-navigation, 
.conference-menu,
.event-sidebar {
    flex: 0 0 280px !important; /* Cố định chiều rộng đúng 280px */
    width: 280px !important;
    max-width: 280px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    overflow: hidden !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   4. NỘI DUNG CHÍNH (Chiếm trọn vẹn 100% không gian còn lại)
   ========================================================================== */
#main-content, 
.event-content, 
.conference-page .page-content {
    flex: 1 1 auto !important; /* Lệnh yêu cầu bung rộng hết cỡ */
    width: calc(100% - 315px) !important; /* Tính toán kích thước chính xác */
    max-width: 100% !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 45px !important; /* Tăng lề bên trong cho dễ đọc và thoáng */
    margin: 0 !important;
}

/* Khắc phục việc các khối text bên trong bị Indico bóp lại */
.text-content, 
.event-page-content > div,
.conference-page .page-content > div {
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   5. HIỆU ỨNG LUNG LINH & CHI TIẾT (BACKGROUND, NÚT BẤM, TEXT)
   ========================================================================== */
/* Nền trang lung linh */
body {
    background-color: #f4f6f9 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(82, 97, 138, 0.08) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(229, 0, 0, 0.05) 0px, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    background-attachment: fixed !important;
}

/* Chữ Menu trái */
.local-navigation li a, #event-navigation li a {
    padding: 14px 20px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.25s ease !important;
}
.local-navigation li a:hover, #event-navigation li a:hover {
    padding-left: 24px !important;
}

/* Tiêu đề trang con */
.event-title, h1, h2, h3 {
    color: #52618A !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

/* Nút bấm (Submit, Navigate...) */
.ui.button.primary, .i-button.highlight, .ui.button[type="submit"], .action-button {
    background: linear-gradient(135deg, #E50000 0%, #C40000 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    padding: 12px 24px !important;
    text-transform: uppercase;
}
.ui.button.primary:hover, .i-button.highlight:hover, .action-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(229, 0, 0, 0.4) !important;
}

/* Khung viền đứt nét cao cấp */
.action-box, div[style*="dashed"] {
    border: 2px dashed #52618A !important;
    background-color: rgba(82, 97, 138, 0.04) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}