/* =========================================================
   IQRANIX SETTINGS
   settings.css
========================================================= */

:root {
    --bg: #061613;
    --bg-soft: #091f1b;

    --surface: #0d2923;
    --surface-2: #10342c;
    --surface-3: #164139;

    --primary: #16b978;
    --primary-dark: #0b6e4f;
    --primary-soft: rgba(22, 185, 120, 0.12);

    --gold: #e9c46a;
    --gold-soft: rgba(233, 196, 106, 0.12);

    --white: #ffffff;
    --text: #f4f8f6;
    --muted: #9db5af;
    --muted-2: #718e87;

    --border: rgba(255, 255, 255, 0.075);

    --danger: #e97878;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.28);

    --radius: 24px;
}


/* =========================================================
   LIGHT THEME
========================================================= */

html[data-theme="light"] {

    --bg: #f1f7f4;
    --bg-soft: #e8f2ee;

    --surface: #ffffff;
    --surface-2: #f1f7f4;
    --surface-3: #e4f0eb;

    --primary: #0b8d61;
    --primary-dark: #0b6e4f;
    --primary-soft: rgba(11, 141, 97, 0.10);

    --gold: #9c751c;
    --gold-soft: rgba(156, 117, 28, 0.10);

    --text: #10251f;
    --muted: #607871;
    --muted-2: #81958f;

    --border: rgba(12, 54, 42, 0.09);

    --shadow:
        0 15px 40px rgba(19, 70, 55, 0.10);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(22, 185, 120, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 0% 35%,
            rgba(233, 196, 106, 0.045),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    line-height: 1.5;

    padding-bottom: 50px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
select,
input {
    font: inherit;
}


button {
    border: 0;
}


.settings-app {
    width: min(100%, 900px);
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.settings-header {
    position: relative;

    display: flex;
    align-items: center;

    gap: 16px;

    padding:
        max(24px, env(safe-area-inset-top))
        22px
        24px;

    min-height: 105px;
}


.back-button {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.back-button:hover {
    transform: translateX(-3px);
}


.back-button:active {
    transform: scale(0.94);
}


.header-title {
    flex: 1;
}


.header-title > span {
    display: block;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 2px;
}


.header-title h1 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 32px;

    line-height: 1.1;
}


.header-symbol {
    width: 48px;
    height: 48px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    box-shadow:
        0 10px 25px
        rgba(22, 185, 120, 0.20);
}


/* =========================================================
   ACCOUNT HERO
========================================================= */

.account-hero {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    gap: 18px;

    margin: 0 18px 28px;

    padding: 24px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #0d382d,
            #09231e 65%,
            #102e27
        );

    border: 1px solid
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 25px 55px
        rgba(0, 0, 0, 0.28);
}


.account-glow {
    position: absolute;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    right: -80px;
    top: -90px;

    background:
        radial-gradient(
            circle,
            rgba(22, 185, 120, 0.25),
            transparent 70%
        );

    pointer-events: none;
}


.account-avatar {
    position: relative;

    width: 64px;
    height: 64px;

    flex-shrink: 0;

    border-radius: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(22, 185, 120, 0.25),
            rgba(22, 185, 120, 0.08)
        );

    border: 1px solid
        rgba(22, 185, 120, 0.35);

    color: #5de0aa;

    font-size: 25px;
}


.account-information {
    position: relative;

    flex: 1;
}


.account-information > span {
    display: block;

    color: #62d9a8;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 5px;
}


.account-information h2 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 23px;

    margin-bottom: 4px;

    color: white;
}


.account-information p {
    color: #a9c4bc;

    font-size: 13px;

    max-width: 580px;
}


.profile-arrow {
    position: relative;

    width: 40px;
    height: 40px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, 0.07);

    color: #dceae6;

    transition: 0.2s ease;
}


.profile-arrow:hover {
    background:
        rgba(22, 185, 120, 0.2);

    transform: translateX(3px);
}


/* =========================================================
   SECTIONS
========================================================= */

.settings-section {
    margin:
        0 18px
        30px;
}


.section-heading {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 13px;

    padding-left: 3px;
}


.section-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}


.section-icon.appearance {
    background: var(--gold-soft);
    color: var(--gold);
}


.section-icon.quran {
    background: var(--primary-soft);
    color: var(--primary);
}


.section-icon.prayer {
    background:
        rgba(80, 160, 220, 0.10);

    color:
        #6bb8e8;
}


.section-icon.notification {
    background:
        rgba(231, 153, 83, 0.11);

    color:
        #e7a15f;
}


.section-icon.information {
    background:
        rgba(120, 150, 220, 0.11);

    color:
        #91a9ec;
}


.section-icon.more {
    background:
        rgba(181, 112, 223, 0.11);

    color:
        #c58ae8;
}


.section-heading span {
    display: block;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

    color: var(--muted-2);
}


.section-heading h2 {
    font-size: 20px;

    line-height: 1.2;

    margin-top: 2px;
}


/* =========================================================
   SETTINGS CONTAINER
========================================================= */

.settings-list,
.navigation-list,
.action-list {

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-2)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


/* =========================================================
   SETTING ROW
========================================================= */

.setting-row {
    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 82px;

    padding:
        16px 18px;

    border-bottom:
        1px solid var(--border);
}


.setting-row:last-child {
    border-bottom: 0;
}


.setting-row.stacked {
    display: block;

    padding: 18px;
}


.row-top {
    display: flex;
    align-items: center;

    gap: 14px;
}


.row-icon {
    width: 41px;
    height: 41px;

    flex-shrink: 0;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 15px;
}


.row-content {
    flex: 1;

    min-width: 0;
}


.row-content strong {
    display: block;

    font-size: 15px;

    font-weight: 700;

    color: var(--text);
}


.row-content span {
    display: block;

    color: var(--muted);

    font-size: 12px;

    margin-top: 3px;

    line-height: 1.45;
}


/* =========================================================
   SELECT
========================================================= */

select {
    width: 100%;

    margin-top: 14px;

    padding: 14px 15px;

    border-radius: 14px;

    border:
        1px solid var(--border);

    outline: none;

    background:
        var(--surface-3);

    color: var(--text);

    appearance: auto;

    cursor: pointer;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}


select:focus {
    border-color:
        rgba(22, 185, 120, 0.5);

    box-shadow:
        0 0 0 3px
        rgba(22, 185, 120, 0.10);
}


#fontSizeStatus {
    display: block;

    color: var(--primary);

    font-size: 11px;

    margin-top: 9px;
}


/* =========================================================
   TOGGLE
========================================================= */

.toggle {
    position: relative;

    width: 52px;
    height: 29px;

    flex-shrink: 0;
}


.toggle input {
    position: absolute;

    opacity: 0;

    width: 0;
    height: 0;
}


.toggle span {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 50px;

    background:
        var(--surface-3);

    border:
        1px solid var(--border);

    transition:
        0.25s ease;
}


.toggle span::before {
    content: "";

    position: absolute;

    width: 21px;
    height: 21px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.25);

    transition:
        0.25s ease;
}


.toggle input:checked + span {
    background:
        var(--primary);

    border-color:
        var(--primary);
}


.toggle input:checked + span::before {
    transform:
        translateX(23px);
}


/* =========================================================
   NAVIGATION LIST
========================================================= */

.navigation-list a {
    min-height: 73px;

    display: grid;

    grid-template-columns:
        43px 1fr 18px;

    align-items: center;

    gap: 13px;

    padding:
        13px 18px;

    border-bottom:
        1px solid var(--border);

    transition:
        background 0.2s ease;
}


.navigation-list a:last-child {
    border-bottom: 0;
}


.navigation-list a:hover {
    background:
        var(--primary-soft);
}


.navigation-list a:active {
    background:
        rgba(22, 185, 120, 0.15);
}


.nav-icon {
    width: 42px;
    height: 42px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        var(--surface-3);

    color:
        var(--primary);

    font-size: 15px;
}


.navigation-list strong {
    display: block;

    font-size: 14px;

    font-weight: 700;
}


.navigation-list span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 2px;
}


.navigation-list > a > i:last-child {
    color: var(--muted-2);

    font-size: 12px;
}


/* =========================================================
   FEATURE LINK
========================================================= */

.feature-link {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--surface-2)
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.feature-link:hover {
    transform: translateY(-2px);

    background:
        var(--surface-3);
}


.feature-link-icon {
    width: 46px;
    height: 46px;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-soft);

    color: var(--primary);
}


.feature-link > div:nth-child(2) {
    flex: 1;
}


.feature-link strong {
    display: block;

    font-size: 15px;
}


.feature-link span {
    display: block;

    color: var(--muted);

    font-size: 12px;

    margin-top: 3px;
}


.feature-link > i {
    color: var(--primary);
}


/* =========================================================
   ACTION LIST
========================================================= */

.action-list button {
    width: 100%;

    min-height: 72px;

    display: grid;

    grid-template-columns:
        43px 1fr 18px;

    align-items: center;

    gap: 13px;

    padding:
        13px 18px;

    background: transparent;

    color: var(--text);

    text-align: left;

    cursor: pointer;

    border-bottom:
        1px solid var(--border);

    transition:
        background 0.2s ease;
}


.action-list button:last-child {
    border-bottom: 0;
}


.action-list button:hover {
    background:
        var(--primary-soft);
}


.action-icon {
    width: 42px;
    height: 42px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        var(--surface-3);

    color:
        var(--primary);
}


.action-list strong {
    display: block;

    font-size: 14px;
}


.action-list span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 2px;
}


.action-list button > i {
    color: var(--muted-2);

    font-size: 12px;
}


/* =========================================================
   DANGER
========================================================= */

.danger-action .action-icon {
    background:
        rgba(233, 120, 120, 0.10);

    color:
        var(--danger);
}


.danger-action strong {
    color:
        var(--danger);
}


/* =========================================================
   FOOTER
========================================================= */

.settings-footer {
    text-align: center;

    padding:
        25px
        25px
        max(30px, env(safe-area-inset-bottom));

    color: var(--muted);
}


.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-bottom: 7px;
}


.footer-logo-mark {
    width: 31px;
    height: 31px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        var(--primary);

    color: white;

    font-size: 13px;
}


.footer-logo strong {
    font-family:
        "Playfair Display",
        serif;

    font-size: 21px;

    color: var(--text);

    letter-spacing: 1px;
}


.settings-footer p {
    font-size: 11px;

    margin-bottom: 14px;

    color: var(--muted);
}


.settings-footer > span {
    display: block;

    font-size: 10px;

    color: var(--muted-2);

    margin-bottom: 6px;
}


.settings-footer small {
    display: block;

    font-size: 10px;

    color: var(--muted-2);

    margin-top: 3px;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    left: 50%;

    bottom:
        calc(
            25px +
            env(safe-area-inset-bottom)
        );

    transform:
        translate(-50%, 25px);

    width: max-content;

    max-width: calc(100% - 40px);

    padding:
        12px 18px;

    border-radius: 14px;

    background:
        #102f28;

    color:
        #ffffff;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.35);

    font-size: 12px;

    font-weight: 600;

    opacity: 0;

    pointer-events: none;

    z-index: 9999;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 700px) {

    .settings-header {
        padding-top: 30px;
    }


    .account-hero {
        margin-left: 22px;
        margin-right: 22px;

        padding: 30px;
    }


    .settings-section {
        margin-left: 22px;
        margin-right: 22px;
    }


    .account-information h2 {
        font-size: 27px;
    }


    .account-information p {
        font-size: 14px;
    }


    .navigation-list a {
        min-height: 78px;

        padding:
            15px 22px;
    }


    .setting-row {
        padding:
            17px 22px;
    }


    .setting-row.stacked {
        padding: 21px 22px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 390px) {

    .settings-header {
        padding-left: 15px;
        padding-right: 15px;
    }


    .account-hero {
        margin-left: 12px;
        margin-right: 12px;

        padding: 18px;

        border-radius: 23px;
    }


    .settings-section {
        margin-left: 12px;
        margin-right: 12px;
    }


    .account-avatar {
        width: 53px;
        height: 53px;

        border-radius: 17px;
    }


    .account-information h2 {
        font-size: 20px;
    }


    .account-information p {
        font-size: 11px;
    }


    .profile-arrow {
        width: 35px;
        height: 35px;
    }


    .section-heading h2 {
        font-size: 18px;
    }


    .navigation-list a {
        grid-template-columns:
            39px 1fr 15px;

        gap: 10px;

        padding:
            12px 13px;
    }


    .nav-icon {
        width: 39px;
        height: 39px;
    }


    .navigation-list strong {
        font-size: 13px;
    }


    .navigation-list span {
        font-size: 10px;
    }


    .setting-row {
        padding:
            14px 13px;
    }


    .row-icon {
        width: 38px;
        height: 38px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;

    }

}


/* =========================================================
   FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {

    outline:
        3px solid
        rgba(22, 185, 120, 0.35);

    outline-offset: 3px;

}