body{background:#f8f9fa}

.ef-navbar{
    background:#b91c1c;
}

.ef-card-header{
    background:#b91c1c;
    color:#fff;
}

.ef-card-header small{
    color:rgba(255,255,255,.85);
}

.ef-btn-primary{
    background:#b91c1c;
    border-color:#b91c1c;
    color:#fff;
}

.ef-btn-primary:hover,
.ef-btn-primary:focus{
    background:#991b1b;
    border-color:#991b1b;
    color:#fff;
}

.ef-kpi{
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    gap:12px;
    padding:18px 16px;
    border-radius:16px;
    text-decoration:none;
    color:#fff;
    background:linear-gradient(135deg, #7f1d1d 0%, #3b1d0f 100%);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
    border:1px solid rgba(255,255,255,.12);
    min-height:108px;
    transition:transform .12s ease, box-shadow .12s ease;
}

.ef-kpi:hover{
    transform:translateY(-2px);
    box-shadow:0 22px 52px rgba(0,0,0,.16);
    color:#fff;
}

.ef-kpi--static{
    cursor:default;
}

.ef-kpi--static:hover{
    transform:none;
}

.ef-kpi__label{
    font-size:12px;
    opacity:.85;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.ef-kpi__value{
    font-size:34px;
    font-weight:800;
    line-height:1.05;
    margin-top:6px;
}

.ef-kpi__icon{
    width:54px;
    height:54px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(245, 158, 11, .18);
    font-size:22px;
}

.ef-kpi__icon--apps{background:rgba(245,158,11,.22)}
.ef-kpi__icon--users{background:rgba(180,83,9,.22)}
.ef-kpi__icon--admins{background:rgba(220,38,38,.22)}
.ef-kpi__icon--services{background:rgba(251,191,36,.22)}

.ef-admin-actions{
    background:linear-gradient(135deg, #3b1d0f 0%, #7f1d1d 100%);
    border:1px solid rgba(127,29,29,.22);
}

.ef-admin-actions .fw-semibold,
.ef-admin-actions .text-muted{
    color:#fff !important;
}

.ef-admin-actions .text-muted{
    opacity:.82;
}

.ef-btn-outline-gold{
    color:#fff;
    border-color:rgba(251,191,36,.75);
    background:transparent;
}

.ef-btn-outline-gold:hover,
.ef-btn-outline-gold:focus{
    color:#111827;
    background:#fbbf24;
    border-color:#fbbf24;
}

.ef-sidebar{
    color:#fff;
    background:linear-gradient(180deg, #7f1d1d 0%, #3b1d0f 100%);
    border-right:1px solid rgba(251,191,36,.22);
}

.ef-sidebar .text-white-50{
    color:rgba(255,255,255,.82) !important;
}

.ef-sidebar__btn{
    background:transparent;
    border:1px solid rgba(251,191,36,.28);
    color:#fff;
}

.ef-sidebar__btn:hover,
.ef-sidebar__btn:focus{
    color:#111827;
    background:#fbbf24;
    border-color:#fbbf24;
}

.ef-sidebar__btn--logout{
    border-color:rgba(255,255,255,.22);
}

.ef-sidebar__btn--logout:hover,
.ef-sidebar__btn--logout:focus{
    background:#fee7b5;
    border-color:#fee7b5;
}

.ef-topbar{
    position:sticky;
    top:0;
    z-index:1020;
    background:#ffffff;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.ef-brand{
    font-weight:800;
    letter-spacing:.3px;
    color:#b91c1c;
    font-size:22px;
}

.ef-tile-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
    gap:18px;
    max-width:980px;
    margin:0 auto;
}

.ef-tile{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
    padding:28px 18px;
    min-height:220px;
    transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    color:#212529;
}

.ef-tile:hover{
    transform:translateY(-2px);
    box-shadow:0 .35rem 1rem rgba(0,0,0,.08);
}

.ef-tile__icon{
    width:84px;
    height:84px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff5f5;
    border:1px solid rgba(185,28,28,.18);
    color:#b91c1c;
    margin-bottom:14px;
    font-size:34px;
}

.ef-tile__label{
    font-size:16px;
    font-weight:600;
    text-align:center;
    line-height:1.15;
}

@media (max-width: 576px){
    body{
        background:#f8fafc;
    }

    .navbar{
        position:sticky;
        top:0;
        z-index:1020;
    }

    .container{
        padding-left:14px;
        padding-right:14px;
    }

    .ef-tile-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:12px;
        max-width:100%;
    }

    .ef-tile{
        min-height:170px;
        padding:18px 12px;
        border-radius:14px;
    }

    .ef-tile__icon{
        width:72px;
        height:72px;
        border-radius:14px;
        font-size:30px;
        margin-bottom:12px;
    }

    .ef-tile__label{
        font-size:14px;
    }
}

.ef-main{
    padding-bottom:90px;
}

.ef-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:72px;
    background:#ffffff;
    border-top:1px solid rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:space-around;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    z-index:1030;
    box-shadow:0 -10px 30px rgba(0,0,0,.06);
}

.ef-bottom-nav__item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#6c757d;
    text-decoration:none;
    font-size:12px;
    min-width:64px;
}

.ef-bottom-nav__item i{
    font-size:18px;
}

.ef-bottom-nav__item.active{
    color:#0d6efd;
}

.ef-bottom-nav__form{
    margin:0;
}

.ef-bottom-nav__button{
    background:transparent;
    border:0;
    padding:0;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:18px;
    max-width:980px;
    margin:0 auto;
}

@media (max-width: 576px){
    .service-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:12px;
        max-width:100%;
    }

    .service-card{
        min-height:96px;
        padding:16px 10px;
        border-radius:12px;
    }

    .service-card .service-icon{
        font-size:28px;
        margin-bottom:8px;
    }

    .service-card .service-title{
        font-size:12px;
    }
}

.service-card{
    border:1px solid #e9ecef;
    border-radius:10px;
    padding:22px 14px;
    background:#fff;
    cursor:pointer;
    text-align:center;
    min-height:110px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    user-select:none;
}

.service-card:hover{
    transform:translateY(-2px);
    box-shadow:0 .35rem 1rem rgba(0,0,0,.08);
}

.service-card.active{
    border-color:#b91c1c;
    box-shadow:0 0 0 .2rem rgba(185,28,28,.18);
}

.service-card .service-icon{
    font-size:32px;
    color:#b91c1c;
    margin-bottom:10px;
}

.service-card .service-title{
    font-weight:600;
    font-size:13px;
    line-height:1.2;
    color:#212529;
}

.section-title{font-weight:600;margin-bottom:12px}

.ef-chatbot{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:1100;
}

.ef-chatbot__fab{
    width:56px;
    height:56px;
    border-radius:16px;
    border:0;
    background:#b91c1c;
    color:#fff;
    box-shadow:0 16px 40px rgba(0,0,0,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}

.ef-chatbot__fab:hover,
.ef-chatbot__fab:focus{
    background:#991b1b;
    color:#fff;
}

.ef-chatbot__window{
    position:absolute;
    right:0;
    bottom:70px;
    width:min(360px, calc(100vw - 36px));
    height:480px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 18px 60px rgba(0,0,0,.22);
    border:1px solid rgba(0,0,0,.08);
    overflow:hidden;
    display:none;
}

.ef-chatbot.is-open .ef-chatbot__window{
    display:flex;
    flex-direction:column;
}

.ef-chatbot__header{
    padding:12px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#ffffff;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.ef-chatbot__brand{
    display:flex;
    align-items:center;
    gap:10px;
}

.ef-chatbot__logo{
    width:32px;
    height:32px;
    border-radius:8px;
    background:#b91c1c;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
}

.ef-chatbot__title{
    font-weight:700;
    font-size:13px;
    line-height:1.1;
    color:#111827;
}

.ef-chatbot__subtitle{
    font-size:11px;
    color:#6b7280;
}

.ef-chatbot__close{
    width:34px;
    height:34px;
    border-radius:8px;
    border:1px solid rgba(0,0,0,.10);
    background:#fff;
    color:#6b7280;
    font-size:22px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ef-chatbot__messages{
    flex:1;
    padding:12px;
    overflow:auto;
    background:#f8fafc;
}

.ef-chatbot--rtl .ef-chatbot__messages{
    direction:rtl;
}

.ef-chatbot__bubble{
    max-width:85%;
    padding:10px 12px;
    border-radius:12px;
    font-size:13px;
    line-height:1.35;
    margin-bottom:10px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.ef-chatbot--rtl .ef-chatbot__bubble{
    text-align:right;
}

.ef-chatbot__bubble--bot{
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    color:#111827;
}

.ef-chatbot--rtl .ef-chatbot__bubble--bot{
    margin-left:auto;
}

.ef-chatbot__bubble--user{
    margin-left:auto;
    background:#b91c1c;
    color:#fff;
    border:1px solid rgba(185,28,28,.35);
}

.ef-chatbot__composer{
    display:flex;
    gap:8px;
    padding:10px;
    border-top:1px solid rgba(0,0,0,.08);
    background:#fff;
    align-items:flex-end;
}

.ef-chatbot__input{
    flex:1;
    border:1px solid rgba(0,0,0,.12);
    border-radius:10px;
    padding:10px 12px;
    font-size:13px;
    outline:none;
    resize:none;
    min-height:42px;
    max-height:140px;
    overflow:auto;
}

.ef-chatbot--rtl .ef-chatbot__input{
    direction:rtl;
    text-align:right;
}

.ef-chatbot__attach{
    width:44px;
    height:44px;
    border-radius:10px;
    border:1px solid rgba(0,0,0,.12);
    background:#fff;
    color:#b91c1c;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ef-chatbot__mic{
    width:44px;
    height:44px;
    border-radius:10px;
    border:1px solid rgba(0,0,0,.12);
    background:#fff;
    color:#b91c1c;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ef-chatbot__mic.is-recording{
    background:#b91c1c;
    border-color:#b91c1c;
    color:#fff;
}

.ef-chatbot__attach:hover,
.ef-chatbot__attach:focus{
    background:#fff5f5;
    border-color:rgba(185,28,28,.35);
}

.ef-chatbot__mic:hover,
.ef-chatbot__mic:focus{
    background:#fff5f5;
    border-color:rgba(185,28,28,.35);
}

.ef-chatbot__bubble a{
    color:inherit;
    text-decoration:underline;
}

.ef-chatbot__bubble img{
    max-width:100%;
    height:auto;
    border-radius:10px;
    margin-top:8px;
    display:block;
}

.ef-chatbot__send{
    border:0;
    border-radius:10px;
    padding:10px 12px;
    background:#b91c1c;
    color:#fff;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px;
}

.ef-chatbot__send:hover,
.ef-chatbot__send:focus{
    background:#991b1b;
    color:#fff;
}

@media (max-width: 576px){
    .ef-chatbot{
        right:12px;
        bottom:calc(12px + 72px);
    }

    .ef-chatbot__fab{
        width:54px;
        height:54px;
        border-radius:16px;
    }

    .ef-chatbot__window{
        position:fixed;
        left:0;
        right:0;
        bottom:calc(72px + 10px);
        width:calc(100vw - 24px);
        margin:0 12px;
        height:min(70vh, 520px);
        border-radius:16px;
    }
}
