/* ============================================================
 * Miftah Plus platform identity (developer: Miftah Technology).
 * Official colours are used for the platform/developer identity only;
 * company themes keep their own Primary / Secondary / sidebar colours.
 * ============================================================ */
:root {
    --mt-blue: #0066FF;
    --mt-blue-dark: #0033A0;
    --mt-orange: #FF7A00;
    --mt-orange-dark: #FF4D00;
    --mt-gradient: linear-gradient(90deg, var(--mt-blue) 0%, var(--mt-blue-dark) 48%, var(--mt-orange) 52%, var(--mt-orange-dark) 100%);
}

/* Logo pairs: .mt-on-light shows in the light theme, .mt-on-dark (logo-dark.png) in the dark theme. */
.mt-on-dark { display: none !important; }
[data-theme="dark"] .mt-on-light { display: none !important; }
[data-theme="dark"] .mt-on-dark { display: block !important; }

/* --- Credit line: partials/brand/platform-credit.blade.php --- */
.mt-credit {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 8px;
    color: #6b7c8f;
    font-size: 12.5px;
    line-height: 1.6;
}
.mt-credit strong { color: #243b53; font-weight: 700; }
.mt-credit-part { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mt-credit-dot { opacity: .7; }
.mt-credit-dev { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
a.mt-credit-dev:hover strong { color: var(--mt-blue); }
a.mt-credit-dev:focus-visible { outline: 2px solid var(--mt-blue); outline-offset: 2px; border-radius: 3px; }
.mt-credit-icon { display: block; width: 16px; height: auto; flex: 0 0 auto; object-fit: contain; }
.mt-credit--dark { color: rgba(255, 255, 255, .78); }
.mt-credit--dark strong { color: #fff; }
.mt-credit--stacked { flex-direction: column; gap: 2px; }
.mt-credit--stacked .mt-credit-dot { display: none; }
@media (max-width: 420px) {
    .mt-credit { flex-direction: column; gap: 2px; }
    .mt-credit-dot { display: none; }
}

/* --- First-load splash: layouts/admin.blade.php (.loader-bg, removed by assets/js/dash.js) --- */
.loader-bg.mt-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    text-align: center;
}
.loader-bg.mt-splash.is-skipped { display: none; }
.mt-splash-icon { width: 64px; height: auto; margin-bottom: 10px; animation: mt-splash-pulse 1.4s ease-in-out infinite; }
.mt-splash-name { margin: 0; color: #102a43; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.mt-splash-by { margin: 0; color: #6b7c8f; font-size: 12.5px; }
.mt-splash-bar { width: 96px; height: 3px; margin-top: 14px; border-radius: 99px; background: var(--mt-gradient); opacity: .85; }
.dark-layout .loader-bg.mt-splash, [data-theme="dark"] .loader-bg.mt-splash { background: #0f172a; }
.dark-layout .mt-splash-name, [data-theme="dark"] .mt-splash-name { color: #f1f5f9; }
.dark-layout .mt-splash-by, [data-theme="dark"] .mt-splash-by { color: #94a3b8; }
@keyframes mt-splash-pulse { 50% { transform: scale(.94); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .mt-splash-icon { animation: none; } }

/* --- Super Admin sidebar lockup: partials/admin/menu.blade.php --- */
.dash-sidebar .m-header.main-logo .b-brand > .mt-platform-lockup {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
    color: #102a43;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
/* beats the theme's generic sidebar logo image rules */
.dash-sidebar .m-header.main-logo .b-brand > .mt-platform-lockup img { display: block !important; width: 40px !important; max-width: none !important; height: auto !important; max-height: none !important; flex: 0 0 auto; }
.mt-platform-lockup-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-align: left; }
.mt-platform-lockup-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: #102a43; white-space: nowrap; }
.mt-platform-lockup-by { font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--mt-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.minimenu .dash-sidebar .m-header.main-logo .b-brand > .mt-platform-lockup {
    opacity: 0;
    visibility: hidden;
    transform: scale(.92);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

/* --- About Miftah Plus: resources/views/about.blade.php --- */
.mt-about { max-width: 760px; margin: 0 auto; }
.mt-about-card { overflow: hidden; }
.mt-about-hero { display: flex; align-items: center; gap: 18px; padding: 28px clamp(20px, 4vw, 36px); border-bottom: 1px solid rgba(15, 23, 42, .08); }
.mt-about-hero img { width: 64px; height: auto; flex: 0 0 auto; }
.mt-about-hero h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.mt-about-hero p { margin: 2px 0 0; color: #6b7c8f; }
.mt-about-accent { height: 4px; background: var(--mt-gradient); }
.mt-about-body { padding: 24px clamp(20px, 4vw, 36px) 28px; }
.mt-about-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 24px; }
.mt-about-body dt { color: #6b7c8f; font-weight: 600; }
.mt-about-body dd { margin: 0; overflow-wrap: anywhere; }
.mt-about-developer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; background: #f8fafc; }
.mt-about-developer-logo { width: 100%; max-width: 220px; height: auto; }
[data-theme="dark"] .mt-about-developer { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
[data-theme="dark"] .mt-about-hero { border-bottom-color: rgba(255, 255, 255, .1); }
@media (max-width: 575.98px) {
    .mt-about-hero { flex-direction: column; text-align: center; }
    .mt-about-body dl { grid-template-columns: 1fr; gap: 2px; }
    .mt-about-body dd { margin-bottom: 10px; }
    .mt-about-developer { justify-content: center; text-align: center; }
}
