/* ========================================================================
   🎨 GLOBAL COLOR VARIABLES
   ======================================================================== */
:root {
    /* 🌈 MyQalbu Login Gradient (Figma Accurate) */
    --color-bg-top: #e6f0ff;
    --color-bg-bottom: #e7d9ff;

    /* 🔵 Primary Palette */
    --color-primary: #2d347e;
    --color-accent: #6a5acd;

    /* ⚫ Texts & Surfaces */
    --color-text-dark: #333333;
    --color-text-link: #2d347e;
    --color-input-bg: #ffffff;
    --color-placeholder: #a8a8a8;

    /* 🌿 Mutiara Hikmah Legacy Palette */
    /* --color-green-custom-1: #072f1a;
    --color-green-custom-2: #bbe6cff2;
    --color-green-custom-3: #072f1a;
    --color-green-custom-4: #7eaf94;
    --color-green-overlay-custom: #0a4c29; */

    /* 🎨 Accent Colors */
    --color-blue-custom: #1a55aa;
    --color-blue-2-custom: #79b3e6;
    --color-blue-3-custom: #79b3e66b;
    --color-purple-custom: #7182ff;
    --color-orange-custom: #e68402;
    --color-black-custom: #000000;
    --color-white-custom: #ffffff;

    /* ⚪ Background images */
    --bg-image: url("/images/bri/background/bg.png");
    /* --bg-login: url("/images/app/mutiarahikmah/background/login.jpg"); */
    --bg-primary: #1a55aa;
    --bg-secondary: #7182ff;
    --bg-accent: #dce6f2;

    /* 🩶 Text Shades */
    --text-primary: #ffffff;
    --text-secondary: #bed0e5;
}

/* =============================
   🌿 POWERED BY STYLE (RESPONSIVE)
   ============================= */
.powered-container {
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 22px 10px 38px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin: 0 auto 85px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powered-by-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.powered-by-wrapper img {
    vertical-align: middle;
    height: 44px;
    width: auto;
    opacity: 1;
    transform: translateY(3px);
}

.powered-by-wrapper .divider {
    color: #000000;
    margin: 0 8px;
    font-weight: 400;
    font-size: 16px;
}

.powered-by-wrapper a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.2s ease;
}

.powered-by-wrapper a:hover {
    color: #2f7a4e;
    text-decoration: underline;
}

/* 🌿 Tambahan: pastikan tampil rapi di layar kecil */
@media (max-width: 576px) {
    .powered-container {
        padding: 18px 8px 90px; /* lebih longgar di bawah */
        font-size: 14px;
    }

    .powered-by-wrapper {
        flex-direction: column;
        gap: 6px;
    }

    .powered-by-wrapper img {
        height: 40px;
        transform: none;
    }

    .powered-by-wrapper .divider {
        display: none; /* hilangkan garis pemisah agar lebih rapi di HP */
    }
}

/* 🎧 MINI PLAYER GLOBAL */
.mini-player {
    position: fixed;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    height: 64px;
    background: #1d3c8b;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 200;
}

.mini-player.hidden {
    display: none;
}

.mini-thumbnail img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-info {
    flex: 1;
}

.mini-title {
    font-size: 13px;
    font-weight: 600;
}

.mini-ustadz {
    font-size: 11px;
    color: #c7d5ff;
}

.mini-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar {
    height: 3px;
    background: #ffa733;
    width: 0%;
}

.mini-controls i {
    font-size: 20px;
    color: white;
}

#pageContainer {
    opacity: 1;
    transition: opacity 0.3s ease;
}
#pageContainer.fade-out {
    opacity: 0;
}

/* ========================================================================
   🌄 GLOBAL BACKGROUND & BODY
   ======================================================================== */
body {
    background: linear-gradient(
        to bottom,
        var(--color-bg-top),
        var(--color-bg-bottom)
    );
    font-family: "Poppins", sans-serif;
    color: var(--color-text-dark);
    margin: 0;
    max-width: 480px;
    margin: 0 auto;
}

/* Optional background for login with image overlay */
.bg-custom-login {
    background-image: linear-gradient(
            rgba(230, 240, 255, 0.8),
            rgba(231, 217, 255, 0.8)
        ),
        var(--bg-login);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========================================================================
   🧭 NAVIGATION & LAYOUT
   ======================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

main {
    background-size: cover;
    background-repeat: no-repeat;
    min-height: auto;
    background-color: var(--color-green-custom-2) !important;
}

.main-content {
    padding-top: 20px;
    padding-bottom: 160px;
}

/* ========================================================================
   ✍️ TYPOGRAPHY
   ======================================================================== */
.text-small {
    font-size: 0.875rem;
}

.text-secondary-custom {
    color: var(--text-secondary);
}

.font-12 {
    font-size: 12px !important;
}
.font-14 {
    font-size: 14px !important;
}
.font-16 {
    font-size: 16px !important;
}
.font-18 {
    font-size: 18px !important;
}
.font-20 {
    font-size: 20px !important;
}
.font-24 {
    font-size: 24px !important;
}
.font-28 {
    font-size: 28px !important;
}

/* ========================================================================
   🔗 LINKS & TEXT COLORS
   ======================================================================== */
a {
    color: var(--color-text-link);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-gold {
    color: #ffd700;
}
.text-silver {
    color: #c0c0c0;
}
.text-bronze {
    color: #cd7f32;
}

/* ========================================================================
   🔘 BUTTONS
   ======================================================================== */
.btn-primary {
    background-color: var(--bg-primary) !important;
    border-color: var(--bg-primary) !important;
}

.btn-primary:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--bg-secondary) !important;
}

.btn-white-custom {
    background-color: var(--color-white-custom) !important;
    color: var(--color-blue-custom);
    font-weight: bold;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
}

.btn-base {
    background: #ffffff;
}

.btn-base:hover {
    background: var(--bg-primary);
}

/* 🌿 Green Custom Buttons (legacy) */
.btn-green-1-custom {
    background-color: var(--color-green-custom-1) !important;
    color: var(--color-white-custom) !important;
    font-weight: bold;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    transition: 0.3s ease;
}

.btn-green-1-custom:hover {
    background-color: var(--color-white-custom) !important;
    color: var(--color-green-custom-1) !important;
}

.btn-green-2-custom {
    background-color: var(--color-green-custom-2) !important;
    color: var(--color-green-custom-1) !important;
    font-weight: bold;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    transition: 0.3s ease;
}

.btn-green-2-custom:hover {
    background-color: var(--color-white-custom) !important;
    color: var(--color-green-custom-1) !important;
}

/* ========================================================================
   ⚫ BACKGROUND UTILITY CLASSES
   ======================================================================== */
.bg-primary-custom {
    background-color: var(--bg-primary);
}
.bg-secondary-custom {
    background-color: var(--bg-secondary);
}
.bg-blue-custom {
    background-color: var(--color-blue-custom) !important;
}
.bg-blue-2-custom {
    background-color: var(--color-blue-2-custom) !important;
}
.bg-purple-custom {
    background-color: var(--color-purple-custom) !important;
    opacity: 0.9;
}
.bg-orange-custom {
    background-color: var(--color-orange-custom) !important;
}
.bg-black-custom {
    background-color: var(--color-black-custom) !important;
}
.bg-white-custom {
    background-color: var(--color-white-custom) !important;
}
.bg-green-1-custom {
    background-color: var(--color-green-custom-1) !important;
}
.bg-green-2-custom {
    background-color: var(--color-green-custom-2) !important;
}
.bg-green-3-custom {
    background-color: var(--color-green-custom-3) !important;
}
.bg-green-4-custom {
    background-color: var(--color-green-custom-4) !important;
}

/* ========================================================================
   🟢 TEXT COLOR UTILITIES
   ======================================================================== */
.text-blue-custom {
    color: var(--color-blue-custom) !important;
}
.text-blue-2-custom {
    color: var(--color-blue-2-custom) !important;
}
.text-purple-custom {
    color: var(--color-purple-custom) !important;
}
.text-orange-custom {
    color: var(--color-orange-custom) !important;
}
.text-black-custom {
    color: var(--color-black-custom) !important;
}
.text-white-custom {
    color: var(--color-white-custom) !important;
}
.text-green-1-custom {
    color: var(--color-green-custom-1) !important;
}
.text-green-2-custom {
    color: var(--color-green-custom-2) !important;
}
.text-green-3-custom {
    color: var(--color-green-custom-3) !important;
}
.text-green-4-custom {
    color: var(--color-green-custom-4) !important;
}

/* ========================================================================
   🧱 FOOTER
   ======================================================================== */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: var(--color-green-custom-1) !important;
    z-index: 999;
    padding: 16px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ========================================================================
   📱 RESPONSIVE
   ======================================================================== */
@media screen and (max-width: 360px) {
    img.navbar-logo {
        height: 35px;
        width: auto;
    }
}

.opacity-75 {
    opacity: 0.75 !important;
}
.opacity-50 {
    opacity: 0.5 !important;
}
