/* ==========================================================================
   AWESOME CAR RENTAL - MAIN ADMIN LAYOUT & SIDEBAR STYLESHEET
   Location: assets/css/admin/admin-main-layout.css
   Covers: Full-width transitions, WordPress menu toggle, accordion sidebar navigation, and main viewport
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE WRAPPERS
   -------------------------------------------------------------------------- */
.awesome-car-rental,
.awesome-car-rental *,
.awesome-car-rental *::before,
.awesome-car-rental *::after {
  box-sizing: border-box;
}

/* Smooth Full Width Transitions */
#wpcontent, #adminmenumain, #adminmenuwrap {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full Width State Overrides */
#wpwrap.acrb-fullwidth-active #adminmenumain {
  display: none !important;
  width: 0 !important;
}

#wpwrap.acrb-fullwidth-active #wpcontent {
  margin-left: 0 !important;
  padding-left: 18px !important;
}

/* Layout Structure */
.awesome-car-rental {
  margin: 16px 20px 24px 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #0f172a;
}

.acrb-layout-body {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  min-height: 820px;
}

/* --------------------------------------------------------------------------
   2. SIDEBAR COMPONENT
   -------------------------------------------------------------------------- */
.afd-sidebar-container {
  width: 260px;
  min-width: 260px;
  background: #ffffff;
  color: #0f172a;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.afd-sidebar-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.afd-sidebar-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afd-sidebar-hero-icon {
  width: 38px;
  height: 38px;
  background: #4f46e5;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.afd-sidebar-hero-icon .dashicons {
  font-size: 19px;
  width: 19px;
  height: 19px;
}

.afd-sidebar-hero-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.afd-sidebar-hero-meta span {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

/* WP Menu Fullscreen Toggle Button */
.acrb-menu-toggle-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.acrb-menu-toggle-btn:hover {
  background: #f1f5f9;
  color: #4f46e5;
  border-color: #94a3b8;
}

.acrb-menu-toggle-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   3. SIDEBAR ACCORDION NAVIGATION
   -------------------------------------------------------------------------- */
.afd-sidebar-group {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
}

.afd-accordion-group {
  margin-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.afd-accordion-group:last-child {
  border-bottom: none;
}

.afd-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.afd-accordion-header:hover {
  color: #0f172a;
}

.afd-accordion-content {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.afd-accordion-group.open .afd-accordion-content {
  display: block;
}

.afd-accordion-toggle-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.afd-accordion-group.open .afd-accordion-toggle-icon {
  transform: rotate(180deg);
  color: #4f46e5;
}

.afd-left-tabs a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.afd-left-tabs a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.afd-left-tabs a.active {
  background: #4f46e5;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.afd-tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.afd-tab-icon-wrap .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
  color: inherit;
}

/* --------------------------------------------------------------------------
   4. MAIN VIEWPORT & RIGHT CONTENT BOX
   -------------------------------------------------------------------------- */
.acrb-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fafbfc;
}

.afd-right-box {
  padding: 24px 28px;
  flex: 1;
}