.log {
    padding: 5px;
    margin: 10px 0;
}

#tillganglighets-popup {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    padding: 20px;
}

#tillganglighets-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#popup-ok {
    margin-left: 15px;
}


#popup-message {
    max-height: 50vh;
    overflow-y: scroll;
}

#welcome-area {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: 0.3s ease;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.571);
    width: 100vw;
    height: 100vh;
}

#welcome-area .welcome-area-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    transform: translate(-50%, -50%);
    top: 55%;
    left: 50%;
    position: absolute;
    transition: 0.5s ease;
}
#welcome-area .welcome-area-content.active-welcome-area-content {
    top: 50%;
}

#welcome-area.active-welcome-area {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.wcag-error-fake-row {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.wcag-error-fake-row a:first-of-type {
    margin-right: 5px;
    margin-top: 5px;
    display: inline-block;
}
.wcag-error-fake-row--row {
    background: #f7f7f7;
    margin: 10px 0;
    padding: 7px;
    border-radius: 4px;
    border-left: 2px solid #d0d0d0;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
}

.wcag-error-fake-row p {
    margin-bottom: 0px;
}

.wcag-error-fake-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-top: 25px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
}

#progress-bar {
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    max-width: 200px;
    width: 100%;
    background: #f3f3f3;
    position: relative;
    height: 20px;
    margin-bottom: 10px;
    margin-top: 20px;
}

#progress {
    background-color: #4caf50;
    height: 100%;
    width: 0%;
}

.close-wcag-welcome-area {
    position: absolute;
    top: 3px;
    right: 3px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    padding: 5px;
}
.close-wcag-welcome-area:hover {
    background: #ededed;
}

.column-wcag_errors { width: 110px; text-align: center; }

body.toplevel_page_tillganglighetsrevision #wpwrap,
body.tillgangligio_page_tillganglighetsrevision_hjalp #wpwrap,
body.tillgangligio_page_tillganglighetsrevision_installningar #wpwrap
 {
    /* background-image: linear-gradient(to top, #cfd9df 0%, #F7F7FE 100%); */
    background-color: #f0eeea;
}

.wp-admin details {
    margin-bottom: 15px;
    max-width: 600px;
}
.wp-admin details details {
    margin-left: 15px;
    font-size: 15px;
    margin-bottom: 10px;
}
.wp-admin details details:first-of-type {
    margin-top: 15px;
}

.wp-admin details p {
    font-size: 15px;
}

.wp-admin summary {
    padding: 14px 13px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    /* background: #fff; */
    /* background: #e3e3e3; */
    border: 1px solid #c3c4c7;
}

.wp-admin details:first-of-type summary {
    background-color: white;
}

.wcag-warning-icon {
    color: #f48636;
}

.wcag-tag-design {
    background-color: whitesmoke;
    padding: 3px 5px;
    color: black;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 10px;
    position: absolute;
    top: 0;
    right: 0;
}

details details details summary {
    font-size: 14px !important
}

.fake-wordpress-error-bubble {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    margin: 1px 0 -1px 2px;
    padding: 0 5px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background-color: #d63638;
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.wcag-error-summary {
    font-size: 14px !important;
    background: white !important;
    border-left: 3px solid #b73b3b !important;
    padding: 8px 14px !important;
}

.wcag-post-links a {
    font-size: 13px;
}

.wcag-error {
    border: 2px solid #d20000;
    animation: highlight_element 1s forwards;
}
.wcag-error-message {
    color: #d20000;
    font-size: 0.9em;
    margin: 5px 0;
    padding: 2px;
    background-color: #ffe6e6;
    animation: highlight_message 1s forwards;
}

h1.wcag-error, h2.wcag-error, h3.wcag-error, h4.wcag-error, h5.wcag-error, h6.wcag-error {
    min-height: 10px;
}

@keyframes highlight_message {
    from { background-color: #f7ffa2; }
    to { background-color: #ffe6e6; }
}

@keyframes highlight_element {
    from { border-color: transparent; }
    to { border-color: #d20000; }
}

.scanning-complete-message {
    display: none;
}

@keyframes tilt-n-move-shaking {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, 5px) rotate(5deg); }
    50% { transform: translate(0, 0) rotate(0eg); }
    75% { transform: translate(-5px, 5px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes glow {
    0% { background-color: #4caf50; }
    50% { background-color: transparent; }
    100% { background-color: #4caf50; }
}

.scan-running-box {
    display: none;
    width: 1260px;
} 
.scan-running-box.active {
    display: inline-block;
}

@keyframes progress-effect {
    0% { background-color: rgb(255, 255, 188); }
    50% { background-color: white; }
    100% { background-color: rgb(255, 255, 188); }
}

details:first-of-type.true > summary {
    animation: progress-effect 1s infinite;
}

@keyframes flash {
    0% { background-color: #f7ffa2; }
    100% { background-color: #f7f7f7; }
}

@keyframes fade-in-bg {
    0% { background-color: orange; }
    100% { background-color: #ffff0061; }
}

.flash-on-init {
    animation: flash 1s;
}

/* .wcag-highlight {
    outline: 2px dashed red;
    background-color: rgba(255, 0, 0, 0.1);
  } */

  /** 
 * Highlight the offending element 
 */
.wcag-offending-element {
    animation: fade-in-bg 1s;
    outline: 1px dashed red;
    /* position: relative; */
    z-index: 999;      /* ensure it’s above other elements if needed */
    padding: 2px;
    background-color: #ffff0061;
    background-color: #ff000042;
  }
  
  /** 
   * Style the label that appears above/below the offending element 
   */
  .wcag-offending-label {
    /* position: absolute; */
    background-color: red;
    color: white;
    padding: 2px 4px;
    font-size: 12px;
    z-index: 9999;    /* so it’s on top */
    display: block;

    outline: 1px solid gray;
    margin: 5px 0;
    background-color: #ffe300;
    color: black;
  }

  .wcag-level {
    background: #ffd557;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 6px;
    float: right;
  }

  .wcag-level-aaa {
    background: #8aff8a;
  }
  .wcag-level-a {
    background: #ac3939;
    color: white;
  }

  .wcag-float-none {
    float: unset;
  }

  .wcag-level-small {
    font-size: 11px;
    padding: 1px 3px;
  }

  .wcag-post-accordion summary {
    position: relative;
  }

  .custom-dashicon {
    font-size: 18px;
    vertical-align: unset;
    text-decoration: none;
  }

  /* WCAG Progress Bar Styles */
.wcag-progress-container {
    margin: 20px 0;
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 15px;
    display: none; /* Hidden by default, shown via JS */
}

.wcag-progress-wrapper {
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 8px;
    position: relative;
}

.wcag-progress-bar {
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px 0 0 4px;
    position: relative;
}

.wcag-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.1) 50%,
        transparent 60%
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wcag-progress-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wcag-progress-container {
        margin: 15px 0;
        padding: 12px;
    }
    
    .wcag-progress-wrapper {
        height: 20px;
    }
    
    .wcag-progress-text {
        font-size: 13px;
    }
}

.tillganglio-boxy {
    padding: 25px;
    background-color: white;
    border: 1px solid #c3c4c7;
}

.tillganglio-boxy h2 {
    font-size: 2em;
    padding-bottom: 15px;
    border-bottom: 1px solid #c3c4c7;
}

.tillganglio-boxy h3 {
    color: #646b7d;
}

.tillganglio-header {
    display: flex;
    background: #1d2641;
    padding: 25px;
    flex-direction: column;
}

.tillganglio-header h1, .tillganglio-header h2 {
    color: white;
}

.tillganglio-wrapper {
    max-width: 1260px;
}
.delete-scan-link {
    float: right;
    outline: 0;
    border: 0;
}