/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Example CSS adapted for #self-assessment-widget */
#self-assessment-widget {
    --primary-color: #FF8A20;
    --primary-hover: #e07000;
    --bg-color: #ffffff;
    --card-bg: #ffb471 ;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --font-family: 'Inter', sans-serif;

    font-family: var(--font-family);
    background-color: #ffb471;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

#self-assessment-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Background Shapes */
#self-assessment-widget .background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#self-assessment-widget .shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
}

#self-assessment-widget .shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #FF8A20, #fed7aa);
    animation: float 20s infinite alternate;
    opacity: 0.1;
}

#self-assessment-widget .shape-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #fb923c, #fdba74);
    animation: float 25s infinite alternate-reverse;
    opacity: 0.1;
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

#self-assessment-widget .container {
    width: 100%;
    /*max-width: 800px;*/
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 24px;
    padding: 0rem;
    box-shadow: none;
}

/* box shadow original: 0 25px 50px -12px rgba(0, 0, 0, 0.5);*/

#self-assessment-widget .header {
    text-align: left;
    margin-bottom: 3rem;
}

#self-assessment-widget .header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
    /* neue Textfarbe */
    background: none;
    /* Hintergrund-Gradient entfernen */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

#self-assessment-widget .header p {
    color: #000000;
}

/* Category & Questions */
#self-assessment-widget .category-section {
    margin-bottom: 3rem;
}

#self-assessment-widget .category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
    color: #000000;
}

#self-assessment-widget .question-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

#self-assessment-widget .question-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
}

#self-assessment-widget .question-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

#self-assessment-widget .rating-options {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
    /* Center the options */
}

#self-assessment-widget .rating-label {
    flex: 1;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#self-assessment-widget .rating-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

#self-assessment-widget .rating-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 600;
}

/*background original: rgba(0, 0, 0, 0.05);*/

#self-assessment-widget .rating-text {
    font-size: 0.65rem;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.2;
    color: var(--text-muted);
    padding: 0 2px;
}

#self-assessment-widget .rating-label:hover .rating-custom {
    background: #ffb471;
    border-color: #fff;
}

/* Check button checked*/

#self-assessment-widget .rating-input:checked+.rating-custom {
    background: #ff8a20;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}



/* Buttons */
#self-assessment-widget .actions {
    text-align: center;
    margin-top: 3rem;
}

#self-assessment-widget .btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#self-assessment-widget .btn-primary {
    background: #ff8a20;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(255, 138, 32, 0.4);
}

#self-assessment-widget .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(255, 138, 32, 0.5);
}

#self-assessment-widget .btn-secondary {
    padding: 1rem 2.5rem;
    margin-right: 100px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    background: #ff8a20;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(255, 138, 32, 0.4);
}

#self-assessment-widget .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(255, 138, 32, 0.5);
}

/* Results */
#self-assessment-widget .hidden {
    display: none;
}

#self-assessment-widget #results-section {
    margin-top: 3rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#self-assessment-widget #results-section h2 {
    text-align: left;
    margin-bottom: 2rem;
}

#self-assessment-widget .chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

#self-assessment-widget .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

#self-assessment-widget .result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

#self-assessment-widget .result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

#self-assessment-widget .progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#self-assessment-widget .progress-bar-fill {
    height: 100%;
    background: #ff8a20;
    border-radius: 5px;
    transition: width 1s ease-out;
}

#self-assessment-widget .result-score {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
}

#self-assessment-widget .total-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#self-assessment-widget .score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    box-shadow: none;
}

#self-assessment-widget #total-score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

#self-assessment-widget .max-score {
    font-size: 1rem;
    color: var(--text-muted);
}

#self-assessment-widget .total-feedback {
    margin-top: 2rem;
    text-align: center;
    /*max-width: 600px;*/
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    #self-assessment-widget .container {
        padding: 0rem;
    }

    #self-assessment-widget .header h1 {
        font-size: 1.5rem;
    }

    #self-assessment-widget .rating-options {
        gap: 0.25rem;
    }
}

/* ========================================= */
/* PDF EXPORT STYLES (Preserved from Original) */
/* ========================================= */
#pdf-export-container {
    display: none;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #000;
    /* Ensure dimensions */
    width: 210mm;
    margin: 0 auto;
    background: white;
}

#pdf-export-container h1,
#pdf-export-container h2,
#pdf-export-container h3 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    /* Anton is typically regular/400 but thick */
    letter-spacing: 0.5px;
}

/* When active (controlled by JS inline styles) */
/* body.pdf-mode #pdf-export-container {} - Removed empty rule */

body.pdf-mode .container,
body.pdf-mode .background-shapes {
    display: none !important;
}

/* Page Layout */
.pdf-page {
    width: 210mm;
    height: 296mm;
    /* A4 height */
    position: relative;
    page-break-after: always;
    background: #fff;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Common Header */
.pdf-header {
    background: #FF8A20;
    /* Brand Orange */
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.header-left {
    /* Originally contained the logo, now potentially empty*/
	padding: 15px 0 0 0;											/* abst von oben*/
}

/* Header Right Container */
.header-right {
    display: flex;
    align-items: center;
    width: auto;
    /* Allow it to just take what it needs */
}

.header-right h1 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.header-left svg {
    height: 50px;
    width: auto;
	margin: 0px 0 0 0; /* Logo etwas nach unten versetzt*/
}

.pdf-sub-header {
    margin: 20px 40px 10px 40px;
    /* border-bottom: 4px solid black; -- REMOVED */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 5px;
}

.pdf-sub-header h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.date-box {
    font-weight: bold;
    font-size: 14px;
}

/* Introduction Text */
.intro-text p {
    margin: 0 40px 40px 40px;
    font-size: 10px;
    line-height: 1.4;
}

.intro-text p:first-child {
    font-weight: bold;
    margin-bottom: 20px;
}

/* Content Area - Orange Background */
.pdf-content {
    background: #ffb471;  /* Lighter Orange for background */
    margin: 0;
    padding: 20px;
    border-radius: 0;
    min-height: 1800px; /* Höhe BG INH */
}
    /* Fill space roughly */
}

/* CATEGORY GRID (PAGE 1) */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pdf-card { /* boxen ergebnisbalken */
    background: white;
    padding: 15px;
	margin: 0 80px 20px 80px;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
}

.card-header h3 {
    font-size: 11px;
    font-weight: 800;
    margin: 0;
    max-width: 75%;
}

.score-display {
    font-weight: 900;
    font-size: 14px;
}

/* Progress Bars */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #eee;
    margin-bottom: 10px;
    border-radius: 3px;
}

.pdf-progress-bar {
    height: 100%;
    background: #ff8a20;
    border-radius: 3px;
}

.card-text {
    font-size: 9px;
    line-height: 1.3;
}

/* VISUALIZATION (PAGE 2) */
.visualization-container {
    display: flex;
    flex-direction: column;
    /* padding-top: 40px; */
}

.chart-section h3,
.score-section h3 {
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.chart-placeholder {
    width: 300px;
    height: 300px;
    background: #ffb471 ;
    /* Or transparent if the image has bg */
    border-radius: 50%;
    /* Optional */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder img {
    max-width: 100%;
    max-height: 100%;
}

.score-section {
    position: absolute;
    top: 180px;
    right: 80px;
    text-align: center;
}

.score-section h3 {
    /* border-bottom: 3px solid #000; - Underline style */
    display: inline-block;
    padding-bottom: 2px;
}

.big-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 5px solid #FF8A20;
    /* Orange border? or white? Image shows no border but white circle */
    /*border: none; - widerspricht oben*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.big-score-circle span:first-child {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.big-score-circle .total-max {
    font-size: 16px;
    color: #999;
}

/* MAIN FEEDBACK BOX */
.main-feedback-box {
    background: #FFF5EA;
    /* Very light orange/white */
    margin: 0 80px 0 80px;
    padding: 20px;
    border-radius: 10px;
    min-height: 150px;
}

#pdf-main-feedback-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

#pdf-main-feedback-text {
    font-size: 11px;
    line-height: 1.4;
}

/* Footer (Bottom of page) */
.pdf-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;   /* Höhe footer geändert*/
    background: #FF8A20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    color: black;
}

.footer-left {
    flex: 1;
    /* Allow taking available space */
    padding-right: 20px;
    /* Space between text and logo */
}

.footer-left p {
    font-size: 6px;
    margin: 2px 0;
    font-weight: 600;
    line-height: 1.2;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 100px;
    /* reserve space for logo */
}

/* Removed Chevron and old logo styles */

.footer-right svg {
    height: 35px;
    width: auto;
}
