/* CSS Variables */
:root {
  /* Brand Colors */
  --kodeks-dark-green: #0e3430;
  --kodeks-medium-green: #126159;
  --kodeks-light-green: #398e85;
  --kodeks-bright-green: #e0eeee;
  --kodeks-gradient-start: #208d83;
  --kodeks-gradient-end: #08211f;
  --kodeks-separator-green: #234c48;
  --wp-admin-theme-color: #163b38;

  /* Admin Colors */
  --admin-bg-dark: #163b38;
  --admin-bg-medium: #08211f;
  --admin-bg-light: #0f433f;

  /* UI Colors */
  --white: #fff;
  --cyan: #33dccd;
  --gray-light: #ccc;
  --gray-medium: #6b7280;
  --gray-dark: #374151;
  --gray-text: #4b5563;
  --gray-text-dark: #1d2327;
  --gray-border: #e5e7eb;
  --gray-border-medium: #d1d5db;
  --gray-bg-light: #f8f9fa;
  --gray-bg-lighter: #f3f4f6;
  --blue-light: #f0f9ff;

  /* Status Colors */
  --success: #4ade80;
  --warning: #ecba3d;
  --error: #ef4444;
  --teal: #163b38!important;
}

#wp-admin-bar-wp-logo {
  display:none;
}

.dashboard-main-content h2 {
  font-weight: 600!important;
}

.dashboard-main-content h4 {
  font-weight: 600!important;
  font-size: 20px!important;
}
#adminmenuback,
#adminmenuwrap,
#adminmenu {
  background-color: var(--admin-bg-dark);
}

#wpadminbar,
#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,
.no-js li.wp-has-current-submenu:hover .wp-submenu,
#adminmenu .wp-submenu,
.folded #adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
#adminmenu .wp-menu-arrow,
#adminmenu .wp-menu-arrow div,
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
.folded #adminmenu li.current.menu-top,
.folded #adminmenu li.wp-has-current-submenu,
.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu,
#adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu {
  background-color: var(--admin-bg-medium);
}

#adminmenu li.menu-top:hover,
#adminmenu li.opensub>a.menu-top,
#adminmenu li>a.menu-top:focus,
#adminmenu .wp-submenu a:focus,
#adminmenu .wp-submenu a:hover,
#adminmenu a:hover,
#adminmenu li.menu-top>a:focus {
  background-color: var(--kodeks-dark-green);
  color: var(--white);
}

#adminmenu li a:focus div.wp-menu-image:before,
#adminmenu li.opensub div.wp-menu-image:before,
#adminmenu li:hover div.wp-menu-image:before,
#adminmenu .wp-has-current-submenu ul>li>a,
.folded #adminmenu li.menu-top .wp-submenu>li>a,
#adminmenu .wp-submenu a {
  color: var(--white);
}

#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
  border-right-color: var(--white);
}

#adminmenu li.wp-menu-separator .separator {
  background-color: var(--kodeks-separator-green);
  width: 90%;
  height: 1px;
  margin: 8px auto 8px;
}

#collapse-button,
#collapse-button:hover,
#collapse-button:hover {
  color: var(--cyan);
  margin-top: 40px;
}

/* General WP styles  */

tr.user-admin-color-wrap,
#wp-admin-bar-w3tc_feature_showcase,
.wp-mail-smtp-upgrade-license-banner {
  display: none;
}

.wp-admin a,
.wp-core-ui .button-link,
.components-button.is-link,
.components-button.is-tertiary,
.view-switch a.current::before {
  color: var(--kodeks-medium-green);
}

input[type="radio"]:checked::before {
  color: var(--kodeks-dark-green);
  background-color: var(--kodeks-dark-green);
}

input[type="checkbox"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus, input[type="datetime"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="radio"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, select:focus, textarea:focus {
  border-color: var(--kodeks-dark-green);
  box-shadow: 0 0 0 1px var(--kodeks-dark-green);
}
/* .wp-admin #wpbody a:hover,
.wp-core-ui #wpbody .button-link:hover {
  color: var(--kodeks-dark-green);
} */

.components-button.is-primary {
  background: var(--kodeks-medium-green);
  color: var(--white) ;
  border: 1px solid var(--kodeks-dark-green);
}

.components-button.is-tertiary:hover:not(:disabled, [aria-disabled="true"], .is-pressed),
#contextual-help-back,
.contextual-help-tabs .active {
  background: var(--kodeks-bright-green);
}

.contextual-help-tabs .active {
  border-color: var(--kodeks-dark-green);
}

.components-button.is-primary:hover:not(:disabled) {
  background: var(--kodeks-dark-green);
  color: var(--white);
  border: 1px solid var(--kodeks-dark-green);
}

.wrap .add-new-h2, .wrap .add-new-h2:active, 
.wrap .page-title-action, .wrap .page-title-action:active {
  border: 1px solid var(--kodeks-medium-green);/* color: var(--kodeks-medium-green); */
}

.wp-core-ui .button {
  border-color: var(--kodeks-medium-green);
  color: var(--kodeks-medium-green);
}

.wp-core-ui .button:hover {
  border-color: var(--kodeks-dark-green);
  color: var(--kodeks-dark-green);  
}

.wp-core-ui .button-primary {
  color: var(--white);
  background-color: var(--kodeks-medium-green);
}

.wp-admin #wpbody a.button-primary:hover {
  color: var(--white);
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:active {
  background-color: var(--kodeks-dark-green);
  border-color: var(--kodeks-dark-green);
  color: var(--white);
}

.wp-core-ui .button-primary:focus {
  box-shadow: 0 0 0 1px #fff,0 0 0 3px var(--kodeks-dark-green);
  background-color: var(--kodeks-dark-green);
  border-color: var(--kodeks-dark-green);
}

.wp-core-ui .button-secondary:hover {
  background-color: var(--kodeks-dark-green);
}

.wrap .add-new-h2, .wrap .add-new-h2:active, .wrap .page-title-action, .wrap .page-title-action:active,
.wrap .add-new-h2:hover, .wrap .page-title-action:hover {
  color: var(--kodeks-medium-green);
}


#wpadminbar .ab-top-menu>li.hover>.ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,
#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus,
#wpadminbar .menupop .ab-sub-wrapper,
#wpadminbar .shortlink-input,
#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,
#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label,
#wpadminbar>#wp-toolbar li.hover span.ab-label,
#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,
#wpadminbar .quicklinks .menupop ul li a:focus,
#wpadminbar .quicklinks .menupop ul li a:focus strong,
#wpadminbar .quicklinks .menupop ul li a:hover,
#wpadminbar .quicklinks .menupop ul li a:hover strong,
#wpadminbar .quicklinks .menupop.hover ul li a:focus,
#wpadminbar .quicklinks .menupop.hover ul li a:hover,
#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,
#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,
#wpadminbar li #adminbarsearch.adminbar-focused:before,
#wpadminbar li .ab-item:focus .ab-icon:before,
#wpadminbar li .ab-item:focus:before,
#wpadminbar li a:focus .ab-icon:before,
#wpadminbar li.hover .ab-icon:before,
#wpadminbar li.hover .ab-item:before,
#wpadminbar li:hover #adminbarsearch:before,
#wpadminbar li:hover .ab-icon:before,
#wpadminbar li:hover .ab-item:before,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover {
  background-color: var(--admin-bg-dark);
  color: var(--white) !important;
}

#dashboard-widgets-wrap {
  width:100%
}

#dashboard-widgets-wrap .postbox {
  border:none;
  box-shadow: none;
  background:none;
}

#dashboard-widgets-wrap .empty-container {
  display: none !important;
}

#dashboard-widgets-wrap .postbox>*:nth-child(-n+2).postbox-header {
  display: none !important;
}

#dashboard-widgets-wrap .postbox .inside {
  margin: 30px 20px;
}

/* Specific overrides for our full-width dashboard widget */
#dashboard-widgets-wrap #dashboard_welcome {
  width: 100% !important;
  margin: 0 -20px !important;
  max-width: none !important;
}

#dashboard-widgets-wrap #dashboard_welcome .inside {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Ensure full width across all dashboard containers */
/* .metabox-holder .postbox-container {
  width: 100% !important;
}

.metabox-holder .postbox-container .meta-box-sortables {
  width: 100% !important;
} */

#dashboard-widgets .postbox-container {
  width: 100% !important;
}

#dashboard-widgets .postbox-container .meta-box-sortables {
  width: 100% !important;
}

.postbox .inside {
  margin: 0;
}

.postbox .inside>h1:first-child {
  padding-top: 0;
}

.postbox .inside>h2:first-child {
  padding-top: 0;
}

.postbox .inside .acf-flexible-content > .acf-actions.acf-fc-top-actions button.acf-btn-clear {
  color: var(--kodeks-medium-green)!important;
}

.postbox .inside p {
  font-size: 15px;
}

.postbox .inside a {
  color: var(--kodeks-dark-green);
}

.postbox .inside a.acf-icon.dark {
  color: var(--kodeks-bright-green);
}

.postbox .inside a.acf-icon.dark:hover {
  color: var(--white);
}

.postbox .inside a:hover {
  color: var(--kodeks-dark-green);
  
}

body.index-php #wpbody-content .wrap>h1 {
  display: none !important;
}

/* #wpcontent,
#wpfooter {
  padding-left: 30px;
} */

.metabox-holder .postbox-container .empty-container {
  border: none;
}

.metabox-holder .postbox-container .empty-container::after {
  display: none;
}

/* .acf-fc-layout-handle {
  background-color: var(--kodeks-dark-green);
  color: var(--white) !important;
} */

/* .wp-core-ui .button-primary,
.wp-core-ui .button-primary:hover {
  background: var(--kodeks-dark-green);
  border: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  text-shadow: none;
} */

.login #login_error,
.login .message {
  border-left: 4px solid var(--kodeks-dark-green);
}

#login {
  width: 90%;
  max-width: 500px;
}

.acf-button {
  color: var(--white) !important;
  background: var(--kodeks-dark-green) !important;
}

.acf-button-group label.selected {
  background: var(--kodeks-medium-green) !important;
  border-color: var(--kodeks-medium-green) !important;
}

.acf-button-group label:hover {
  border-color: var(--kodeks-dark-green) !important;
}

.acf-switch.-on {
  background: var(--kodeks-medium-green) !important;
  border-color: var(--kodeks-medium-green) !important;
}

.acf-switch .acf-switch-on {
  text-shadow: none !important;
}


.acf-switch.-on .acf-switch-slider {
  border-color: var(--kodeks-medium-green) !important;
  color: var(--kodeks-dark-green) !important;
}

.acf-relationship .list .acf-rel-item:hover, .acf-relationship .list .acf-rel-item.relationship-hover {
  background: var(--kodeks-medium-green) !important;
}

#wp-admin-bar-imagify,
li:not(.menu-plugins) .update-plugins,
li:not(.menu-plugins) .awaiting-mod,
.yoast-issues-count {
  display: none !important;
}

.kodeksInfo {
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-align: center;
}

.manage-column.column-cb.check-column.hidden,
.manage-column.column-name.hidden,
.name.column-name.hidden {
  display: table-cell;
}

@media screen and (max-height: 700px) {
  .kodeksInfo {
    bottom: -10%;
    padding-bottom: 30px;
  }
}

#article_number {
  width: 80px;
}

#postexcerpt2 {
  margin-top: 40px;
}

.acf-fr .button {
  color: var(--white) !important;
}

#wp-admin-bar-w3tc-default #wp-admin-bar-w3tc_overlay_upgrade,
#wp-admin-bar-w3tc-default #wp-admin-bar-w3tc_settings_general,
#wp-admin-bar-w3tc-default #wp-admin-bar-w3tc_settings_extensions,
#wp-admin-bar-w3tc-default #wp-admin-bar-w3tc_settings_faq,
#wp-admin-bar-w3tc-default #wp-admin-bar-w3tc_support {
  display: none;
}

.nonag .notice-warning {
  display: none;
}

.block-directory-downloadable-blocks-panel {
  display: none !important;
}

/* Kodeks Toggle Switch Styles */
.kodeks-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.kodeks-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kodeks-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-light);
  transition: .4s;
  border-radius: 24px;
}

.kodeks-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.kodeks-toggle input:checked + .kodeks-toggle-slider {
  background-color: var(--kodeks-dark-green);
}

.kodeks-toggle input:focus + .kodeks-toggle-slider {
  box-shadow: 0 0 1px var(--kodeks-dark-green);
}

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

/* Kodeks Dashboard settings page: tighter rows */
.settings_page_kodeksdash .form-table th,
.settings_page_kodeksdash .form-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.settings_page_kodeksdash .form-table th {
  line-height: 24px;
}

.settings_page_kodeksdash .form-table td .kodeks-toggle {
  vertical-align: middle;
}

/* Override WordPress Dashboard Widget Constraints */
#dashboard-widgets-wrap #dashboard_welcome.postbox {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

#dashboard-widgets-wrap #dashboard_welcome .inside {
  margin: 0 !important;
  padding: 0 !important;
}

#dashboard-widgets-wrap #dashboard_welcome .postbox-header {
  display: none !important;
}

/* Full-Width Dashboard Styles */
.kodeks-dashboard-fullwidth {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

#dashboard-widgets .meta-box-sortables {
  margin:0;
}

/* Kodeks Header Section (Logo and Service Status in two columns) */
.kodeks-header-section {
  margin-bottom: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.kodeks-header-content {
  display: flex;
  gap: 20px;
}

.kodeks-logo-section,
.kodeks-status-section {
  flex: 1;
  min-width: 0; /* Allow flex items to shrink */
}

.kodeks-logo-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

/* Quick Links Section */

.quick-links-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.quick-links-section h2 {
  color: white!important;
  font-size: 24px!important;
  font-weight: 600!important;
  padding:0!important;
  margin: 0;
  line-height: 1.3;
}

.quick-links-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-link-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  background: transparent;
  border: none;
  text-decoration: none !important;
  color: white!important;
  transition: opacity 0.2s ease;
  font-size: 15px;
  width: fit-content;
}

.postbox .inside .quick-link-item:hover {
  opacity: 0.8;
  box-shadow: inset 0 -1px 0 white;
  text-decoration: none !important;
}

.quick-link-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 13px;
  color: white;
  text-decoration: none !important;
}

.quick-link-item:hover .dashicons {
  text-decoration: none !important;
}

.quick-link-item span:last-child {
  font-weight: 400;
}

.kodeks-logo {
  width: 148px;
  height: 28px;
}

/* Top Bar */
.dashboard-top-bar {
  background: linear-gradient(135deg, var(--kodeks-dark-green) 0%, var(--admin-bg-medium) 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(20px);
  animation: dashboardFadeIn 0.6s ease-out 0.5s forwards;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  border-radius: 8px;
}

.top-bar-left {
  flex: 0 0 64%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.welcome-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width:850px;
  justify-content: center;
}

.postbox .inside .dashboard-modal-header h2 {
  padding:9px 0;
}

.postbox .inside .welcome-section a {
  color:var(--kodeks-bright-green);
  border-bottom: 1px solid var(--kodeks-bright-green);
  text-decoration: none!important;
}

.postbox .inside .welcome-section a:hover {
  color:var(--white)!important;
  border-bottom: 1px solid var(--white  );
  text-decoration: none!important;
}

.live-time-date {
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  animation: dashboardFadeIn 0.6s ease-out 1s forwards;
  color: var(--gray-text);
  margin-top: 8px;
}

.welcome-section h1 {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  padding:0
}

.last-login {
  font-weight: 400;
  opacity: 0.6;
}

.welcome-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.live-time-date #live-time {
  font-weight: bold;
  min-width: 57px; /* Prevent layout shifts when time changes */
  display: inline-block;
}

.live-time-date #live-date {
  border-left:1px solid var(--kodeks-dark-green);
  padding-left:5px;
  display: inline-block;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar-right {
  flex: 0 0 36%;
  min-width: 250px;
  border-left: 1px solid var(--kodeks-dark-green);
  padding-left: 20px;
  padding-right:10px;
  box-sizing: border-box;
  min-height: 100%;
  align-self: stretch;
}

.system-status h3 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.status-indicators {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}


.status-offline {
  background-color: var(--error);
}

.status-maintenance {
  color: var(--cyan);
}

.status-all-good .status-dot {
  background-color: var(--success);
}

.critical-banner {
  width: 100%;
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  margin-bottom: 20px;
  border-radius: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  position: relative;
  animation: maintenanceExpand 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

.critical-banner.critical-solved,
.critical-banner.critical-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.critical-banner .critical-notice {
  margin: 0 auto;
  border: none;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  padding: 12px 52px 12px 20px;
  position: relative;
}

.critical-banner::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #dc2626;
  animation: criticalPulse 2s ease-in-out infinite;
}

.critical-banner.critical-solved::after,
.critical-banner.critical-info::after {
  background-color: #3b82f6;
}

.critical-notice h5 {
  margin: 0 0 8px 0;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 600;
}

.critical-banner.critical-solved .critical-notice h5,
.critical-banner.critical-info .critical-notice h5 {
  color: #1e40af;
}

.critical-content {
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.critical-banner.critical-solved .critical-content,
.critical-banner.critical-info .critical-content {
  color: #1e40af;
}

/* The link to status.kodeks.no in a bar, in the bar's own colour */
.critical-content a {
  color: inherit;
  text-decoration: underline;
  white-space: nowrap;
}

.maintenance-banner {
  width: 100%;
  background: linear-gradient(135deg, #fde68a 0%,  #fef3c7 100%);
  margin-bottom: 20px;
  border-radius: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  animation: maintenanceExpand 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards;
}

@keyframes maintenanceExpand {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes dashboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes criticalPulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.6);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

.maintenance-banner .maintenance-notice {
  margin: 0 auto;
  
  border: none;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.maintenance-notice {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}

.maintenance-notice h4 {
  color: var(--gray-text-dark);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.maintenance-item {
  margin-bottom: 8px;
}

.maintenance-item:last-child {
  margin-bottom: 0;
}

.maintenance-time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 4px;
}

.maintenance-message {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.4;
}

/* Main Content Columns */
.dashboard-main-content {
  display: flex;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: dashboardFadeIn 0.8s ease-out 1s forwards;
}

@media screen and (max-width: 1024px) {
  .dashboard-main-content {
    grid-template-columns: 1fr;
  }
}

.content-column {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: clip; /* More precise clipping that includes visual effects */
  box-sizing: border-box;
  border-radius: 8px;
  min-width: 0; /* Allow grid items to shrink */
  position: relative; /* Establish positioning context */
}

.content-column * {
  max-width: 100%;
  box-sizing: border-box;
}

.content-column h2 {
  font-weight:600;
}

.content-column img,
.content-column video,
.content-column iframe {
  max-width: 100%;
  height: auto;
}

.content-left {
  flex: 0 0 calc(65% - 8px);
}

.content-right {
  flex: 0 0 calc(35% - 8px);
}

/* Skeleton placeholders while remote dashboard sections load */
.kodeks-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.kodeks-skeleton-line,
.kodeks-skeleton-image {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gray-bg-lighter) 25%, var(--gray-border) 37%, var(--gray-bg-lighter) 63%);
  background-size: 400% 100%;
  animation: kodeks-skeleton-shimmer 1.4s ease infinite;
}

.kodeks-skeleton-line {
  height: 12px;
  width: 100%;
}

.kodeks-skeleton-line.is-short {
  width: 60%;
}

.kodeks-skeleton-line.is-title {
  height: 18px;
  width: 45%;
  margin-bottom: 4px;
}

.kodeks-skeleton-line.is-row {
  height: 40px;
}

.kodeks-skeleton-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 6px;
}

@keyframes kodeks-skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodeks-skeleton-line,
  .kodeks-skeleton-image {
    animation: none;
  }
}

@media (max-width: 782px) {
  .kodeks-skeleton-image {
    display: none;
  }
}

/* News Section */
.news-section {
  padding: 20px;
  box-sizing: border-box;
}

.news-section h2 {
  color: var(--gray-text-dark);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kodeks-dark-green);
  display: inline-block;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-image {
  margin-bottom: 8px;
}

.news-image {
  flex-shrink: 0;
}

.news-image img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.news-content {
  flex: 1;
  min-width: 0;
}


.news-item h4 {
  margin: 0 0 8px 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--gray-text-dark);
  line-height: 1.3;
}


.news-item p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.news-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.news-actions .kodeks-button {
  text-align: center;
}

.postbox .inside .news-actions .kodeks-button:hover {
  text-align: center;
  text-decoration: none!important;
}

.support-link {
  color: var(--kodeks-primary);
  text-decoration: underline;
  font-weight: 500;
}

.support-link:hover {
  color: var(--kodeks-primary-dark);
  text-decoration: none;
}

.news-interest-form {
  margin-top: 16px;
  padding: 16px;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
}

.news-footer-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
}

.kodeks-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kodeks-dark-green);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.postbox .inside a.kodeks-external-link:hover {
  opacity: 0.8;
  text-decoration: none !important;
  border-bottom: 1px solid var(--kodeks-dark-green);
}

.postbox .inside a.status-detail-link {
  text-decoration: none !important;
  border-bottom: 1px solid var(--kodeks-dark-green);
}

.kodeks-external-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  text-decoration: none !important;
}

.news-interest-form .form-group {
  margin-bottom: 12px;
}

.news-interest-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
}

.news-interest-form input[type="text"],
.news-interest-form input[type="email"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-border-medium);
  border-radius: 4px;
  font-size: 14px;
}

.support-form input[type="file"] {
  padding: 4px 8px;
  font-size: 14px;
}

.file-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-text);
}

/* Modal Styles */
.dashboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.dashboard-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.dashboard-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  overflow: hidden;
}

.dashboard-modal-header {
  background: var(--kodeks-dark-green);
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

.dashboard-modal-header #modal-emoji {
  font-size: 50px;
}

.dashboard-modal-header h2 {
  margin: 0;
  font-size: 25px;
  color:#fff;
  font-weight: 600!important;
}

.dashboard-modal-body {
  padding: 24px;
}

.dashboard-modal-body p {
  margin: 0;
  text-align:center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-text-dark);
}

.dashboard-modal-footer {
  padding: 16px 24px 24px;
  text-align: center;
}

/* Support Modal Specific Styles */
.support-modal-content {
  max-width: 600px;
  width: 95vw;
  margin: 0 auto; /* Center horizontally */
}

.support-modal-content .dashboard-modal-header {
  position: relative;
  padding-right: 50px;
}

.modal-close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-modal-content .dashboard-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.support-modal-content .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.news-interest-form .form-actions {
  margin-top: 16px;
  text-align: left;
}

/* FAQ Section */
.faq-section {
  padding: 20px;
  box-sizing: border-box;
}

.faq-section h2 {
  color: var(--gray-text-dark);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kodeks-dark-green);
  display: inline-block;
}

.faq-accordion {
  margin-bottom: 24px;
  margin-top:10px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-text-dark);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--kodeks-dark-green);
}

.question-text {
  flex: 1;
}

.faq-toggle {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: var(--kodeks-dark-green);
  transition: transform 0.2s ease;
  margin-left:10px;
}

.faq-answer {
  display: none;
  padding: 0 0 16px 0;
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.faq-contact {
  background: var(--gray-bg-light);
  padding: 20px;
  text-align: center;
}

.faq-contact p {
  margin: 0 0 12px 0;
  color: var(--gray-text-dark);
  font-weight: 500;
}

.faq-actions {
  margin-top: 12px;
}

.faq-interest-form {
  margin-top: 16px;
  padding: 16px;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
}

.w3tc-actions {
  margin-top: 12px;
}

.w3tc-interest-form {
  margin-top: 16px;
  padding: 16px;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
}

.kodeks-button-outline {
  background: white;
  color: var(--kodeks-dark-green);
  border: 1px solid var(--kodeks-dark-green);
}

.kodeks-button-outline:hover {
  background: var(--blue-light);
  border-color: var(--teal);
  color: var(--teal);
}

/* Buttons */
.kodeks-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.kodeks-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kodeks-button-primary {
  background: var(--kodeks-dark-green);
  color: white !important;
  border: 1px solid var(--kodeks-dark-green);
}

/* Chevron rotation for toggle buttons */
.news-interest-toggle .dashicons,
.faq-interest-toggle .dashicons {
  transition: transform 0.3s ease;
}

.news-interest-toggle.active .dashicons,
.faq-interest-toggle.active .dashicons {
  transform: rotate(180deg);
}

.kodeks-button-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white !important;
}

.kodeks-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kodeks-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.kodeks-button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.kodeks-button-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Server Status Section */
.server-status-section {
  text-align: right;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  animation: dashboardFadeIn 0.5s ease-out 1s forwards;
}

.status-message {
  text-align: right;
}

.status-summary {
  width:100%;
}

.server-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top:-12px;
  
}


.server-status-header h2 {
  margin: 0!important;
  color: var(--white);
  font-size: 16px;
  font-weight: 600!important;
}

.status-last-updated {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

.status-last-updated .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

.status-toggle-link {
  color: var(--white);
  text-decoration: underline;
  font-size: 12px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.status-toggle-link:hover {
  opacity: 1;
  text-decoration: none;
}

.server-status-content {
  margin-bottom: 16px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.status-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  flex: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-success {
  background-color: var(--success);
  animation: pulse 2s infinite;
}

.status-dot.status-error {
  background-color: var(--error);
  animation: pulse 2s infinite;
}

.status-dot.status-green {
  background-color: var(--success);
}

.status-dot.status-red {
  background-color: var(--error);
}

.status-dot.status-yellow {
  background-color: var(--warning);
}

.status-dot.status-blue {
  background-color: var(--warning);
}

.status-dot.status-gray {
  background-color: var(--gray);
}

/* Pulsating dashicon for maintenance and warning states */
.status-item.status-maintenance .dashicons,
.status-item.status-warning .dashicons {
  animation: pulse 2s infinite;
  font-size: 16px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 4px;
}

.status-item.status-maintenance .dashicons {
  color: var(--cyan);
}

.status-item.status-warning .dashicons {
  color: var(--warning);
}

.maintenance-notice {
  background: #fef3c7;
  border-radius: 6px;
  padding: 12px 20px;
  margin-bottom: 16px;
}

.maintenance-notice h5 {
  margin: 0 0 8px 0;
  color: #92400e;
  font-size: 14px;
  font-weight: 600;
}

.maintenance-item {
  margin-bottom: 8px;
}

.maintenance-item:last-child {
  margin-bottom: 0;
}

.maintenance-time {
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  margin-bottom: 2px;
}

.maintenance-message {
  font-size: 13px;
  color: #92400e;
  line-height: 1.4;
}

.server-status-actions {
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
}

.status-detail-link {
  text-decoration: underline;
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  line-height: 16px;
  transition: opacity 0.2s ease;
}

.status-detail-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.status-detail-link .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  text-decoration: none!important;
}

.status-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 6px;
  color: var(--success);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.status-expand-btn:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
}

.status-expand-btn.expanded {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
}

.status-expand-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

.server-status-details {
  margin-top: 16px;
  border-top: 1px solid var(--gray-border-light);
  animation: slideDown 0.3s ease-out;
  max-width: 100%;
  box-sizing: border-box;
}

.server-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 1700px) {
  .server-status-grid {
    grid-template-columns: 1fr;
  }
}

.server-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  text-align: left;
  background: var(--admin-bg-dark);
  border-radius: 6px;
  color:#fff;
  border: 1px solid var(--admin-bg-medium);
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
}

.server-name {
  font-weight: 500;
  color: var(--success);
  flex: 1;
}

.server-status-text {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

/* Toggle Content */
.toggle-content {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.toggle-content ul, .toggle-content ol {
  margin: 0;
  padding-left: 20px;
}

.toggle-content ul {
  list-style-type: disc;
}

.toggle-content ol {
  list-style-type: decimal;
}

.toggle-content li {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.form-container {
  box-sizing: border-box;
  padding:0 20px;
}

.support-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0 0;
  
  margin-bottom: 20px;
}

.support-form-header h2,
.tfa-info h2 {
  color: var(--gray-text-dark);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kodeks-dark-green);
}

.support-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-medium);
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.support-close:hover {
  background-color: var(--gray-bg-lighter);
  color: var(--gray-dark);
}

.support-form {
  padding: 0 24px 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 14px;
}

.form-group textarea,
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-border-medium);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group textarea:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--kodeks-dark-green);
  box-shadow: 0 0 0 3px rgba(0, 175, 177, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 24px;
  text-align: left;
}

/* Responsive adjustments for toggle forms */
@media screen and (max-width: 782px) {
  .form-container {
    margin: 10px 0 10px 0;
  }

  .support-form-header {
    padding: 0;
  }

  .support-form, .instructions, .benefits {
    padding: 0 ;
  }

  .support-form-header h2,
  .tfa-info h2 {
    font-size: 18px;
    padding:0!important;
  }


}

/* 2FA Status and Toggle */
.tfa-status, .tfa-toggle-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}


.tfa-status.tfa-enabled .dashicons {
  color: var(--success);
}

.tfa-status.tfa-disabled .dashicons {
  color: var(--warning);
}

.tfa-status.tfa-enabled .tfa-text {
  color: var(--success);
}

.tfa-status.tfa-disabled .tfa-text {
  color: var(--warning);
}

.tfa-status.tfa-enabled {
  padding: 8px 12px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tfa-status.tfa-enabled:hover,
.tfa-status.tfa-enabled:focus,
.tfa-status.tfa-enabled:active {
  text-decoration: none !important;
  background: rgba(74, 222, 128, 0.3);
}

/* Ensure no underline on TFA enabled status link */
a.tfa-status.tfa-enabled,
a.tfa-status.tfa-enabled:hover,
a.tfa-status.tfa-enabled:focus,
a.tfa-status.tfa-enabled:active,
a.tfa-status.tfa-enabled:visited {
  text-decoration: none !important;
}

.tfa-status.tfa-disabled {
  padding: 8px 12px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* W3TC Status Button */
.w3tc-status, .w3tc-toggle-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.w3tc-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.w3tc-dot-enabled {
  background-color: var(--success);
}

.w3tc-dot-disabled {
  background-color: var(--error);
}

/* "Tøm cache": the two-factor button's shape (a light tint, a thin border, the same weight) in white,
   not a filled green block beside it */
.w3tc-status.w3tc-enabled .w3tc-text {
  color: var(--white);
}

.w3tc-status.w3tc-enabled {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.w3tc-status.w3tc-enabled:hover,
.w3tc-status.w3tc-enabled:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.w3tc-status.w3tc-enabled .dashicons {
  color: var(--white);
}

.w3tc-status.w3tc-enabled:disabled {
  opacity: 0.7;
  cursor: progress;
}

.w3tc-status.w3tc-disabled {
  padding: 8px 12px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.w3tc-status.w3tc-disabled .w3tc-text {
  color: var(--warning);
}

.w3tc-status.w3tc-disabled .dashicons {
  color: var(--warning);
}

.kodeks-button-outline {
  background: var(--white);
  color: var(--kodeks-dark-green);
  border: 1px solid var(--kodeks-dark-green);
}

.kodeks-button-outline:hover {
  background: var(--gray-bg-lighter);
  border-color: var(--admin-bg-medium);
}

/* 2FA Content */
/* Shared form content styling */
.support-form, .instructions, .benefits {
  padding: 0 0 24px 0;
}

.support-form h5, .instructions h5, .benefits h5 {
  color: var(--gray-text-dark);
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px 0;
}

.support-form p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.instructions ol, .instructions ul,
.benefits ol, .benefits ul {
  margin: 0;
  padding-left: 20px;
}

.instructions li, .benefits li {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.instructions strong, .benefits strong {
  color: var(--kodeks-dark-green);
}

.form-actions {
  margin-top: 24px;
  text-align: left;
  
}


/* Responsive Design */
@media screen and (max-width: 1024px) {
  .dashboard-main-content {
    flex-direction: column;
  }

  .content-left,
  .content-right {
    flex: none;
  }

}

@media screen and (max-width: 782px) {
  .kodeks-header-content {
    flex-direction: column;
    gap: 15px;
  }

  .kodeks-logo-section,
  .kodeks-status-section {
    width: 100%;
  }

  .dashboard-top-bar {
    flex-direction: column;
    gap: 20px;
  }

  .server-status-grid {
    grid-template-columns: 1fr;
  }

  .status-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .status-expand-btn {
    align-self: flex-end;
    margin-left: 0;
    margin-top: 8px;
  }

  .top-bar-left,
  .top-bar-right {
    width: 100%;
  }

  .top-bar-right {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }

  .status-last-updated {
    width: 100%;
  }

  .dashboard-main-content {
    padding: 0;
  }

  .news-image {
    display: none;
  }

  .welcome-section h1,
  .quick-links-section h1 {
    font-size: 20px;
  }

  .system-status {
    text-align: center;
  }

  .status-indicators {
    justify-content: center;
  }
  .status-last-updated {
    display:none
  }
  .status-message {
    text-align:left
  }

  .status-item {
    font-size:12px;
  }

  .kodeks-header-section {
    margin-bottom:10px;
  }

  .maintenance-time {
    font-size: 12px;
  }

  .maintenance-message {
    font-size: 12px;
  }

  .news-section,
  .faq-section {
    padding: 16px;
  }

  .server-status-section {
    padding:0;
    margin-top:0px;
  }

  .last-login {
    display:none;
  }

  .news-section h2,
  .faq-section h2,
  .server-status-header h2 {
    font-size: 18px;
    padding:0!important;
  }
  .server-status-header {
    display: block;
  }

  .critical-banner::after {
    right: 15px;
    width: 12px;
    height: 12px;
  }

}
/* Settings → Kodeks Dashboard: a tab per group, each on a card */
.kodeks-settings .nav-tab-wrapper {
  margin-bottom: 16px;
}

.kodeks-settings-panel {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 4px 24px 8px;
  max-width: 960px;
}

.kodeks-settings-panel[hidden] {
  display: none;
}

.kodeks-settings-panel h2 {
  margin: 16px 0 0;
  font-size: 15px;
}

.kodeks-settings-panel .form-table th {
  width: 240px;
}

.kodeks-settings-panel .form-table tr + tr th,
.kodeks-settings-panel .form-table tr + tr td {
  border-top: 1px solid #f0f0f1;
}

.kodeks-settings-panel .description {
  max-width: 560px;
}

/* Subheadings inside a tab (kodeks_subhead_callback) */
.kodeks-settings-panel .form-table tr.kodeks-subhead th {
  padding-top: 20px;
  padding-bottom: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #646970;
}

.kodeks-settings-panel .form-table tr.kodeks-subhead td {
  padding: 0;
}

.kodeks-settings-panel .form-table tr.kodeks-subhead + tr th,
.kodeks-settings-panel .form-table tr.kodeks-subhead + tr td {
  border-top: 0;
}

.kodeks-settings-panel .form-table tr[hidden] {
  display: none;
}

/* Keep pages in the cache: the choice, the minutes and their unit on one line, the same height */
.kodeks-lifetime {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

#cache_lifetime_custom {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

#cache_lifetime_custom input {
  height: auto;
  margin: 0;
}

#cache_lifetime_custom span {
  align-self: center;
}

#cache_lifetime_custom[hidden] {
  display: none;
}

/* Path lists: a few lines, as wide as the descriptions */
.kodeks-settings-panel textarea.kodeks-paths {
  max-width: 560px;
}

/* "Hosted by Kodeks" off: the settings that need Kodeks's servers, greyed out and not clickable
   (not disabled: their values are still saved, so switching it back on brings them back) */
.kodeks-settings-panel .form-table tr.kodeks-inactive,
.kodeks-settings.kodeks-not-hosted .kodeks-needs-hosting {
  opacity: 0.45;
  pointer-events: none;
}

/* No Save button on a tab without settings (Changelog) */
.kodeks-settings-save[hidden] {
  display: none;
}

/* Changelog tab: a section per version, each change with its type as a badge */
.kodeks-changelog-version + .kodeks-changelog-version {
  border-top: 1px solid #f0f0f1;
}

.kodeks-changelog-version h3 {
  margin: 16px 0 8px;
  font-size: 14px;
}

.kodeks-changelog-date {
  margin-left: 6px;
  font-weight: 400;
  color: #646970;
}

.kodeks-changelog-list {
  margin: 0 0 16px;
}

.kodeks-changelog-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  max-width: 760px;
}

/* One width for every badge, the longest (Improvement, Performance) included, so the
   texts beside them line up */
.kodeks-changelog-badge {
  flex: 0 0 112px;
  width: 112px;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.75;
  color: #fff;
  background: #646970;
}

.kodeks-changelog-new { background: #126159; }
.kodeks-changelog-improvement { background: #2271b1; }
.kodeks-changelog-fix { background: #996800; }
.kodeks-changelog-security { background: #b32d2e; }
.kodeks-changelog-performance { background: #6b4fbb; }
.kodeks-changelog-removed { background: #646970; }

/* ── Kodeks Dashboard, 2026-10 tidy: one spacing for every card, columns that stack ── */
.kodeks-dashboard-fullwidth {
  --kodeks-gap: 16px;
}
.dashboard-top-bar {
  margin-bottom: var(--kodeks-gap);
}
.dashboard-main-content {
  gap: var(--kodeks-gap);
}
@media screen and (max-width: 1024px) {
  .dashboard-main-content {
    flex-direction: column;
  }
  .content-left,
  .content-right {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Planned maintenance: one quiet line with the next window; the rest on a click */
.kodeks-maintenance {
  margin: 0 0 var(--kodeks-gap, 16px);
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-text-dark);
  opacity: 0;
  animation: dashboardFadeIn 0.6s ease-out 0.3s forwards;
}
.kodeks-maintenance summary,
.kodeks-maintenance-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  list-style: none;
}
.kodeks-maintenance summary {
  cursor: pointer;
}
.kodeks-maintenance summary::-webkit-details-marker {
  display: none;
}
.kodeks-maintenance summary::after {
  content: "\f347";
  font-family: dashicons;
  color: var(--gray-medium);
  transition: transform 0.2s ease;
}
.kodeks-maintenance[open] summary::after {
  transform: rotate(180deg);
}
.kodeks-maintenance .dashicons-admin-tools {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--kodeks-medium-green);
}
.kodeks-maintenance-more {
  padding: 0 7px;
  border-radius: 10px;
  background: var(--gray-bg-lighter);
  color: var(--gray-text);
  font-size: 12px;
}
.kodeks-maintenance a {
  margin-left: auto;
  color: var(--kodeks-medium-green);
}
.kodeks-maintenance ul {
  margin: 8px 0 2px 24px;
  padding: 0;
  list-style: none;
}
.kodeks-maintenance li {
  margin: 0 0 4px;
  color: var(--gray-text);
}
.kodeks-maintenance-when {
  color: var(--gray-text-dark);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.kodeks-maintenance-note {
  color: var(--gray-text);
}
.kodeks-maintenance-note::before {
  content: "– ";
}
/* The window's own text first on the line (dashboard-remote.php): no dash before it */
.kodeks-maintenance .dashicons + .kodeks-maintenance-note::before,
.kodeks-maintenance li > .kodeks-maintenance-note:first-child::before {
  content: none;
}
.kodeks-maintenance .dashicons + .kodeks-maintenance-note {
  color: var(--gray-text-dark);
  font-weight: 500;
}

/* Site health (beta, site-health.php): the site at a glance, between the welcome bar and the columns */
.kodeks-health-section {
  margin-bottom: var(--kodeks-gap);
  opacity: 0;
  animation: dashboardFadeIn 0.6s ease-out forwards;
}
/* Drawn with the page: in the dashboard's own order -- maintenance 0.3 s, top bar 0.5 s,
   this 0.75 s, the columns 1 s, each the same rise and fade. Fetched later (the first
   view), it rises as it arrives. */
.kodeks-health-section.is-ready {
  animation: dashboardFadeIn 0.6s ease-out 0.75s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .kodeks-health-section,
  .kodeks-health-section.is-ready {
    opacity: 1;
    animation: none;
  }
}
.kodeks-health-section[hidden] {
  display: none;
}
.kodeks-health-card {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
}
.kodeks-health-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.postbox .inside .kodeks-health-head h2,
.kodeks-health-head h2 {
  color: var(--gray-text-dark);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* The underline under the title only, not the Beta pill: drawn below the line, so the
   pill centres on the title's text */
.kodeks-health-title {
  position: relative;
  line-height: 1.2;
}
.kodeks-health-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  border-bottom: 2px solid var(--kodeks-dark-green);
}
.kodeks-health-head h2 .kodeks-health-pill {
  margin-left: 0;
}
.kodeks-health-checked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-medium);
  font-size: 12px;
}
.kodeks-health-checked .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}
.kodeks-health-intro {
  margin: 14px 0 16px;
  color: var(--gray-text);
  font-size: 14px;
}
.kodeks-health-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Cards in a row as tall as the tallest, their content from the top */
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media screen and (max-width: 900px) {
  .kodeks-health-tiles { grid-template-columns: 1fr; }
}
.kodeks-health-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 14px 16px;
  background: var(--gray-bg-light);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
  /* Mainframe's score colours (app.css --success/--warning/--danger and their -light) */
  --kh-good: #10b981; --kh-good-bg: #ecfdf5;
  --kh-mid: #f59e0b;  --kh-mid-bg: #fffbeb;
  --kh-poor: #ef4444; --kh-poor-bg: #fef2f2;
}
.kodeks-health-label {
  color: var(--gray-text-dark);
  font-size: 14px;
  font-weight: 600;
}
.kodeks-health-scores {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 6px 0 2px;
}
.kodeks-health-ring-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
}
/* A ring, as Mainframe's .pq-list-chip draws PageSpeed's scores */
.kodeks-health-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid currentColor;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kodeks-health-ring-cap {
  color: var(--gray-medium);
  font-size: 11px;
}
/* The trend on the ring's top-right corner (Mainframe's scores.*_trend) */
.kodeks-health-trend {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  box-shadow: 0 0 0 1px currentColor;
}
.kodeks-health-trend.is-up     { color: var(--kh-good); }
.kodeks-health-trend.is-down   { color: var(--kh-poor); }
.kodeks-health-trend.is-stable { color: var(--gray-medium); }
.kodeks-health-ring.is-good { color: var(--kh-good); background: var(--kh-good-bg); box-shadow: 0 0 6px 0 color-mix(in srgb, var(--kh-good) 30%, transparent); }
.kodeks-health-ring.is-mid  { color: var(--kh-mid);  background: var(--kh-mid-bg); }
.kodeks-health-ring.is-poor { color: var(--kh-poor); background: var(--kh-poor-bg); }
/* The GDPR shield, as Mainframe's .gdpr-score */
.kodeks-health-shield {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The ring's box: the same height, so captions, status and text line up across the cards */
  width: 46px;
  height: 52px;
  box-sizing: border-box;
}
.kodeks-health-shield svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
  fill-opacity: .14;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.kodeks-health-shield b {
  position: relative;
  margin-top: -5px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* Three digits: a size down, so 100 keeps clear of the shield's narrowing sides */
.kodeks-health-shield.is-wide b {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.kodeks-health-shield.is-good { color: var(--kh-good); }
/* The good ring's glow, on the shield's own outline (a box-shadow would be square) */
.kodeks-health-shield.is-good svg { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--kh-good) 30%, transparent)); }
.kodeks-health-shield.is-mid  { color: var(--kh-mid); }
.kodeks-health-shield.is-poor { color: var(--kh-poor); }
.kodeks-health-status {
  color: var(--gray-medium);
  font-size: 12px;
}
.kodeks-health-note {
  color: var(--gray-medium);
  font-size: 12px;
}
.kodeks-health-none {
  color: var(--gray-medium);
  font-size: 13px;
}
.kodeks-health-why {
  margin: 8px 0 2px;
  color: var(--gray-text-dark);
  font-size: 13px;
  line-height: 1.45;
}
.kodeks-health-offer {
  margin: 0 0 8px;
  color: var(--gray-medium);
  font-size: 12px;
}
.kodeks-health-tile .kodeks-button {
  margin-top: auto;
}
.kodeks-health-about {
  margin: 0 0 12px;
  color: var(--gray-text);
}

/* "What we do for you": the good things, quietly, under the scores */
.kodeks-health-done {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
}
.kodeks-health-done ul {
  /* However many there are, they share the full width (a wrapped row too) */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kodeks-health-done li {
  flex: 1 1 190px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--gray-bg-lighter);
}
.kodeks-health-done li[title] {
  cursor: help;
}
.kodeks-health-done .dashicons {
  flex: none;
  font-size: 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--kodeks-medium-green);
}
.kodeks-health-done-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.kodeks-health-done-text strong {
  color: var(--gray-text-dark);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.kodeks-health-done-text span {
  color: var(--gray-text);
  font-size: 12px;
  line-height: 1.35;
}

/* The site's open 404s: one line in the card, the list in a modal */
.kodeks-health-404 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
  color: var(--gray-text);
  font-size: 13px;
}
.kodeks-health-404 .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--gray-medium);
}
/* "Show the list" right after the sentence, as a link */
.kodeks-health-404-open {
  padding: 0;
  border: 0;
  background: none;
  color: var(--kodeks-medium-green);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.kodeks-health-404-open:hover,
.kodeks-health-404-open:focus-visible {
  color: var(--kodeks-dark-green);
}
.dashboard-modal-content.kodeks-health-404-modal {
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.kodeks-health-404-modal .dashboard-modal-body {
  overflow-y: auto;
}
.kodeks-health-404-modal .dashboard-modal-body p.kodeks-health-about {
  margin: 0 0 12px;
  text-align: left;
  font-size: 14px;
  color: var(--gray-text);
}
.kodeks-health-404-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kodeks-health-404-list li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--gray-border);
  font-size: 13px;
  line-height: 1.45;
}
.kodeks-health-404-path {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.kodeks-health-404-path a {
  word-break: break-all;
}
.kodeks-health-404-hits {
  flex: none;
  color: var(--gray-text);
}
.kodeks-health-404-from {
  margin-top: 2px;
  font-size: 12px;
  color: var(--gray-text);
  word-break: break-all;
}

/* A fine area: what is in place */
.kodeks-health-good {
  margin: 8px 0 2px;
  color: var(--gray-text-dark);
  font-size: 13px;
  font-weight: 600;
}
.kodeks-health-facts {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.kodeks-health-facts li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 3px;
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.4;
}
.kodeks-health-facts .dashicons {
  flex: none;
  width: 16px;
  height: 16px;
  font-size: 16px;
  /* Level with the first line of text (13px at 1.4) */
  margin-top: 1.5px;
  color: #10b981;
}
.kodeks-health-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  /* Beta: salmon, filled, apart from the greens, ambers and reds that mean something here */
  background: #f07a5d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.75;
  vertical-align: middle;
}
.kodeks-health-detail {
  margin: 2px 0 6px;
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.45;
}
.kodeks-health-good {
  margin: 8px 0 4px;
}

/* Ask Kodeks (assistant.php, js/assistant.js): the top bar's button in the cache button's
   shape, and the chat in the dashboard's own modal */
.kodeks-ask-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.kodeks-ask-button[hidden] { display: none; }
.kodeks-ask-button:hover,
.kodeks-ask-button:focus-visible { background: rgba(255, 255, 255, 0.18); }
.kodeks-ask-button .dashicons { color: var(--white); }
.kodeks-ask-button .kodeks-ask-pill { margin-left: 0; }

.kodeks-assistant { max-width: 680px; display: flex; flex-direction: column; max-height: 92vh; }
.kodeks-assistant-log {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 18px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kodeks-assistant-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kodeks-dark-green);
}
.kodeks-assistant-msg p { margin: 0 0 6px; text-align: left; font-size: 14px; }
.kodeks-assistant-msg p:last-child { margin-bottom: 0; }
.kodeks-assistant-msg ul,
.kodeks-assistant-msg ol { margin: 4px 0 6px 20px; }
.kodeks-assistant-msg li { margin: 2px 0; }
.kodeks-assistant-msg code { font-size: 12px; background: rgba(14, 52, 48, 0.06); padding: 1px 4px; border-radius: 3px; }
.kodeks-assistant-msg.is-bot { align-self: flex-start; background: var(--kodeks-bright-green); }
.kodeks-assistant-msg.is-user { align-self: flex-end; background: #b9d8d3; }
.kodeks-assistant-msg.is-note { align-self: center; max-width: 100%; background: none; color: #50575e; font-size: 13px; padding: 2px 6px; }
.kodeks-assistant-msg.is-note p { font-size: 13px; text-align: center; }
.kodeks-assistant-wait { color: #50575e; font-style: italic; }
.kodeks-assistant-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 20px 10px; }
.kodeks-assistant-starters[hidden] { display: none; }
.kodeks-assistant-starter {
  padding: 5px 10px;
  font-size: 13px;
  color: var(--kodeks-medium-green);
  background: #fff;
  border: 1px solid var(--kodeks-light-green);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
}
.kodeks-assistant-starter:hover { background: var(--kodeks-bright-green); }
.kodeks-assistant-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 20px;
  border-top: 1px solid #e2e4e7;
}
.kodeks-assistant-form textarea {
  flex: 1 1 auto;
  resize: vertical;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
}
.kodeks-assistant-form textarea:focus { border-color: var(--kodeks-medium-green); box-shadow: 0 0 0 1px var(--kodeks-medium-green); outline: none; }
.kodeks-assistant-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 20px 16px;
  font-size: 12px;
  color: #50575e;
}
.kodeks-assistant-link {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--kodeks-medium-green);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.kodeks-assistant-link:hover,
.kodeks-assistant-link:focus-visible { color: var(--kodeks-dark-green); }
@media (max-width: 600px) {
  .kodeks-assistant-msg { max-width: 100%; }
  .kodeks-assistant-form { flex-direction: column; align-items: stretch; }
}
