﻿/* ===============================
   Loughatouna Sirajouna Theme
   Layout / Header / Footer / Login / Register
   Bootstrap 3 Compatible
   =============================== */

:root {
    --ls-green: #15803D;
    --ls-green-light: #16A34A;
    --ls-green-dark: #0F6B32;
    --ls-green-soft: #DCFCE7;
    --ls-dark: #1F2937;
    --ls-muted: #6B7280;
    --ls-border: #E5E7EB;
    --ls-bg: #F8FAFC;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    background: #f5f7f8 !important;
}

/* ===============================
   Header
   =============================== */

.ls-navbar {
    background-color: var(--ls-green) !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    min-height: 90px !important;
    border-radius: 0 !important;
}

    .ls-navbar .container {
        min-height: 90px !important;
        display: flex !important;
        align-items: center !important;
        direction: rtl !important;
    }

/* Logo area */
.navbar-header {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.ls-brand-line {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
    margin: 0 !important;
}

.ls-brand-wrap {
    float: none !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 15px !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ls-logo-img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10) !important;
}

.ls-brand-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
}

.ls-brand-ar,
.ls-footer-brand-text {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: red !important;
    direction: rtl !important;
    font-family: "Tahoma", "Segoe UI", Arial, sans-serif !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
}

/* Navbar content */
#mainNavbar {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 90px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Main nav links */
.ls-nav-links {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 35px 0 0 !important;
    padding: 0 !important;
}

    .ls-nav-links > li {
        float: none !important;
        display: flex !important;
        align-items: center !important;
    }

        .ls-nav-links > li > a {
            color: #ffffff !important;
            font-weight: 800 !important;
            font-size: 20px !important;
            padding: 8px 16px !important;
            text-decoration: none !important;
            border-radius: 999px !important;
        }

            .ls-nav-links > li > a:hover,
            .ls-nav-links > li > a:focus {
                color: var(--ls-green-soft) !important;
                background: rgba(255, 255, 255, 0.10) !important;
                text-decoration: none !important;
            }

/* Auth / welcome menu */
/* Auth menu: always far left in header */
.ls-auth-menu {
    float: none !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 28px !important;
    width: auto !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

    .ls-auth-menu > li {
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
    }

        .ls-auth-menu > li > a {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            color: #ffffff !important;
            font-weight: 800 !important;
            font-size: 18px !important;
            padding: 8px 16px !important;
            margin: 0 !important;
            border-radius: 999px !important;
            text-decoration: none !important;
            white-space: nowrap !important;
        }

            .ls-auth-menu > li > a:hover,
            .ls-auth-menu > li > a:focus {
                color: var(--ls-green-soft) !important;
                background: rgba(255, 255, 255, 0.10) !important;
                text-decoration: none !important;
            }

.ls-user-welcome {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    max-width: 300px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

    .ls-user-welcome:hover,
    .ls-user-welcome:focus {
        background: rgba(255, 255, 255, 0.20) !important;
        color: var(--ls-green-soft) !important;
        text-decoration: none !important;
    }

.navbar-auth-form,
#logoutForm {
    margin-right: auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Hide mobile toggle because you are not using collapsed mobile nav */
.ls-navbar .navbar-toggle {
    display: none !important;
}

@media (max-width: 991px) {

    .ls-navbar {
        min-height: auto !important;
        text-align: center !important;
    }

        .ls-navbar .container {
            width: 100% !important;
            min-height: auto !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            padding: 18px 15px !important;
            direction: rtl !important;
        }

    .navbar-header {
        width: 100% !important;
        float: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .ls-brand-wrap {
        height: auto !important;
        padding: 0 !important;
        margin: 0 auto 18px auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .ls-brand-line {
        justify-content: center !important;
        text-align: center !important;
    }

    #mainNavbar {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar-auth-form,
    #logoutForm {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .ls-auth-menu {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 14px !important;
        text-align: center !important;
    }

        .ls-auth-menu > li {
            float: none !important;
            display: inline-flex !important;
            justify-content: center !important;
            align-items: center !important;
        }

            .ls-auth-menu > li > a,
            .ls-auth-menu > li > button {
                margin: 0 !important;
                text-align: center !important;
            }
}

/* ===============================
   Main
   =============================== */

.ls-main {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: #f5f7f8 !important;
    padding: 40px 0 !important;
}

/* ===============================
   Footer
   =============================== */

.ls-footer {
    flex-shrink: 0 !important;
    background-color: var(--ls-green) !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 35px 0 18px !important;
    margin: 0 !important;
    width: 100% !important;
}
    /* Footer first row */
    .ls-footer .row:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        position: relative;
    }

/* Brand stays on same line */
.ls-footer-brand-col {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    position: absolute;
    right: 15px;
}

.ls-footer-brand {
    min-height: auto !important;
}

.ls-footer-brand-text {
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    white-space: nowrap;
}

/* Links centered */
.ls-footer-links {
    width: auto !important;
    float: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
}

    .ls-footer-links a {
        color: #ffffff !important;
        margin: 0 !important;
        font-weight: 800;
        font-size: 20px;
        text-decoration: none !important;
        display: inline-block !important;
        white-space: nowrap;
        padding: 8px 16px !important;
        border-radius: 999px !important;
        transition: all 0.2s ease-in-out;
    }

        .ls-footer-links a:hover,
        .ls-footer-links a:focus {
            color: var(--ls-green-soft) !important;
            background: rgba(255, 255, 255, 0.10) !important;
            text-decoration: none !important;
        }

/* ===============================
   Mobile Centering - Under 767px
   =============================== */

@media (max-width: 767px) {

    /* ===============================
       Header Mobile Center
       =============================== */

    .ls-navbar {
        min-height: auto !important;
        text-align: center !important;
    }

        .ls-navbar .container {
            width: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

    .navbar-header {
        width: 100% !important;
        float: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
    }

    .navbar-toggle {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    .ls-brand-wrap {
        float: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        padding: 18px 0 !important;
        height: auto !important;
        text-align: center !important;
    }

    .ls-brand-line {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .ls-brand-text {
        text-align: center !important;
    }

    .ls-brand-ar {
        text-align: center !important;
        white-space: nowrap !important;
    }

    #mainNavbar {
        width: 100% !important;
        text-align: center !important;
    }

    .ls-nav-links {
        float: none !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .ls-nav-links > li {
            float: none !important;
            display: block !important;
            text-align: center !important;
        }

            .ls-nav-links > li > a {
                text-align: center !important;
            }





    /* ===============================
       Footer Mobile Center
       =============================== */

    .ls-footer {
        padding: 28px 0 16px;
        text-align: center !important;
    }

        .ls-footer .container {
            width: 100% !important;
            text-align: center !important;
        }

        .ls-footer .row:first-child {
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            text-align: center !important;
            gap: 14px !important;
            margin: 0 !important;
        }

    .ls-footer-brand-col {
        position: static !important;
        right: auto !important;
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .ls-footer-brand {
        width: 100% !important;
        min-height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .ls-footer-brand-text {
        color: red !important;
        font-size: 26px !important;
        font-weight: 900 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .ls-footer-links {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 28px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

        .ls-footer-links a {
            color: #ffffff !important;
            display: inline-block !important;
            font-size: 20px !important;
            font-weight: 800 !important;
            margin: 0 !important;
            text-align: center !important;
            text-decoration: none !important;
            white-space: nowrap !important;
            padding: 8px 16px !important;
            border-radius: 999px !important;
        }

            .ls-footer-links a:hover,
            .ls-footer-links a:focus {
                color: var(--ls-green-soft) !important;
                background: rgba(255, 255, 255, 0.10) !important;
                text-decoration: none !important;
            }

    .ls-copyright {
        text-align: center !important;
    }
}

/* ===============================
   Auth Shared Style
   Login / Register 
   =============================== */

.auth-page {
    width: 100%;
    padding: 0;
    direction: rtl;
}

.auth-panel-heading {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 0 26px !important;
}

.auth-badge {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--ls-green-soft);
    color: var(--ls-green-dark);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-panel-heading h2 {
    margin: 8px 0 10px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--ls-dark);
}

.auth-panel-heading p {
    color: var(--ls-muted);
    margin-bottom: 0;
    font-size: 16px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ls-dark);
    margin-bottom: 8px;
}

.auth-form .form-control {
    height: 52px;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--ls-border);
    background: #ffffff;
    box-shadow: none;
    text-align: right;
}

    .auth-form .form-control:focus {
        border-color: var(--ls-green);
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
    }

/* Auth input green background + Chrome/Edge autofill fix */
.auth-form .form-control,
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    background-color: #e9f7ee !important;
    border: 1px solid #d4ebdc !important;
    color: var(--ls-dark) !important;
    box-shadow: none !important;
}

    .auth-form .form-control:focus,
    .auth-form input[type="email"]:focus,
    .auth-form input[type="password"]:focus,
    .auth-form input[type="text"]:focus {
        background-color: #ffffff !important;
        border-color: var(--ls-green) !important;
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15) !important;
        outline: none !important;
    }

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #e9f7ee inset !important;
    box-shadow: 0 0 0 1000px #e9f7ee inset !important;
    -webkit-text-fill-color: var(--ls-dark) !important;
    caret-color: var(--ls-dark) !important;
    border-color: #d4ebdc !important;
}

.auth-options {
    margin-top: 4px;
    margin-bottom: 18px;
}

.auth-checkbox {
    margin-top: 0;
    margin-bottom: 10px;
}

    .auth-checkbox label {
        font-size: 15px;
        font-weight: 600;
        color: var(--ls-dark);
        padding-right: 20px;
        padding-left: 0;
    }

    .auth-checkbox input[type="checkbox"] {
        margin-right: -20px;
        margin-left: 0;
    }

.auth-forgot {
    text-align: left;
}

.auth-link-small {
    display: inline-block;
    margin-top: 4px;
    color: var(--ls-green);
    font-size: 15px;
    font-weight: 700;
}

    .auth-link-small:hover,
    .auth-link-small:focus {
        color: var(--ls-green-dark);
        text-decoration: none;
    }

.auth-submit {
    height: 52px;
    border-radius: 999px;
    background: var(--ls-green);
    border-color: var(--ls-green);
    font-size: 18px;
    font-weight: 800;
}

    .auth-submit:hover,
    .auth-submit:focus,
    .auth-submit:active {
        background: var(--ls-green-dark) !important;
        border-color: var(--ls-green-dark) !important;
    }

.auth-switch {
    margin-top: 20px;
    color: var(--ls-muted);
    font-size: 16px;
}

    .auth-switch a {
        color: var(--ls-green);
        font-weight: 800;
    }

        .auth-switch a:hover,
        .auth-switch a:focus {
            color: var(--ls-green-dark);
            text-decoration: none;
        }

.auth-validation {
    margin-bottom: 18px;
}

.text-danger {
    color: #d93025;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* Bootstrap success button override */

.btn-success {
    background-color: var(--ls-green);
    border-color: var(--ls-green);
}

    .btn-success:hover,
    .btn-success:focus,
    .btn-success:active {
        background-color: var(--ls-green-dark) !important;
        border-color: var(--ls-green-dark) !important;
    }

/* Arabic RTL Auth Fixes */

.auth-form input {
    text-align: right;
}

    .auth-form input[type="email"] {
        direction: ltr;
        text-align: left;
    }

    .auth-form input[type="password"] {
        direction: rtl;
        text-align: right;
    }

/* ===============================
   Split Card
   Login / Register 
   =============================== */
.login-card-frame {
    width: 100%;
    max-width: 1050px;
    background: #ffffff;
    border: 1px solid var(--ls-border) !important;
    border-top: 8px solid #087d35 !important;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.login-split-card {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    background: #ffffff;
    min-height: 560px;
}

.login-image-side {
    width: 50%;
    background-color: #ffffff;
    background-image: url("images/Artboard.png");
    background-size: 430px auto;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form-side {
    width: 50%;
    padding: 45px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ===============================
   Responsive
   =============================== */

@media (max-width: 991px) {
    .login-card-frame {
        max-width: 520px;
    }

    .login-split-card {
        flex-direction: column;
        min-height: auto;
    }

    .login-image-side {
        width: 100%;
        height: 240px;
        background-size: 75% auto;
    }

    .login-form-side {
        width: 100%;
        padding: 35px 25px;
    }

    .forgot-split-card {
        min-height: auto;
    }

        .forgot-split-card .login-image-side {
            background-size: 70% auto;
        }
}

@media (max-width: 767px) {
    .ls-navbar {
        min-height: auto;
    }

        .ls-navbar .navbar-header {
            min-height: 74px;
        }

    .ls-brand-wrap {
        height: 74px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        max-width: calc(100% - 70px);
    }

    .ls-logo-img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .ls-brand-ar {
        font-size: 20px;
        white-space: nowrap;
    }

    .ls-navbar .navbar-toggle {
        display: none !important;
    }

    .ls-navbar .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: none;
        padding-bottom: 12px;
    }

    .ls-navbar .navbar-nav {
        margin: 7.5px 0;
        float: none !important;
        text-align: right;
    }

        .ls-navbar .navbar-nav > li {
            float: none;
        }

            .ls-navbar .navbar-nav > li > a {
                padding-top: 13px;
                padding-bottom: 13px;
                padding-right: 15px;
                padding-left: 15px;
                font-size: 18px;
            }

        .ls-auth-menu > li > a,
        .ls-navbar .navbar-nav.navbar-left > li > a {
            margin: 8px 0 !important;
            text-align: center !important;
            display: inline-flex !important;
        }
    .ls-main {
        flex: 1 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 30px 0 !important;
    }

    .ls-footer {
        text-align: center;
        padding: 28px 0 16px;
    }

    .ls-footer-brand {
        margin-bottom: 18px;
    }

        .ls-footer-brand p {
            font-size: 22px;
        }

    .ls-footer-links {
        text-align: center !important;
    }

        .ls-footer-links a {
            display: block;
            margin: 8px 0;
            font-size: 18px;
        }

    .auth-panel-heading {
        padding: 0 0 22px !important;
    }

        .auth-panel-heading h2 {
            font-size: 34px;
        }

        .auth-panel-heading p {
            font-size: 15px;
            padding: 0 10px;
        }

    .auth-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    .auth-form .form-group {
        margin-bottom: 16px;
    }

    .auth-form label {
        font-size: 15px;
    }

    .auth-form .form-control {
        height: 50px;
        font-size: 15px;
        padding: 12px 15px;
    }

    .auth-forgot {
        text-align: left;
        margin-top: 4px;
    }

    .auth-link-small {
        font-size: 14px;
    }

    .auth-submit {
        height: 50px;
        font-size: 17px;
    }

    .auth-switch {
        font-size: 15px;
        margin-top: 22px;
    }
}

/* Final safety override */

.navbar.ls-navbar,
footer.ls-footer {
    background-color: var(--ls-green) !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}



/* Arabic Resource Admin Form for create, edit and delete  */

.admin-form-page {
    width: 100%;
    direction: rtl;
}

.admin-form-frame {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border: 1px solid var(--ls-border) !important;
    border-top: 8px solid var(--ls-green) !important;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
    margin-left: auto;
    margin-right: auto;
    padding: 38px 42px;
}

.admin-form-header {
    margin-bottom: 30px;
    text-align: center;
}

    .admin-form-header .admin-badge {
        display: inline-block;
        padding: 8px 20px;
        border-radius: 999px;
        background: var(--ls-green-soft);
        color: var(--ls-green-dark);
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .admin-form-header h1 {
        margin: 8px 0 10px;
        font-size: 36px;
        font-weight: 800;
        color: var(--ls-dark);
    }

    .admin-form-header p {
        color: var(--ls-muted);
        font-size: 15px;
        margin: 0;
        line-height: 1.8;
    }

.admin-form {
    width: 100%;
}

    .admin-form .form-group {
        position: relative;
        margin-bottom: 22px;
        text-align: right;
    }

    .admin-form label {
        display: block;
        font-size: 16px;
        font-weight: 800;
        color: var(--ls-dark);
        margin-bottom: 9px;
        text-align: right;
    }

    .admin-form .form-control {
        width: 100%;
        height: 52px;
        border-radius: 14px;
        border: 1px solid var(--ls-border);
        background: #fff;
        color: var(--ls-dark);
        font-size: 16px;
        font-weight: 700;
        text-align: right;
        padding: 12px 16px;
        box-shadow: none;
        outline: none;
        direction: rtl;
    }

        .admin-form .form-control:focus {
            border-color: var(--ls-green);
            box-shadow: 0 0 0 4px rgba(22,163,74,.15);
            outline: none;
        }

    .admin-form .text-danger {
        display: block;
        margin-top: 7px;
        color: #d93025;
        font-size: 13px;
        font-weight: 700;
        text-align: right;
    }

    .admin-form .checkbox-label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        font-size: 16px;
        font-weight: 800;
        color: var(--ls-dark);
        cursor: pointer;
    }

        .admin-form .checkbox-label input[type="checkbox"] {
            margin: 0;
            width: 17px;
            height: 17px;
        }

    .admin-form .help-block {
        display: block;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.7;
    }

.admin-form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.admin-save-btn {
    min-width: 130px;
    height: 48px;
    border-radius: 999px;
    background: var(--ls-green);
    border: 1px solid var(--ls-green);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
}

    .admin-save-btn:hover,
    .admin-save-btn:focus {
        background: var(--ls-green-dark) !important;
        border-color: var(--ls-green-dark) !important;
        color: #fff !important;
    }

.admin-cancel-btn {
    min-width: 130px;
    height: 48px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ls-border);
    color: var(--ls-dark) !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 34px;
    text-decoration: none !important;
}

    .admin-cancel-btn:hover,
    .admin-cancel-btn:focus {
        background: #f8fafc;
        border-color: var(--ls-green);
        color: var(--ls-green-dark) !important;
    }

/* Custom RTL Dropdown */

.admin-custom-select,
.admin-custom-select-btn,
.admin-custom-select-menu {
    box-sizing: border-box !important;
}

.admin-custom-select {
    position: relative !important;
    width: 100% !important;
    z-index: 10 !important;
}

    .admin-custom-select.open {
        z-index: 1000 !important;
    }

.admin-custom-select-btn {
    width: 100% !important;
    height: 52px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ls-border) !important;
    background: #fff !important;
    color: var(--ls-dark) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: right !important;
    padding: 0 18px 0 48px !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    direction: rtl !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

    .admin-custom-select-btn span {
        display: block !important;
        width: 100% !important;
        text-align: right !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .admin-custom-select-btn:hover,
    .admin-custom-select-btn:focus {
        border-color: var(--ls-green) !important;
        box-shadow: 0 0 0 4px rgba(22,163,74,.15) !important;
        outline: none !important;
        background: #fff !important;
        color: var(--ls-dark) !important;
    }

    .admin-custom-select-btn:after {
        content: "" !important;
        position: absolute !important;
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        border-width: 7px 6px 0 6px !important;
        border-style: solid !important;
        border-color: var(--ls-green) transparent transparent transparent !important;
    }

.admin-custom-select.open .admin-custom-select-btn:after {
    border-width: 0 6px 7px 6px !important;
    border-color: transparent transparent var(--ls-green) transparent !important;
}

.admin-custom-select-menu {
    display: none !important;
    position: absolute !important;
    z-index: 1001 !important;
    width: 100% !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    margin-top: 8px !important;
    padding: 8px !important;
    list-style: none !important;
    background: #fff !important;
    border-radius: 18px !important;
    border: 1px solid var(--ls-border) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.14) !important;
    text-align: right !important;
    direction: rtl !important;
    max-height: 360px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable !important;
}

.admin-custom-select.open .admin-custom-select-menu {
    display: block !important;
}

/* Scrollbar */

.admin-custom-select-menu::-webkit-scrollbar {
    width: 6px;
}

.admin-custom-select-menu::-webkit-scrollbar-thumb {
    background: var(--ls-green);
    border-radius: 10px;
}

.admin-custom-select-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Dropdown Items */

.admin-custom-select-menu > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .admin-custom-select-menu > li > a {
        display: block !important;
        padding: 11px 16px !important;
        border-radius: 12px !important;
        color: var(--ls-dark) !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        text-align: right !important;
        direction: rtl !important;
    }

        .admin-custom-select-menu > li > a:hover,
        .admin-custom-select-menu > li > a:focus {
            background: var(--ls-green-soft) !important;
            color: var(--ls-green-dark) !important;
            text-decoration: none !important;
        }

    .admin-custom-select-menu > li.active > a,
    .admin-custom-select-menu > li.active > a:hover,
    .admin-custom-select-menu > li.active > a:focus {
        background: var(--ls-green) !important;
        color: #fff !important;
    }

/* Prevent dropdown clipping inside cards */

.admin-filter,
.admin-list-frame,
.admin-form-frame {
    overflow: visible !important;
}

/* When two dropdowns are inside one admin-filter card */

.admin-filter-item {
    margin-bottom: 18px;
}

    .admin-filter-item:last-child {
        margin-bottom: 0;
    }

/* Responsive */

@media (max-width: 767px) {
    .admin-form-frame {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .admin-form-header h1 {
        font-size: 30px;
    }

    .admin-form-header p {
        font-size: 14px;
    }

    .admin-form .form-control,
    .admin-custom-select-btn {
        height: 50px !important;
        font-size: 15px !important;
    }

    .admin-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .admin-save-btn,
    .admin-cancel-btn {
        width: 100%;
    }
}

.admin-form .checkbox-label input[type="checkbox"] {
    accent-color: var(--ls-green);
    cursor: pointer;
}

.admin-delete-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff !important;
    font-weight: 800;
}

    .admin-delete-btn:hover,
    .admin-delete-btn:focus {
        background-color: #bb2d3b;
        border-color: #b02a37;
        color: #fff !important;
    }

.admin-delete-box {
    text-align: center;
    width: 100%;
}

    .admin-delete-box h3,
    .admin-delete-box p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

.admin-form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
}

    .admin-form-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

.admin-delete-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff !important;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .admin-delete-btn:hover,
    .admin-delete-btn:focus {
        background-color: #bb2d3b;
        border-color: #b02a37;
        color: #fff !important;
    }

/* ===============================
   Arabic Resource Admin List / Index
   =============================== */

.admin-list-page {
    width: 100%;
    direction: rtl;
}

.admin-list-frame {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border: 1px solid var(--ls-border) !important;
    border-top: 8px solid var(--ls-green) !important;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    margin-left: auto;
    margin-right: auto;
    padding: 38px 42px;
}

.admin-list-header {
    margin-bottom: 28px;
    text-align: center;
}

    .admin-list-header .admin-badge {
        display: inline-block;
        padding: 8px 20px;
        border-radius: 999px;
        background: var(--ls-green-soft);
        color: var(--ls-green-dark);
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .admin-list-header h1 {
        margin: 8px 0 10px;
        font-size: 38px;
        font-weight: 800;
        color: var(--ls-dark);
    }

    .admin-list-header p {
        color: var(--ls-muted);
        font-size: 15px;
        margin: 0;
        line-height: 1.8;
    }

.admin-toolbar {
    margin-bottom: 22px;
    text-align: left;
}

.admin-filter {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid var(--ls-border);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

    .admin-filter label {
        display: block;
        font-weight: 800;
        font-size: 16px;
        color: var(--ls-dark);
        margin-bottom: 10px;
        text-align: right;
    }

.admin-btn-main {
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 800;
    background: var(--ls-green);
    border-color: var(--ls-green);
    color: #ffffff !important;
    text-decoration: none !important;
}

    .admin-btn-main:hover,
    .admin-btn-main:focus {
        background: var(--ls-green-dark) !important;
        border-color: var(--ls-green-dark) !important;
        color: #ffffff !important;
    }

.table-responsive {
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ls-green) #f1f5f9;
}

    .table-responsive::-webkit-scrollbar {
        height: 9px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 999px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--ls-green);
        border-radius: 999px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: var(--ls-green-dark);
        }

.admin-table {
    margin-bottom: 0;
    border: 1px solid var(--ls-border);
    border-radius: 14px;
    overflow: hidden;
}

    .admin-table thead tr {
        background: var(--ls-green);
        color: #ffffff;
    }

    .admin-table thead th {
        text-align: center;
        vertical-align: middle !important;
        font-size: 15px;
        font-weight: 800;
        border-bottom: none !important;
        padding: 14px !important;
    }

    .admin-table tbody td {
        text-align: center;
        vertical-align: middle !important;
        padding: 14px !important;
        font-size: 14px;
        color: var(--ls-dark);
    }

    .admin-table tbody tr:hover {
        background: #f8fafc;
    }

.status-active {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--ls-green-soft);
    color: var(--ls-green-dark);
    font-weight: 800;
    font-size: 13px;
}

.status-inactive {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    font-size: 13px;
}

.admin-actions {
    white-space: nowrap;
}

    .admin-actions a,
    .admin-actions button {
        margin-left: 6px;
        margin-bottom: 4px;
        border-radius: 999px;
        font-weight: 700;
    }

.inline-action-form {
    display: inline-block;
    margin: 0;
}

.admin-empty {
    text-align: center;
    padding: 35px;
    color: var(--ls-muted);
    font-size: 16px;
    border: 1px dashed var(--ls-border);
    border-radius: 16px;
    background: #f8fafc;
}

.admin-back {
    margin-top: 24px;
    text-align: center;
}

@media (max-width: 767px) {
    .admin-list-frame {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .admin-list-header h1 {
        font-size: 30px;
    }

    .admin-toolbar {
        text-align: center;
    }

    .table-responsive {
        border: none;
        padding-bottom: 8px;
    }

    .admin-actions {
        white-space: normal;
    }

    .admin-filter {
        padding: 16px;
        border-radius: 16px;
    }
}

.pdf-path {
    direction: ltr;
    text-align: left;
    display: inline-block;
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-back-btn {
    min-width: 180px;
    height: 46px;
    border-radius: 999px;
    background: var(--ls-green);
    border: 1px solid var(--ls-green);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 32px;
    padding: 7px 24px;
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
}

    .admin-back-btn:hover,
    .admin-back-btn:focus {
        background: var(--ls-green-dark) !important;
        border-color: var(--ls-green-dark) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }



/* ===============================
   Final Input Color Override
   Normal / Focus / Chrome Autofill
   =============================== */

.form-control,
.auth-form .form-control,
.admin-form .form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    background-color: #e9f7ee !important;
    border-color: #d4ebdc !important;
    color: var(--ls-dark) !important;
    box-shadow: none !important;
}

    .form-control:focus,
    .auth-form .form-control:focus,
    .admin-form .form-control:focus,
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="number"]:focus,
    input[type="search"]:focus,
    textarea:focus,
    select:focus {
        background-color: #ffffff !important;
        border-color: var(--ls-green) !important;
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15) !important;
        outline: none !important;
    }

    /* Chrome / Edge autofill blue override */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px #e9f7ee inset !important;
        box-shadow: 0 0 0 1000px #e9f7ee inset !important;
        -webkit-text-fill-color: var(--ls-dark) !important;
        caret-color: var(--ls-dark) !important;
        border-color: #d4ebdc !important;
    }

        /* Autofill while focused */
        input:-webkit-autofill:focus,
        textarea:-webkit-autofill:focus,
        select:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 4px rgba(22, 163, 74, 0.15) !important;
            box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 4px rgba(22, 163, 74, 0.15) !important;
            border-color: var(--ls-green) !important;
        }


.ls-footer .ls-copyright {
    color: #ffffff !important;
    font-size: 13px;
    text-align: center;
    margin-top: 18px;
}

.ls-footer hr {
    display: none !important;
}


body {
    padding-bottom: 0 !important;
}

.ls-footer {
    margin-bottom: 0 !important;
}

.ls-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0f6b32 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 9px 22px !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

    .ls-pill-btn:hover,
    .ls-pill-btn:focus {
        background: #16a34a !important;
        color: #ffffff !important;
        border: none !important;
        text-decoration: none !important;
        outline: none !important;
    }

.ls-logout-btn {
    margin: 0 !important;
}


/* ===============================
   Account Manage Page - No Logo / Buttons In Row
   =============================== */

/* ===============================
   Account Manage Page - No Logo / Buttons In Row
   Same Middle Spacing As Login
   =============================== */

.account-manage-page {
    width: 100% !important;
}

    .account-manage-page .account-manage-frame {
        max-width: 900px !important;
        border-top: 8px solid var(--ls-green) !important;
        padding: 0 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .account-manage-page .login-form-side.account-manage-form {
        width: 100% !important;
        min-height: 560px !important;
        padding: 45px 55px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

.account-card-row {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    gap: 22px;
    align-items: stretch;
    justify-content: center;
}

.account-action-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(21, 128, 61, 0.16);
    border-radius: 22px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    min-height: 230px;
}

.account-action-text {
    text-align: center;
    margin-bottom: 22px;
}

    .account-action-text h4 {
        color: var(--ls-dark);
        font-size: 22px;
        font-weight: 900;
        margin: 0 0 10px 0;
    }

    .account-action-text p {
        color: var(--ls-muted);
        font-size: 15px;
        line-height: 1.9;
        margin: 0;
    }

.account-action-btn {
    width: 100%;
}

.account-primary-btn {
    width: 100%;
    height: 52px;
    background: var(--ls-green);
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .account-primary-btn:hover,
    .account-primary-btn:focus {
        background: var(--ls-green-dark) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        outline: none;
    }

.account-danger-card {
    background: #fffafa;
    border-color: rgba(185, 28, 28, 0.25);
}

    .account-danger-card .account-action-text h4 {
        color: #991b1b;
    }

.account-danger-btn {
    width: 100%;
    height: 52px;
    background: #b91c1c;
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .account-danger-btn:hover,
    .account-danger-btn:focus {
        background: #991b1b !important;
        color: #ffffff !important;
        outline: none;
    }

.account-delete-form {
    margin: 0;
    padding: 0;
}

/* Tablet / Mobile: stack cards */
@media (max-width: 767px) {
    .account-manage-page .account-manage-frame {
        max-width: 100%;
        border-radius: 22px;
    }

   .account-manage-page .login-form-side.account-manage-form {
    min-height: auto !important;
    padding: 35px 22px !important;
}

    .account-card-row {
        flex-direction: column;
        gap: 18px;
    }

    .account-action-card {
        min-height: auto;
        padding: 22px 18px;
    }

    .account-action-text h4 {
        font-size: 20px;
    }
}

/* ===============================
   Confirm / Result Pages
   Email Confirm / Invalid Delete Link
   =============================== */

.confirm-email-wrapper {
    min-height: calc(100vh - 180px);
    padding: 30px 15px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: table;
    width: 100%;
    background: transparent;
}

.ls-main {
    background: #f5f7f8;
}

.confirm-email-center {
    display: table-cell;
    vertical-align: middle;
}

.confirm-email-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    border-top: 7px solid #087d35;
    padding: 42px 35px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 560px;
    margin: 0 auto;
}

.confirm-icon {
    width: 85px;
    height: 85px;
    line-height: 85px;
    border-radius: 50%;
    background: #e4f7eb;
    color: #087d35;
    font-size: 46px;
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 8px 22px rgba(8, 125, 53, 0.18);
}

.confirm-email-card h2 {
    color: #14213d;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.5;
}

.confirm-email-card p {
    color: #555555;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.confirm-actions {
    text-align: center;
}

.login-btn {
    background: #087d35;
    color: #ffffff !important;
    border: none;
    border-radius: 30px;
    padding: 13px 36px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(8, 125, 53, 0.22);
    min-width: 150px;
    text-align: center;
}

    .login-btn:hover,
    .login-btn:focus {
        background: #06692c;
        color: #ffffff !important;
        text-decoration: none !important;
        transform: none;
        box-shadow: 0 8px 18px rgba(8, 125, 53, 0.22);
    }

.confirm-note {
    margin-top: 22px;
    font-size: 14px;
    color: #777777;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .confirm-email-wrapper {
        min-height: calc(100vh - 150px);
        padding: 25px 15px;
    }

    .confirm-email-card {
        padding: 34px 22px;
        border-radius: 14px;
    }

        .confirm-email-card h2 {
            font-size: 25px;
        }

        .confirm-email-card p {
            font-size: 15px;
        }

    .login-btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }
}

/* ===============================
   Danger / Red Result Page
   =============================== */

.confirm-email-card.confirm-danger {
    border-top-color: #b91c1c !important;
}

    .confirm-email-card.confirm-danger .confirm-icon {
        background: #fee2e2 !important;
        color: #b91c1c !important;
        box-shadow: 0 8px 22px rgba(185, 28, 28, 0.16) !important;
    }

/* ===============================
   Change Password Page
   =============================== */

.change-password-page .change-password-frame {
    max-width: 620px;
    border-top: 8px solid var(--ls-green) !important;
    padding: 0;
    overflow: hidden;
}

.change-password-form-side {
    width: 100%;
    padding: 45px 55px;
}

.change-password-page .auth-form {
    width: 100%;
}

.change-password-page .auth-submit {
    margin-top: 8px;
}

@media (max-width: 767px) {
    .change-password-page .change-password-frame {
        max-width: 100%;
        border-radius: 22px;
    }

    .change-password-form-side {
        padding: 35px 22px;
    }
}


/* Hide browser scrollbar space */
html,
body {
    overflow-x: hidden !important;
}

html {
    overflow-y: scroll !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Old Edge / IE */
    scrollbar-gutter: auto !important;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

input[type="checkbox"] {
    accent-color: var(--ls-green) !important;
    cursor: pointer;
}


/* Admin action buttons - same style, shorter width */
.admin-actions a.btn,
.admin-actions button.btn {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    margin-left: 8px !important;
    margin-bottom: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Keep form buttons aligned */
.admin-actions .inline-action-form {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Prevent Bootstrap btn-xs from shrinking text */
.admin-actions .btn-xs {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Correct text colors by background */
.admin-actions .btn-primary {
    color: #ffffff !important;
}

.admin-actions .btn-success {
    color: #ffffff !important;
}

.admin-actions .btn-danger {
    color: #ffffff !important;
}

.admin-actions .btn-warning {
    color: #000000 !important;
}

.admin-actions .btn-info {
    color: #000000 !important;
}

/* Keep hover readable */
.admin-actions .btn-primary:hover,
.admin-actions .btn-success:hover,
.admin-actions .btn-danger:hover {
    color: #ffffff !important;
}

.admin-actions .btn-warning:hover,
.admin-actions .btn-info:hover {
    color: #000000 !important;
}

/* Unified admin red alert - right aligned Arabic text */
.admin-error-message {
    width: 100% !important;
    text-align: right !important;
    direction: rtl !important;
    padding: 14px 18px !important;
    margin: 0 0 18px 0 !important;
    border-radius: 14px !important;
    border: 1px solid #f1b6bd !important;
    background: #f8d7da !important;
    color: #8a111b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
}



.form-control,
.auth-form .form-control,
.admin-form .form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="file"],
textarea,
select {
    background-color: #e9f7ee !important;
    border: 1px solid #86efac !important;
    color: var(--ls-dark) !important;
    box-shadow: none !important;
    outline: none !important;
}

    .form-control:focus,
    .auth-form .form-control:focus,
    .admin-form .form-control:focus,
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="number"]:focus,
    input[type="search"]:focus,
    input[type="tel"]:focus,
    input[type="url"]:focus,
    input[type="file"]:focus,
    textarea:focus,
    select:focus {
        background-color: #e9f7ee !important;
        border-color: var(--ls-green) !important;
        box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.18) !important;
        outline: none !important;
        color: var(--ls-dark) !important;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    textarea:-webkit-autofill:active,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus,
    select:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px #e9f7ee inset !important;
        box-shadow: 0 0 0 1000px #e9f7ee inset !important;
        -webkit-text-fill-color: var(--ls-dark) !important;
        caret-color: var(--ls-dark) !important;
        border: 1px solid var(--ls-green) !important;
        background-color: #e9f7ee !important;
        transition: background-color 9999s ease-in-out 0s !important;
    }

/* ===============================
   Global Index Empty State Card
   Applies to all Index pages using .admin-empty
   =============================== */

.admin-empty {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 30px auto 10px auto !important;
    padding: 44px 32px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%) !important;
    border: 2px dashed #cfe8d8 !important;
    border-radius: 24px !important;
    color: var(--ls-muted) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.9 !important;
    text-align: center !important;
    direction: rtl !important;
    box-shadow: 0 14px 35px rgba(21, 128, 61, 0.08) !important;
}

    /* Small decorative empty icon */
    .admin-empty::before {
        content: "!";
        width: 66px !important;
        height: 66px !important;
        margin: 0 auto 18px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--ls-green-soft) !important;
        color: var(--ls-green) !important;
        border-radius: 50% !important;
        font-size: 34px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

/* Empty card inside Index/admin list pages */
.admin-list-frame .admin-empty {
    width: 100% !important;
    max-width: none !important;
    margin: 26px auto 18px auto !important;
}

/* If empty card is inside a container/table area, keep it full and clean */
.admin-list-page .admin-empty {
    width: 100% !important;
    max-width: none !important;
}

/* Mobile */
@media (max-width: 767px) {
    .admin-empty {
        width: 100% !important;
        max-width: 100% !important;
        padding: 34px 20px !important;
        border-radius: 20px !important;
        font-size: 15px !important;
    }

        .admin-empty::before {
            width: 58px !important;
            height: 58px !important;
            font-size: 30px !important;
            margin-bottom: 15px !important;
        }
}