/* ================================
   THEME MODES (GLOBAL)
================================ */

/* Default (Fallback = light) */
:root {
    --mhacc-primary: #4a36e9;
}

/* Light Mode */
html.light,
body.light {
    --mhacc-primary: #4a36e9;

    background-color: #ffffff;
    color: #1d1d1d;
}

/* Dark Mode */
html.dark,
body.dark {
    --mhacc-primary: #7c86ff;
    
    background-color: #12181e;
    color: #f5f5f5;
}

/* ================================
   WRAP / BOXED
================================ */

body.light .boxed {
    background-color: #ffffff;
    color: #1d1d1d;
}

body.dark .boxed {
    background-color: #161e25;
    color: #f5f5f5;
}

.light {
    background-color: #f3f5fa;
    color: #1d1d1d;
}

.dark {
    background-color: #12181e;
    color: #f5f5f5;
}

.dark .form-wrap p,
.dark p.description {
    color: #adb5c2;
}


.dark .notice, 
.dark div.error, 
.dark div.updated {
background-color: #161e25;
}

/* ================================
   TYPOGRAPHY
================================ */

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark .form-table th,
body.dark .form-wrap label {
    color: #f5f5f5;
}

/*
body.dark p {
    color:#dddddd;
}
*/
/* ================================
   NAV / BUTTONS
================================ */

body.dark .mhacc-nav-item,
body.dark button {
    color: #ffffff;
}

body.dark .mhacc-nav-item:hover {
    background: #1c2732;
}

.mhacc-nav {
    display: flex;
    gap: 12px;
}
.mhacc-nav-item {
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 6px;
    background: transparent;
    font-weight: 500;
    color: #1d2327;
}

.mhacc-nav-item:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.mhacc-nav-item.is-active {
    background: var(--mhacc-primary);
    color: #ffffff;
}

.wp-core-ui .button-primary {
    background: var(--mhacc-primary);
    border-color: var(--mhacc-primary);
}

.wp-core-ui .button-primary:focus {
    background: var(--mhacc-primary);
    border-color: var(--mhacc-primary);
}

@keyframes triggerPulse {
    0% {
        box-shadow: 0 0 0 0 #7c86ff90;
    }

    70% {
        box-shadow: 0 0 0 14px #7c86ff00;
    }

    100% {
        box-shadow: 0 0 0 0 #7c86ff00;
    }
}



.wp-core-ui .button-primary:hover {
    background: var(--mhacc-primary);
    border-color: var(--mhacc-primary);
    transition: transform 0.3s ease;
    animation: triggerPulse 1.8s;
}

#footer-thankyou a {
    color: var(--mhacc-primary);
    text-decoration: none;
}
/* ================================
   DROPDOWN
================================ */

body.dark .mhacc-dropdown {
    background-color: #161e25;
    color: #f5f5f5;
}

/* ================================
   FORMS
================================ */

body.dark input[type="color"],
body.dark input[type="date"],
body.dark input[type="datetime-local"],
body.dark input[type="datetime"],
body.dark input[type="email"],
body.dark input[type="month"],
body.dark input[type="number"],
body.dark input[type="password"],
body.dark input[type="search"],
body.dark input[type="tel"],
body.dark input[type="text"],
body.dark input[type="time"],
body.dark input[type="url"],
body.dark input[type="week"],
body.dark select,
body.dark textarea,
body.dark input:disabled,
body.dark select:disabled,
body.dark textarea:disabled {
    border: 1px solid #8c8f94;
    background-color: #1c2732;
    color: #adb5c2;
}
body.dark select:disabled {
    text-shadow: none;
}

/* ================================
   HEADER
================================ */

.mhacc-header {
    padding: 14px 20px;
    position: fixed;
    top: 32px;
    width: calc(100% - 202px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.09);
    z-index: 1;
    backdrop-filter: blur(5px);
}
@media (max-width: 960px) {
    .mhacc-header {
        width: calc(100% - 75px);
    }
}
@media (max-width: 782px) {
    .mhacc-header {
        top:46px;
        width: calc(100% - 40px);
    }
    .auto-fold #wpcontent {
        padding-left: 0;
    }    
    .mhacc-nav {
        gap: 0px;
    }
}

body.dark .mhacc-header {
    background-color: #161e25f0;
}

body.light .mhacc-header {
    background-color: #fffffff0;
}

.mhacc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mhacc-header-inner-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mhacc-logo {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mhacc-logo svg {
    color: var(--mhacc-primary);
    width: 40px;
    height: 40px;
}







/* ================================
   THEME SWITCHER
================================ */

.mhacc-theme-switcher {
  display: flex;
  align-items: center;
  position: relative;
  gap:6px;
}

.mhacc-theme-switcher button {
    padding: 5px 10px;
    cursor: pointer;
    background: transparent;
    border: none;
}


#mhacc_getpro {
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 6px;
    background: var(--mhacc-primary);
    font-weight: 500;
    color: #ffffff;
}











/* ================================
   DROPDOWN
================================ */
.mhacc-dropdown {
    display: none;
    position: absolute;
    left: 0px;
    top:36px;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    background-color: var(--mhacc-dropdown-bg, #fff);
    color: var(--mhacc-dropdown-color, #1d1d1d);
}

body.dark .mhacc-dropdown {
    --mhacc-dropdown-bg: #161e25;
    --mhacc-dropdown-color: #f5f5f5;
}

/* ================================
   BOXED ELEMENTS
================================ */
.boxed {
    padding: 10px 18px;
    border-radius: 15px;
}

/* ================================
   WRAPPER & LAYOUT
================================ */
#wpcontent {
    padding-left: 0;
}

#wpbody-content > .wrap {
    padding: 20px;
    margin: 0;
    min-height: calc(100dvh - 192px);
    gap: 20px;
    display: flex;
    flex-direction: column;
    padding-top: 88px;
    background-color: #f3f5fa;
}

.dark #wpbody-content > .wrap {
  background: #12181e;
}

.container_medium {
    align-self: center;
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

/* ================================
   SETTINGS
================================ */
.form-table th {
    width: 300px;
}

.mhacc-group.boxed {
    margin-bottom: 20px;
}

.mhacc-be-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-badge {
    background: var(--mhacc-primary);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.mhacc-icon {
    color: var(--mhacc-primary);
}

.mhacc-icon svg {
    width: 30px;
    height: 30px;
}

.option_label {
    padding: 0;
    margin: 0;
}

/* ================================
   TOGGLE SWITCH
================================ */
.mhacc-toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

/* Input unsichtbar */
.mhacc-toggle-input {
    opacity: 0 !important;
    width: 0;
    height: 0;
}

/* Slider */
.mhacc-toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #cfd4dc;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Knopf */
.mhacc-toggle-slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

/* Aktiv */
.mhacc-toggle-input:checked + .mhacc-toggle-slider {
    background-color: var(--mhacc-primary);
}

.mhacc-toggle-input:checked + .mhacc-toggle-slider::before {
    transform: translateX(16px);
}

/* Disabled */
.mhacc-toggle-input:disabled + .mhacc-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.wp-core-ui select.disabled,
.wp-core-ui select:disabled {
    cursor: not-allowed;
}

/* ================================
   ICON RADIOS
================================ */
.mhacc-icon-radios {
    display: flex;
    gap: 12px;
}

.mhacc-icon-radio {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mhacc-icon-radio input {
    display: none;
}

.mhacc-icon-radio-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Aktiv/Checked */
.mhacc-icon-radio input:checked + .mhacc-icon-radio-icon {
    background: rgba(74, 54, 233, 0.1);
}

/* Rahmen aktiv */
.mhacc-icon-radio:has(input:checked) {
    border-color: var(--mhacc-primary);
}





























/* ================================
   ICON RADIOS & DISABLED
================================ */
.mhacc-icon-radio.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mhacc-icon-radio .pro-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
}

/* Aktiv / Checked */
.mhacc-icon-radio input:checked + .mhacc-icon-radio-icon {
    background: rgba(74, 54, 233, 0.1);
}

/* Rahmen aktiv */
.mhacc-icon-radio:has(input:checked) {
    border-color: var(--mhacc-primary);
}

/* ================================
   POSITION FIELD
================================ */
.mhacc-position-field {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mhacc-position-field .mhacc-position-number {
    width: 60px;
}

/* ================================
   COLOR PICKERS
================================ */
.mhacc-color-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mhacc-color-options {
    display: flex;
    gap: 8px;
}

.mhacc-color-swatch {
    cursor: pointer;
}

.mhacc-color-swatch input {
    display: none;
}

.mhacc-color-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
    display: block;
}

.mhacc-color-swatch input:checked + .mhacc-color-circle {
    border-color: var(--mhacc-primary);
    box-shadow: 0 0 0 3px rgba(74, 54, 233, 0.25);
}

.mhacc-color-input {
    width: 90px;
    font-family: monospace;
    text-transform: uppercase;
}

.mhacc-color-picker {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

/* ================================
   TWO COLUMN LAYOUT & SETTINGS PANEL
================================ */
.two_col_wrap,
#mhacc_settings_wrap {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 400px;
}

@media (max-width: 1100px) {
    .two_col_wrap,
    #mhacc_settings_wrap {
        display: flex;
        flex-direction: column;
    }
}

/* Sticky panel */
.two_col_wrap .sticky {
    position: sticky;
    top: 120px;
    border-radius: 15px;
}



/* Accent border for sticky panel */
.two_col_wrap .sticky.info {
    border-left: 4px solid var(--mhacc-primary);
    border-radius: 0;
}

/* Body content padding */
#wpbody-content {
    padding-bottom: 0;
}














.two_col_wrap.module_wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns:  300px 1fr;
}
.module_wrap_right_item {
    display: none;
}

.module_wrap_right_item.active {
    display: block;
}
.module_wrap .mhacc-group.boxed.sticky {
  border: none;
  border-radius: 15px;
}

#module_wrap_left a {
  color: #000;
  text-decoration: none;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
  background: #eee;
  border-radius: 10px;
}

body.dark #module_wrap_left a {
  background: #1c2732;
  color:#ffffff;
}

body #module_wrap_left a:hover,
body #module_wrap_left a.active {
    background: #4a36e9;
    color: #ffffff;
}



/* Container optional grid */
.mhacc_modules_wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

/* Card */
.mhaccw-advanced-module-box.mhacc-group.boxed {
  margin-bottom: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mhaccw-advanced-module-box:hover {
    border-color: #d0d5dd;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Header */
.mhaccw-advanced-module-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.mhaccw-advanced-module-header .mhaccw-right h5 {
    margin-bottom:0;
}
/* Icon Wrapper */

.mhaccw-icon svg {
    width: 36px;
    height: 36px;
    color: #4f46e5;
}

.dark .mhaccw-icon svg {
  color: #7c86ff;
}

.mhaccw-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Text area */
.mhaccw-right h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.mhaccw-right p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}


/* Footer */
.mhaccw-advanced-module-footer {
    margin-top: 18px;
}

/* Pro Button */
.mhaccw-pro-btn {
    display: inline-block;
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mhaccw-pro-btn:hover {
    color:#ffffff;
}

/* Installed Badge */
.mhaccw_addon_installed {
    background: #ecfdf5;
    color: #065f46;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 500;
}

.mhaccw_addon_installed.comming_soon {
    background: #fef2f2;
    color: #991b1b;
}


/* Footer top alignment */
.mhaccw-advanced-module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Learn More Link */
.mhaccw-learn-more-btn {
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}


.dark .mhaccw-learn-more-btn {
    color: #7c86ff;
}
.light .mhaccw-learn-more-btn {
    color: #4a36e9;
}

.dark .mhaccw-pro-btn {
    background-color: #7c86ff;
}
.light .mhaccw-pro-btn {
    background-color: #4a36e9;
}






/* ================================
   WIDGET DESIGNER TRIGGER
================================ */
#mhacc-trigger {
    border:none;
    display: block;
    padding:0;
    background:var(--mhacc_primarycolor);
    color:var(--mhacc_fontcolor);

}
#mhacc-trigger[data-style="style_1"] {
  border-radius: 50%;
}
#mhacc-trigger[data-style="style_2"] {
  border-radius: 10px;
}
#mhacc-trigger[data-style="style_3"] {
  border-radius: 0;
}

#mhacc-trigger[data-size="large"] {
  width: 4.5rem;
  height: 4.5rem;
}
#mhacc-trigger[data-size="medium"] {
  width: 3.5rem;
  height: 3.5rem;
}
#mhacc-trigger[data-size="small"] {
  width: 2.5rem;
  height: 2.5rem;
}



#mhacc-trigger[data-positionx="right"] {
  margin-left: auto;
}


#mhacc-panel *, 
#mhacc-trigger * {
  box-sizing: border-box;
  line-height: 1;
}
#mhacc-trigger[data-size="small"] svg {
  padding: 6px;
}
#mhacc-trigger[data-size="medium"] svg {
  padding: 10px;
}
#mhacc-trigger[data-size="large"] svg {
  padding: 12px;
}
#mhacc-trigger svg {
  height: 100%;
  width: 100%;
}


#mhacc-panel[data-active="1"] {
    opacity:1;
}

#mhacc-panel[data-active="0"] {
    opacity:0.5;
}



/* ================================
   WIDGET DESIGNER PANEL
================================ */

#mhacc-panel {
    border-radius: var(--mhacc_border_radius);
    height:calc(100vh - 270px);

    font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


#mhacc-panel[data-mode="light"] {
  background-color: #fff;
}
#mhacc-panel[data-mode="dark"] {
  background-color: #202020;
}

#mhacc-panel button {
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 400;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

#mhacc-panel-header {
    padding: 20px;
    padding-bottom: 20px;
    padding-bottom: 6.5rem;
    background: var(--mhacc_primarycolor);
    color: var(--mhacc_fontcolor);

    font-size: 15px;
    font-weight: 600;
}



  

#mhacc-panel-features {
  overflow-y: auto;
  margin-top: -5.5rem;
}
.mhacc-panel-group {
  margin: 20px;
  padding: 20px;
  box-shadow: -5px 0 20px rgb(0 0 0 / .2);
  border-top: 3px solid var(--mhacc_primarycolor);
  border-radius: var(--mhacc_border_radius);
}
#mhacc-panel[data-mode="dark"] #mhacc-panel-features .mhacc-panel-group, 
#mhacc-panel[data-mode="dark"] #mhacc-panel-page-structure .mhacc-panel-group {
  background-color: #333333;
  color: #ffffff;
}
#mhacc-panel[data-mode="light"] #mhacc-panel-features .mhacc-panel-group, 
#mhacc-panel[data-mode="light"] #mhacc-panel-page-structure .mhacc-panel-group {
  background-color: #ffffff;
  color: #333333;
}

#mhacc-panel[data-mode="light"] .mhacc-ps-tab-btn, 
#mhacc-panel[data-mode="light"] #mhacc-panel-features .mhacc-panel-group .mhacc-btn-icon, 
#mhacc-panel[data-mode="light"] #mhacc-panel-features .mhacc-panel-group .mhacc-btn-label {
  color: #333333;
}
#mhacc-panel[data-mode="dark"] .mhacc-ps-tab-btn, 
#mhacc-panel[data-mode="dark"] #mhacc-panel-features .mhacc-panel-group .mhacc-btn-icon, 
#mhacc-panel[data-mode="dark"] #mhacc-panel-features .mhacc-panel-group .mhacc-btn-label {
  color: #ffffff;
}

.mhacc-group-title {
  font-size: 1.2rem;
  font-weight: bolder;
  display: block;
  margin:0;
  margin-bottom: .3rem;
}
.mhacc-group-description {
  font-size: .8rem;
  font-weight: inherit;
  display: block;
  margin-bottom: 8px;
}




#mhacc-panel[data-style="style_1"] .mhacc-panel-group-features {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  padding-top: 10px;
}

#mhacc-panel .mhacc-ps-tab-btn, 
#mhacc-panel .mhacc-feature-btn, 
#mhacc-panel .mhacc-feature-btn-select {
  background: #fff0;
  border: none;
}

#mhacc-panel[data-style="style_1"][data-mode="dark"] .mhacc-feature-btn-slider, 
#mhacc-panel[data-style="style_1"][data-mode="dark"] .mhacc-feature-btn-select, 
#mhacc-panel[data-style="style_1"][data-mode="dark"] .mhacc-feature-btn {
  border: 1px solid #555;
}
#mhacc-panel[data-style="style_1"][data-mode="light"] .mhacc-feature-btn-slider, 
#mhacc-panel[data-style="style_1"][data-mode="light"] .mhacc-feature-btn-select, 
#mhacc-panel[data-style="style_1"][data-mode="light"] .mhacc-feature-btn {
  border: 1px solid #e6e6e6;
}
#mhacc-panel[data-style="style_1"] .mhacc-feature-btn-slider, 
#mhacc-panel[data-style="style_1"] .mhacc-feature-btn-select, 
#mhacc-panel[data-style="style_1"] .mhacc-feature-btn {
  padding: .5rem 0rem;
  min-height: 100px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#mhacc-panel[data-style="style_2"] .mhacc-feature-btn {
  padding: 1rem 0rem;
  width: 100%;
  border-bottom: 1px solid #eee;
  display: grid;
  grid-template-columns: 40px 1fr 120px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}


.fake-toggle {
  appearance: none;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  position: relative;
  padding: 3px;
  border: 1px solid;
  display: flex;
  justify-self: end;
  background: #eee;
  border-color: #bbb;
}
.fake-toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}
#mhacc-panel[data-mode="dark"] .fake-toggle {
  background: #333;
  border-color: #555;
}
#mhacc-panel[data-style="style_1"] .fake-toggle {
  display: none;
}

#mhacc-panel[data-mode="dark"][data-style="style_2"] .mhacc-feature-btn, 
#mhacc-panel[data-mode="dark"][data-style="style_2"] .mhacc-feature-btn-select, 
#mhacc-panel[data-mode="dark"][data-style="style_2"] .mhacc-feature-btn-slider {
  border-bottom: 1px solid #555;
}


#mhacc-panel[data-style="style_1"] .mhacc-feature-btn-slider .mhacc-btn-icon svg, 
#mhacc-panel[data-style="style_1"] .mhacc-feature-btn-select .mhacc-btn-icon svg, 
#mhacc-panel[data-style="style_1"] .mhacc-feature-btn .mhacc-btn-icon svg {
  height: 1.6rem;
  width: 1.6rem;
}
#mhacc-panel[data-style="style_2"] .mhacc-feature-btn .mhacc-btn-icon svg, 
#mhacc-panel[data-style="style_2"] .mhacc-feature-btn-slider .mhacc-btn-icon svg, 
#mhacc-panel[data-style="style_2"] .mhacc-feature-btn-select .mhacc-btn-icon svg {
  height: 1.4rem;
  width: 1.4rem;
}








#mhacc-misc-wrap {
  margin: 20px;
}
#mhacc-misc {
  background: var(--mhacc_primarycolor);
  color: var(--mhacc_fontcolor);
  padding: 10px;
  width: 100%;
  border: none;
}
#mhacc-panel-footer-last {
  background: var(--mhacc_primarycolor);
  color: var(--mhacc_fontcolor);
  padding: 12px 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

#mhacc-panel-footer-last a {
  color: var(--mhacc_fontcolor);
  text-decoration: none;
}