/* Skill Mapping Plugin Styles - Simple & Clean */

/* Container */
#skill-test-container,
#result-container,
#result-lookup {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Inner Content Wrapper */
#test-intro,
#skill-test,
#test-result,
#result-container > div {
    width: 100%;
}

/* Test Intro Section */
#test-intro {
    text-align: center;
}

/* Logo */
.sm-logo {
    text-align: center;
    margin-bottom: 20px;
}

.sm-logo img {
    max-width: 200px;
    height: auto;
}

/* Main Headings */
#test-intro h2,
#test-result h2,
#result-container h2,
#result-lookup h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

/* Description */
.sm-description,
#test-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
}

/* Progress Bar */
#progress-bar {
    max-width: 600px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0 auto 10px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: #667eea;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Question Block */
.question-block {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.question-block h3 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Options Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.option-label:has(input[type="radio"]:checked) {
    background: #f0f4ff;
    border-color: #667eea;
    border-width: 2px;
}

.option-text {
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

/* Navigation Buttons */
.question-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

/* Buttons */
.sm-button,
.sm-button-primary {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sm-button {
    background: #6c757d;
    color: #fff;
}

.sm-button:hover {
    background: #5a6268;
}

.sm-button-primary {
    background: #667eea;
    color: #fff;
}

.sm-button-primary:hover {
    background: #5568d3;
}

/* Test Result Section */
#test-result {
    text-align: center;
}

#test-result h2 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 600;
}

.result-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-code-wrapper > p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.result-code-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #667eea;
    border-radius: 6px;
    margin: 8px 0;
}

#result-code {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 3px;
    user-select: all;
}

.copy-icon {
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    opacity: 0.8;
}

.copy-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copy-icon:active {
    transform: scale(0.95);
}

.copy-feedback {
    display: block;
    margin-top: 8px;
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

.copy-feedback.error {
    color: #dc3545;
}

#test-result > p {
    color: #666;
    font-size: 16px;
    margin: 16px 0;
    text-align: center;
}

/* Payment Section */
#payment-section {
    margin-top: 24px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#payment-section p {
    color: #666;
    margin-bottom: 12px;
}

/* Result Lookup */
#result-lookup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#result-lookup > * {
    width: 100%;
    max-width: 450px;
}

#result-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

#result-code-input {
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

#result-code-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Results Content */
#result-content {
    position: relative;
    z-index: 1;
}

.result-code-display {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
}

.result-code-display strong {
    color: #667eea;
    font-size: 16px;
    letter-spacing: 2px;
}

.loading {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px;
}

/* Chart Container */
.chart-container {
    margin: 0 0 30px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    height: 350px;
    width: 100%;
    position: relative;
}

#results-chart {
    position: relative;
    z-index: 1;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
    padding: 15px 0 0 0;
    border-top: 1px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

/* Results Table */
.results-table {
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-table thead {
    background: #667eea;
    color: #fff;
}

/* Intelligence List */
.intelligence-list {
    margin: 30px 0;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intelligence-heading {
    color: #667eea;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.intelligence-items {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.intelligence-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.intelligence-item strong {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.intelligence-description {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.intelligence-disclaimer {
    margin-top: 30px;
    padding: 16px 20px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.intelligence-disclaimer p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.intelligence-disclaimer strong {
    color: #f57c00;
    font-weight: 600;
}

.intelligence-disclaimer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.intelligence-disclaimer a:hover {
    text-decoration: underline;
}

.results-table th,
.results-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}

.results-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.results-table td.description-cell {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.results-table tbody tr:hover {
    background: #f9f9f9;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Result Interpretation */
.result-interpretation {
    margin: 30px 0;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-interpretation h4 {
    color: #667eea;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.result-interpretation ol {
    margin: 0;
    padding-left: 20px;
}

.result-interpretation li {
    margin: 12px 0;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
}

.result-interpretation .description {
    display: block;
    font-weight: normal;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
    line-height: 1.5;
}

.result-interpretation strong {
    color: #2d3748;
    font-weight: 600;
}

/* Payment Required */
.payment-required {
    padding: 30px;
    background: white;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-required p {
    color: #2d3748;
    font-size: 16px;
    margin: 12px 0;
    line-height: 1.6;
}

/* Error Messages */
.error {
    color: #dc3545;
    background: #ffe0e0;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #skill-test-container,
    #result-container,
    #result-lookup {
        padding: 30px 20px;
    }

    .question-block {
        padding: 24px;
    }

    .chart-container {
        padding: 15px;
    }

    .chart-wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    #skill-test-container,
    #result-container,
    #result-lookup {
        padding: 20px 15px;
    }

    #test-intro h1,
    #result-container h1 {
        font-size: 24px;
    }

    #test-intro h2 {
        font-size: 18px;
    }

    .sm-description,
    #test-intro p {
        font-size: 15px;
    }

    .question-block {
        padding: 20px;
    }

    .question-text {
        font-size: 16px;
    }

    .option-label {
        padding: 12px 16px;
    }

    .option-text {
        font-size: 14px;
    }

    .sm-button,
    .sm-button-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .question-nav {
        flex-direction: column;
    }

    .question-nav button {
        width: 100%;
    }

    #result-code {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .result-code-box {
        padding: 14px 20px;
    }

    .chart-container {
        padding: 12px;
    }

    .chart-wrapper {
        height: 320px;
    }

    .chart-legend {
        gap: 8px;
        margin-top: 12px;
        padding: 12px 0 0 0;
    }

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

    .results-table th,
    .results-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    #result-form {
        padding: 32px 24px;
    }

    #result-code-input {
        font-size: 16px;
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    #test-intro,
    #skill-test,
    #test-result,
    #result-container > div {
        padding: 30px 15px;
    }

    #test-intro h1,
    #result-container h1 {
        font-size: 20px;
    }

    .sm-logo img {
        max-width: 160px;
    }

    .question-block {
        padding: 20px 16px;
    }

    .question-text {
        font-size: 15px;
    }

    .option-label {
        padding: 12px 14px;
    }

    .option-label input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .option-text {
        font-size: 14px;
    }

    .sm-button,
    .sm-button-primary {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }

    #result-code {
        font-size: 18px;
    }

    .result-code-box {
        padding: 12px 18px;
        gap: 10px;
    }

    .chart-container {
        padding: 10px;
    }

    .chart-wrapper {
        height: 350px;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 10px 0 0 0;
    }

    .results-summary,
    .result-interpretation,
    .payment-required {
        padding: 20px;
    }

    .results-summary h3,
    .result-interpretation h3 {
        font-size: 18px;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    #result-form {
        padding: 24px 16px;
    }

    #result-code-input {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* Toast Notifications */
.sm-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    z-index: 99999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.sm-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.sm-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.sm-toast-error .sm-toast-icon {
    background: #fee;
    color: #dc3545;
}

.sm-toast-success .sm-toast-icon {
    background: #d4edda;
    color: #28a745;
}

.sm-toast-warning .sm-toast-icon {
    background: #fff3cd;
    color: #ffc107;
}

.sm-toast-info .sm-toast-icon {
    background: #d1ecf1;
    color: #17a2b8;
}

.sm-toast-message {
    flex: 1;
    color: #2d3748;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.sm-toast-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sm-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2d3748;
}

/* Toast border indicators */
.sm-toast-error {
    border-left: 4px solid #dc3545;
}

.sm-toast-success {
    border-left: 4px solid #28a745;
}

.sm-toast-warning {
    border-left: 4px solid #ffc107;
}

.sm-toast-info {
    border-left: 4px solid #17a2b8;
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    .sm-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .sm-toast-show {
        transform: translateY(0);
    }
}
