﻿:root {
    --mt-primary: #173A63;
    --mt-primary-2: #1E4E79;
    --mt-accent: #2F80ED;
    --mt-bg: #F4F8FD;
    --mt-surface: #FFFFFF;
    --mt-border: #D9E4F2;
    --mt-text: #24364B;
    --mt-text-soft: #6B7B8C;
    --mt-sidebar-active: #EAF2FF;
    --mt-shadow-sm: 0 4px 12px rgba(23, 58, 99, 0.10);
    --mt-shadow-md: 0 8px 22px rgba(23, 58, 99, 0.18);
}

/* ---------- Base ---------- */
body,
body.meetly-body,
.sidebar,
.navbar,
.dropdown-menu,
.card,
.btn,
.page-title,
.page-category,
.text-muted,
.sidebar .nav > .nav-item > a p,
.sidebar .nav-collapse li a .sub-item,
.sidebar .text-section,
.meetly-logo-title,
.meetly-logo-sub,
.profile-username,
.user-box,
.u-text,
.navbar-brand,
.copyright,
.footer,
input,
select,
textarea,
label,
.dropdown-item,
.badge,
small,
p,
h1, h2, h3, h4, h5, h6 {
    font-family: "Prompt", sans-serif !important;
}

/* ---------- Icon fonts: กันไม่ให้โดน Prompt ---------- */
/* ---------- Icon fonts: ให้ตรงกับ WebFont.load ที่ใช้อยู่จริง ---------- */
.fa,
.fas,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 5 Solid" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.far {
    font-family: "Font Awesome 5 Regular" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* เผื่อ pseudo-element ของ icon */
.fa::before,
.fas::before,
[class^="fa-"]::before,
[class*=" fa-"]::before {
    font-family: "Font Awesome 5 Solid" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.far::before {
    font-family: "Font Awesome 5 Regular" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fab::before {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* simple-line-icons */
[class^="icon-"],
[class*=" icon-"] {
    font-family: "simple-line-icons" !important;
    font-style: normal !important;
}

    [class^="icon-"]::before,
    [class*=" icon-"]::before {
        font-family: "simple-line-icons" !important;
        font-style: normal !important;
    }

/* css.gg ถ้ามีใช้จริง */
.gg-menu-left,
.gg-menu-right,
[class^="gg-"],
[class*=" gg-"] {
    font-family: "css.gg" !important;
    font-style: normal !important;
}

    .gg-menu-left::before,
    .gg-menu-right::before,
    [class^="gg-"]::before,
    [class*=" gg-"]::before {
        font-family: "css.gg" !important;
        font-style: normal !important;
    }
/* ---------- Layout ---------- */
.wrapper {
    min-height: 100vh;
}

.main-panel {
    background: transparent;
}

.page-inner {
    padding-top: 18px;
    padding-bottom: 20px;
}

/* ---------- Sidebar logo ---------- */
.meetly-logo-header {
    background: #fff;
    border-bottom: 1px solid var(--mt-border);
    padding: 12px 16px;
    min-height: 72px;
}

.meetly-logo-link {
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
    gap: 12px;
    min-width: 0;
}

.meetly-logo-mark {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--mt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--mt-shadow-sm);
}

.meetly-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.meetly-logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--mt-primary);
    line-height: 1.1;
    margin: 0;
}

.meetly-logo-sub {
    font-size: 11px;
    color: var(--mt-text-soft);
    line-height: 1.2;
    margin-top: 2px;
}

.nav-toggle .btn-toggle {
    color: var(--mt-primary);
}

/* ---------- Sidebar ---------- */
.sidebar {
    background: #fff;
}

    .sidebar .sidebar-content {
        padding-top: 6px;
    }

    .sidebar .nav > .nav-item > a {
        color: var(--mt-text);
        border-radius: 12px;
        margin: 3px 10px;
        transition: all .18s ease;
    }

        .sidebar .nav > .nav-item > a i {
            color: var(--mt-primary-2);
        }

        .sidebar .nav > .nav-item.active > a,
        .sidebar .nav > .nav-item > a:hover {
            background: var(--mt-sidebar-active) !important;
            color: var(--mt-primary) !important;
        }

            .sidebar .nav > .nav-item.active > a i,
            .sidebar .nav > .nav-item.active > a p,
            .sidebar .nav > .nav-item > a:hover i,
            .sidebar .nav > .nav-item > a:hover p {
                color: var(--mt-primary) !important;
            }

    .sidebar .nav-collapse li a .sub-item {
        color: var(--mt-text-soft);
        transition: color .18s ease;
    }

    .sidebar .nav-collapse li a:hover .sub-item {
        color: var(--mt-primary);
    }

    .sidebar .text-section {
        color: var(--mt-text-soft);
        font-weight: 600;
    }

/* ---------- Topbar ---------- */
.main-header .navbar-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.meetly-page-head .page-title,
.page-title {
    color: var(--mt-primary);
    font-weight: 600;
}

.page-category {
    font-size: 13px;
    color: var(--mt-text-soft);
    line-height: 1.5;
}

.meetly-badge-live {
    background: var(--mt-accent) !important;
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 500;
}

.profile-username {
    color: var(--mt-text);
}

/* ---------- Page header in content ---------- */
.meetly-pagehead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.meetly-pagehead-title {
    min-width: 0;
}

.meetly-pagehead-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Cards / dropdown / footer ---------- */
.card {
    border-color: var(--mt-border);
}

.dropdown-menu {
    border: 1px solid var(--mt-border);
}

.footer {
    background: #fff;
    border-top: 1px solid var(--mt-border);
}

/* ---------- UpdateProgress ---------- */
.meetly-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 2000;
}

.meetly-loading-box {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--mt-primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--mt-shadow-md);
    font-size: 14px;
}

/* ---------- Utilities ---------- */
.text-muted {
    color: var(--mt-text-soft) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .meetly-logo-sub {
        display: none;
    }

    .meetly-pagehead {
        align-items: stretch;
    }

    .meetly-pagehead-actions {
        width: 100%;
    }
}
.meetly-top-login-btn {
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #173A63;
    background: #ffffff;
    border: 1px solid #d9e4f2;
    box-shadow: 0 6px 18px rgba(23,58,99,.08);
    transition: all .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .meetly-top-login-btn:hover {
        color: #0f2f50;
        background: #f7fbff;
        border-color: #bdd2ea;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .meetly-top-login-btn i {
        color: #2F80ED;
    }

@media (max-width: 767.98px) {
    .meetly-top-login-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
