/* Darul Furqan v15 unified dark appearance, inspired by supplied One Design System image */
html[data-theme="dark"]{--bg:#111214!important;--surface:#1b1d1f!important;--surface-2:#242628!important;--text:#fff!important;--muted:#bac2c7!important;--border:#353a3d!important;--sidebar:#161819!important;--sidebar-hover:#2a2d30!important;color-scheme:dark}
html[data-theme="dark"] body,html[data-theme="dark"] .main,html[data-theme="dark"] .shell,html[data-theme="dark"] .page{background:#111214!important;color:#fff!important}
html[data-theme="dark"] .df-nav,html[data-theme="dark"] .df-nav-bottom{background:#17191b!important;border-color:#383c3f!important}
html[data-theme="dark"] .df-panel,html[data-theme="dark"] .df-feature-panel,html[data-theme="dark"] .df-table-wrap,html[data-theme="dark"] .df-modal,html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .fc-panel,html[data-theme="dark"] .modal-box,html[data-theme="dark"] .modal-content,html[data-theme="dark"] .modal-card{background:#1d2021!important;color:#fff!important;border-color:#383d40!important;box-shadow:0 18px 44px rgba(0,0,0,.20)!important}
html[data-theme="dark"] .df-panel h1,html[data-theme="dark"] .df-panel h2,html[data-theme="dark"] .df-panel h3,html[data-theme="dark"] .df-feature-panel h1,html[data-theme="dark"] .df-feature-panel h2,html[data-theme="dark"] .df-feature-panel h3,html[data-theme="dark"] .df-table-wrap td,html[data-theme="dark"] .df-table-wrap strong,html[data-theme="dark"] .df-table-wrap th,html[data-theme="dark"] .df-nav strong,html[data-theme="dark"] .df-top-title strong,html[data-theme="dark"] .df-top-icon i{color:#fff!important;opacity:1!important}
html[data-theme="dark"] .df-table-wrap tbody tr,html[data-theme="dark"] .df-table tbody tr,html[data-theme="dark"] table tbody tr{background:#1d2021!important;border-color:#33383a!important}
html[data-theme="dark"] .df-table-wrap tbody tr:nth-child(even),html[data-theme="dark"] table tbody tr:nth-child(even){background:#202324!important}
html[data-theme="dark"] .df-table-wrap tbody tr:hover,html[data-theme="dark"] table tbody tr:hover{background:#292d2e!important}
html[data-theme="dark"] .df-table-wrap td small,html[data-theme="dark"] .df-panel small,html[data-theme="dark"] .df-feature-panel small,html[data-theme="dark"] .df-table-wrap .sub,html[data-theme="dark"] .df-feature-panel .sub{color:#c2c9cc!important}
html[data-theme="dark"] .df-top-actions .df-top-icon,html[data-theme="dark"] .df-top-actions .df-user{background:#292d2f!important;color:#fff!important;border:1px solid #464d50!important}
html[data-theme="dark"] .df-feature-panel button:not(.paid):not(.df-primary):not(.df-action-paid),html[data-theme="dark"] .df-table-wrap button:not(.paid):not(.df-primary):not(.df-action-paid){color:#fff!important;border-color:#464c50!important}
html[data-theme="dark"] .df-dialog,html[data-theme="dark"] .modal-content{background:rgba(29,31,33,.97)!important;color:#fff!important;border-color:#464b4e!important}
/* One consistent backdrop for payment + legacy admin dialogs */
.modal-overlay,.overlay,.modal-backdrop,.df-modal-backdrop,[class*="modal-overlay"],.df-dialog-layer{backdrop-filter:blur(11px) saturate(115%)!important;-webkit-backdrop-filter:blur(11px) saturate(115%)!important;background-color:rgba(8,12,15,.53)!important}
.df-top-actions{display:flex!important;align-items:center!important;gap:8px!important}
.df-top-actions>.df-top-icon,.df-top-actions>.df-user{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-radius:13px!important;line-height:1!important;box-sizing:border-box!important}
.df-top-actions>.df-top-icon i{font-size:15px!important;line-height:1!important;display:block!important;margin:0!important}
.df-appearance-top{transition:background .24s,border-color .24s,transform .22s!important}
.df-appearance-top:active{transform:scale(.91)}
.df-theme-control,#dfAdminThemeBtn{display:none!important}
html[data-theme="dark"] .df-nav .nav-item{color:#f4f5f6!important}
html[data-theme="dark"] .df-nav .nav-item i{color:#cbd0d3!important;opacity:1!important}
html[data-theme="dark"] .df-nav .nav-item.active{background:#233b39!important;color:#72ddd4!important}
html[data-theme="dark"] .df-nav .nav-item.active i{color:#70dad1!important}
/* Keep light theme untouched except blur and topbar alignment */
/* Correct actual application modal layer classes used by darul-admin.js */
.df-modal-bg,.df-feature-modal,.df-search-backdrop,.df-drawer-bg{
 background:rgba(8,12,15,.44)!important;
 backdrop-filter:blur(13px) saturate(115%)!important;
 -webkit-backdrop-filter:blur(13px) saturate(115%)!important;
}
.df-modal{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(25px)!important;-webkit-backdrop-filter:blur(25px)!important;box-shadow:0 28px 80px rgba(5,12,17,.22)!important}
html[data-theme="dark"] .df-modal,html[data-theme="dark"] .df-search-box,html[data-theme="dark"] .df-feature-panel{
 background:rgba(28,30,32,.97)!important;color:#fff!important;border:1px solid #43494b!important;
 box-shadow:0 28px 75px rgba(0,0,0,.48)!important;
}
html[data-theme="dark"] .df-modal .df-title,html[data-theme="dark"] .df-modal h2,html[data-theme="dark"] .df-modal strong,html[data-theme="dark"] .df-feature-panel strong{color:#fff!important}
html[data-theme="dark"] .df-modal .df-subtitle,html[data-theme="dark"] .df-modal p{color:#c9ced1!important}
html[data-theme="dark"] .df-table td,html[data-theme="dark"] .df-table td strong,html[data-theme="dark"] .df-table tr,html[data-theme="dark"] .df-table th{color:#fff!important}
html[data-theme="dark"] .df-table th{background:#25282a!important}
html[data-theme="dark"] .df-table tr:hover td{background:#292e2f!important}
html[data-theme="dark"] .df-linkbtn{background:#2c3032!important;color:#fff!important;border-color:#454b4d!important}
html[data-theme="dark"] .df-search-hit{background:#212426!important;color:#fff!important;border-color:#383e40!important}
html[data-theme="dark"] .df-search-hit:hover{background:#2b3032!important}
