/* Gør SVG-cirkeldiagrammet responsivt */
.result-chart-container svg {
    width: 100%; /* Sørger for, at det skalerer ned med skærmen */
    height: auto; /* Bevarer det korrekte format (kvadratisk) */
    max-width: 504px; /* Forhindrer det i at blive for stort på store skærme */
}

/* ===================================================================
   Styling af faneblads-navigation i kundepanel (OPDATERET)
   =================================================================== */

/* Container for navigations-boksene */
.customer-panel-wrapper .panel-tabs.new-tabs {
    display: flex;
    gap: 20px;
    border-bottom: none;
    margin-bottom: 2em;
}

/* Styling af hver navigations-boks/knap */
.customer-panel-wrapper .panel-tabs .tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff; /* Sikrer hvid baggrund */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #555;
    transition: all 0.2s ease-in-out;
}

/* Ikonet inde i boksen */
.customer-panel-wrapper .panel-tabs .tab-button .dashicons {
    font-size: 36px;
    height: 36px;
    width: 36px;
    margin-bottom: 10px;
    color: #0073aa;
}

/* Teksten inde i boksen */
.customer-panel-wrapper .panel-tabs .tab-button .tab-text {
    font-weight: bold;
    font-size: 1.1em;
}

/* Effekt når man holder musen over */
.customer-panel-wrapper .panel-tabs .tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    color: #000;
}

/* Styling for den aktive/valgte boks */
.customer-panel-wrapper .panel-tabs .tab-button.active {
    border-color: #0073aa;
    box-shadow: 0 6px 20px rgba(0,115,170,0.15);
    color: #000;
}


/* ===================================================================
   Styling til KUNDE Login/Registrering ([kunde_konto])
   =================================================================== */

/* Hoved-containeren for den hvide boks */
#customer-auth-container {
    max-width: 450px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-radius: 8px;
}

#customer-auth-container .social-login-container {
    display: flex;
    justify-content: center;
}

/* Separator med "eller" */
#customer-auth-container .auth-separator-compact {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5em 0;
    color: #777;
}
#customer-auth-container .auth-separator-compact::before,
#customer-auth-container .auth-separator-compact::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #e0e0e0;
}
#customer-auth-container .auth-separator-compact span {
    padding: 0 1em;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Separator med "Opret ny bruger"-linket */
#customer-auth-container .auth-separator {
    text-align: center;
    margin: 2em 0;
    color: #555;
}
#customer-auth-container .auth-separator a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: normal;
}
#customer-auth-container .auth-separator a:hover {
    color: #005177;
}

/* Justering af standard WordPress Login-formular */
#customer-auth-container #loginform p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#customer-auth-container #loginform label {
    margin-bottom: 5px;
    font-weight: normal;
}
#customer-auth-container #loginform input[type="text"],
#customer-auth-container #loginform input[type="password"] {
    width: 100%;
    box-sizing: border-box;
}

/* Generel styling for overskrifter i boksen */
#customer-auth-container .auth-section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5em;
    font-size: 1.5em;
    color: #444;
}

/* Fejl- og succesbeskeder */
#customer-auth-container .auth-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
#customer-auth-container .auth-notice.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
#customer-auth-container .auth-notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


/* ===================================================================
   Styling til GRATIS TEST Login ([min_disc_test])
   =================================================================== */

#free-test-login-container {
    max-width: 550px;
    margin: 2em auto;
}

#free-test-login-container .test-intro-box {
    padding: 1.5em;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5em;
}

#free-test-login-container .login-fieldset {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    padding: 1.5em;
}

#free-test-login-container .login-fieldset legend {
    text-align: center;
    width: 100%;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1em;
}

#free-test-login-container .submit-container {
    text-align: center;
    margin-top: 1.5em;
}

#free-test-login-container .test-intro-box ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

#free-test-login-container .test-intro-box li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.8em;
}

#free-test-login-container .test-intro-box li:last-child {
    margin-bottom: 0;
}

#free-test-login-container .test-intro-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -1px;
    color: #0073aa;
    font-size: 1.4em;
    font-weight: bold;
}

#free-test-login-container .terms-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9em;
}


/* ===================================================================
   Fælles stile for selve testen
   =================================================================== */

.progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    border: 1px solid #ccc;
    margin-bottom: 2em;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    white-space: nowrap;
    transition: width 0.5s ease-in-out;
}

.disc-question-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 1.5rem;
}

.disc-question-box legend h5 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: normal;
}

.disc-answer-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 1rem;
}

.disc-answer input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
}

.disc-answer label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
    min-width: 100px;
}

.disc-answer label:hover {
    background-color: #f0f0f0;
}

.disc-answer label::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    border: 2px solid;
    border-radius: 50%;
    background-color: #fff;
    margin-bottom: 8px;
}

.disc-answer input[type="radio"]:checked + label {
    font-weight: bold;
}

/* Farver FØR valg (omvendt rækkefølge) */
.disc-answer:nth-of-type(1) label::before { border-color: #ff9da1; background-color: #fed2d4; }
.disc-answer:nth-of-type(2) label::before { border-color: #ffc49a; background-color: #fad7bd; }
.disc-answer:nth-of-type(3) label::before { border-color: #d9d9d9; background-color: #e7e7e7; }
.disc-answer:nth-of-type(4) label::before { border-color: #9affb2; background-color: #cbfdd7; }
.disc-answer:nth-of-type(5) label::before { border-color: #9bfaff; background-color: #d1fdff; }

/* Farver EFTER valg (omvendt rækkefølge) */
.disc-answer:nth-of-type(1) input[type="radio"]:checked + label::before { border-color: #f5222d; background-color: #f5222d; box-shadow: inset 0 0 0 4px white; }
.disc-answer:nth-of-type(2) input[type="radio"]:checked + label::before { border-color: #ff7a45; background-color: #ff7a45; box-shadow: inset 0 0 0 4px white; }
.disc-answer:nth-of-type(3) input[type="radio"]:checked + label::before { border-color: #9e9e9e; background-color: #9e9e9e; box-shadow: inset 0 0 0 4px white; }
.disc-answer:nth-of-type(4) input[type="radio"]:checked + label::before { border-color: #00de34; background-color: #00de34; box-shadow: inset 0 0 0 4px white; }
.disc-answer:nth-of-type(5) input[type="radio"]:checked + label::before { border-color: #00f2ff; background-color: #00f2ff; box-shadow: inset 0 0 0 4px white; }

/* ===================================================================
   Resultatside & Kundepanel
   =================================================================== */

.disc-result-wrapper {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.profile-type-container {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
}

.profile-type-container h3 {
    font-size: 1.8em;
    color: #333;
    margin: 0;
}

.profile-description {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    text-align: left;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

.customer-panel-wrapper {
    max-width: 900px;
    margin: 2em auto;
}

.panel-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5em 2em;
    margin-bottom: 2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.panel-box h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
    font-size: 1.5em;
}

.status-box .credit-count {
    font-size: 1.8em;
    font-weight: bold;
    color: #0073aa;
}

.invitation-form-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 1em;
    flex-wrap: wrap;
}
.invitation-form-wrapper .form-field {
    flex-grow: 1;
    min-width: 150px;
}
.invitation-form-wrapper .form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.invitation-form-wrapper .form-field input[type="text"],
.invitation-form-wrapper .form-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}
.invitation-form-wrapper .form-field:last-child {
    flex-grow: 0;
}

.panel-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 2.5em 0;
}

.customer-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}
.customer-history-table th,
.customer-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.customer-history-table th {
    background-color: #f9f9f9;
}
.customer-history-table .status-completed {
    color: #28a745;
    font-weight: bold;
}
.customer-history-table .status-pending {
    color: #ffb900;
    font-weight: bold;
}
.customer-history-table .delete-link {
    color: #b32d2e;
    text-decoration: none;
}
.customer-history-table .delete-link:hover {
    text-decoration: underline;
}

.panel-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid;
}
.panel-notice.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.panel-notice.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* --- Responsive Design til Mobil --- */
@media (max-width: 768px) {
    .disc-answer-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .disc-answer label {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 15px;
    }
    .disc-answer label::before {
        margin-bottom: 0;
        margin-right: 15px;
    }
}