@import "tailwindcss/theme";
@import "tailwindcss/utilities";

@source "../../admin/**/*.php";
@source "../../includes/**/*.php";
@source "../../assets/**/*.js";


/* ─── WP chrome removal ─────────────────────────────────────────────────── */
/* This file is enqueued only on AFB admin pages, so rules are unscoped.     */

html.wp-toolbar { padding-top: 0 !important; }

#wpadminbar             { display: none !important; }
#adminmenuback,
#adminmenumain,
#adminmenuwrap          { display: none !important; }
#wpcontent,
#wpfooter               { margin-left: 0 !important; }
#wpcontent              { padding-left: 0 !important; }
#wpbody                 { padding-top: 0 !important; }
#wpbody-content         { padding-bottom: 0 !important; }
#wpfooter               { display: none !important; }
.notice,
.update-nag,
.update-message,
.updated                { display: none !important; }
#wpbody-content > .wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; }
#wpwrap                 { background: #f8fafc; }

/* ─── Shell layout ───────────────────────────────────────────────────────── */

.afb .afb-sidebar { width: 280px; }
.afb .afb-main    { padding-left: 280px; }

/* Sidebar nav links should not show default underlines. */
.afb .afb-sidebar a,
.afb .afb-sidebar a:hover,
.afb .afb-sidebar a:focus {
  text-decoration: none;
}

/* ─── Collapsed state ────────────────────────────────────────────────────── */

#afb-admin-app.afb-collapsed .afb-sidebar { width: 76px; }
#afb-admin-app.afb-collapsed .afb-main    { padding-left: 76px; }

#afb-admin-app.afb-collapsed .afb-brand-text,
#afb-admin-app.afb-collapsed .afb-nav-label { display: none; }

#afb-admin-app.afb-collapsed .afb-nav-link {
  justify-content: center;
  padding-left:  0.5rem;
  padding-right: 0.5rem;
}

#afb-admin-app.afb-collapsed .afb-sidebar-footer-inner {
  padding-left:  0.5rem;
  padding-right: 0.5rem;
}

#afb-admin-app.afb-collapsed .afb-sidebar-header {
  padding-left:  0.5rem;
  padding-right: 0.5rem;
}

#afb-admin-app.afb-collapsed .afb-sidebar-header-inner {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

#afb-admin-app.afb-collapsed .afb-brand {
  width: 100%;
  justify-content: center;
}
