<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI-Genreated Test Cases</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <style>
        :root {
            --primary-color: #4B7BEC;
            --secondary-color: #45AEF5;
            --background-dark: #1E2337;
            --background-card: #2A2F45;
            --text-primary: #FFFFFF;
            --text-secondary: #A0A7B7;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--background-dark);
            color: var(--text-primary);
            line-height: 1.4;
            padding-top: 40px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Navigation */
        .fixed-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--background-dark);
            z-index: 1000;
            padding: 6px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            height: 28px;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: inherit;
            transition: opacity 0.2s;
            position: fixed;
        }

        .logo-section:hover {
            opacity: 0.8;
        }

        .checkie-logo, .Checkie-logo {
            height: 20px;
            width: auto;
        }

        .brand-name {
            font-size: 0.9em;
            font-weight: 500;
        }

        .nav-links {
            display: flex;
            gap: 12px;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
            font-size: 0.85em;
            padding: 2px 6px;
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        /* Hero Section */
        .hero {
            padding: 20px 0;
            text-align: center;
            background: linear-gradient(to bottom, var(--background-dark), rgba(30, 35, 55, 0.95));
        }

        h1 {
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .subtitle {
            font-size: 1.5rem;
            color: var(--text-secondary);
            max-width: 800px;
            margin: 0 auto 2rem;
        }

        /* Buttons */
        .cta-button {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            text-decoration: none;
            display: inline-block;
        }

        .cta-button.primary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border: none;
            color: white;
        }

        .nav-links .cta-button {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(75, 123, 236, 0.3);
        }

        .cta-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }

        /* Sections */
        section {
            padding: 80px 0;
            scroll-margin-top: 100px;  /* Adds margin for scroll targets */
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 3rem;
            text-align: center;
        }

        /* Partnership Grid */
        .partnership-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .partnership-card {
            background-color: var(--background-card);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
        }

        .partnership-card h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        /* Benefits Grid */
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .benefit-card {
            background-color: var(--background-card);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
        }

        .benefit-card h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .feature {
            background-color: var(--background-card);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
        }

        .feature h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .cta-section {
            text-align: center;
            background: var(--background-dark);
            padding: 40px 0;
        }

        .print-button {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .print-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(75, 123, 236, 0.3);
        }

        .print-button svg {
            width: 20px;
            height: 20px;
        }

        .Issues {
            padding: 20px 0 40px;
            background-color: var(--background-dark);
            color: var(--text-primary);
        }

        .issues-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .issue-card {
            background: var(--background-card);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            color: var(--text-primary);
        }

        .issue-header {
            margin-bottom: 15px;
        }

        .issue-header h4 {
            margin: 0 0 10px 0;
            color: var(--text-primary);
        }

        .issue-metrics {
            display: flex;
            gap: 15px;
            font-size: 0.9em;
        }

        .priority, .confidence {
            padding: 4px 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
        }

        .issue-types {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .bug-type-tag {
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.85em;
            color: var(--text-primary);
        }

        .issue-details {
            font-size: 0.95em;
            color: var(--text-secondary);
        }

        .detail-section {
            margin-bottom: 15px;
        }

        .detail-section h5 {
            margin: 0 0 5px 0;
            color: var(--text-primary);
            font-weight: 600;
        }

        .detail-section p {
            margin: 0;
            color: var(--text-secondary);
        }

        .detail-section code {
            display: block;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px;
            border-radius: 4px;
            font-size: 0.9em;
            word-break: break-all;
            white-space: pre-wrap;
            color: var(--text-primary);
        }

        .page-issues {
            margin-bottom: 40px;
        }

        .page-issues h3 {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #dee2e6;
        }

        .quality-summary {
            padding: 40px 0;
            background: var(--background-dark);
            color: var(--text-primary);
        }

        .grade-overview {
            display: flex;
            align-items: center;
            gap: 40px;
            margin-bottom: 40px;
        }

        .grade-card {
            background: var(--background-card);
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            color: var(--text-primary);
        }

        .grade-card h2 {
            margin: 0 0 15px 0;
            font-size: 1.2em;
            color: var(--text-primary);
        }

        .grade {
            font-size: 3.5em;
            font-weight: 700;
            margin: 20px 0;
            color: {% if summary.letter_grade|slice:":1" == "A" %}#4CAF50{% elif summary.letter_grade|slice:":1" == "B" %}#FF9800{% elif summary.letter_grade|slice:":1" == "C" %}#FF5722{% else %}#f44336{% endif %};
        }

        .summary-text {
            flex: 1;
            color: var(--text-secondary);
        }

        .overview {
            font-size: 1.2em;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.6;
        }

        .aspects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .aspect-card {
            padding: 20px;
            border-radius: 8px;
            background: var(--background-card);
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            color: var(--text-primary);
        }

        .aspect-card h3 {
            margin: 0 0 15px 0;
            font-size: 1.1em;
            color: var(--text-primary);
        }

        .aspect-card p {
            color: var(--text-secondary);
        }

        .aspect-card.positive {
            border-left: 4px solid #28a745;
        }

        .aspect-card.negative {
            border-left: 4px solid #dc3545;
        }

        .detailed-analysis {
            background: var(--background-card);
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            color: var(--text-primary);
        }

        .detailed-analysis h3 {
            margin: 0 0 15px 0;
            color: var(--primary-color);
        }

        .analysis-text {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .suggestions-list, .priority-list {
            padding-left: 20px;
            margin-bottom: 30px;
            color: var(--text-secondary);
        }

        .suggestions-list li, .priority-list li {
            margin-bottom: 10px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .priority-list li {
            font-weight: 500;
        }

        .priority-list li::marker {
            color: #2b5797;
            font-weight: 600;
        }

        .user-feedback {
            background: var(--background-dark);
            color: var(--text-primary);
        }

        .feedback-header {
            margin-bottom: 30px;
            text-align: center;
            color: var(--text-primary);
        }

        .feedback-header h3 {
            margin: 0 0 10px 0;
            color: var(--text-primary);
            font-size: 1.8em;
        }

        .purpose {
            color: var(--text-secondary);
            font-size: 1.1em;
            max-width: 800px;
            margin: 0 auto;
        }

        .overall-metrics {
            margin-bottom: 40px;
        }

        .metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 0 auto;
            max-width: 1200px;
        }

        .metric-card {
            background: var(--background-card);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.2s ease;
            color: var(--text-primary);
        }

        .metric-card:hover {
            transform: translateY(-2px);
        }

        .metric-card h4 {
            margin: 0 0 15px 0;
            color: var(--text-primary);
            font-size: 1.2em;
        }

        .stars {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
        }

        .star {
            font-size: 1.5em;
            color: #e0e0e0;
            transition: color 0.2s ease;
        }

        .star.filled {
            color: #ffd700;
            text-shadow: 0 0 2px rgba(0,0,0,0.1);
        }

        .user-personas {
            padding-top: 40px;
            border-top: 1px solid #dee2e6;
        }

        .user-personas h3 {
            text-align: center;
            margin-bottom: 30px;
            color: var(--text-primary);
        }

        .personas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 0 auto;
            max-width: 1200px;
        }

        .persona-card {
            background: var(--background-card);
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            color: var(--text-primary);
        }

        .persona-header {
            margin-bottom: 25px;
        }

        .persona-header-top {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .persona-header img {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid var(--primary-color);
            box-shadow: 0 2px 8px rgba(75, 123, 236, 0.15);
            background: var(--background-dark);
        }

        .profile-image-container {
            position: relative;
        }

        .ai-tag {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--primary-color);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.7em;
            font-weight: 600;
        }

        .persona-info h4 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.2em;
        }

        .bio {
            color: var(--text-secondary);
            font-size: 0.9em;
            line-height: 1.4;
        }

        .persona-feedback {
            color: var(--text-secondary);
        }

        .persona-score {
            margin-bottom: 20px;
        }

        .persona-score h5 {
            margin: 0 0 10px 0;
            color: var(--text-primary);
        }

        .feedback-summary {
            font-style: italic;
            color: var(--text-secondary);
            margin-bottom: 20px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
        }

        .persona-actions h5,
        .persona-suggestions h5 {
            color: var(--text-primary);
        }

        .persona-actions ul,
        .persona-suggestions ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .persona-actions li,
        .persona-suggestions li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
        }

        .persona-actions li:before,
        .persona-suggestions li:before {
            content: "•";
            color: var(--text-primary);
            position: absolute;
            left: 0;
        }

        .page-feedback {
            margin-bottom: 60px;
        }

        .metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .metric-card {
            background: var(--background-card);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            color: var(--text-primary);
        }

        .metric-card h4 {
            margin: 0 0 10px 0;
            color: var(--text-primary);
        }

        .stars {
            display: flex;
            gap: 5px;
            margin-bottom: 10px;
        }

        .star {
            font-size: 1.5em;
            color: #ccc;
        }

        .star.filled {
            color: #ffd700;
        }

        .personas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .persona-card {
            background: var(--background-card);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            color: var(--text-primary);
        }

        .persona-header {
            margin-bottom: 25px;
        }

        .persona-header-top {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .persona-header img {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid var(--primary-color);
            box-shadow: 0 2px 8px rgba(75, 123, 236, 0.15);
            background: var(--background-dark);
        }

        .persona-info h4 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.2em;
        }

        .persona-info p {
            margin: 0;
            color: var(--text-secondary);
        }

        .persona-score {
            margin-bottom: 20px;
        }

        .persona-actions {
            margin-bottom: 20px;
        }

        .persona-suggestions {
            margin-bottom: 20px;
        }

        .review-text {
            color: var(--text-primary);
        }

        .review-card {
            background: var(--background-card);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            color: var(--text-primary);
            margin-bottom: 20px;
        }

        .review-card p {
            color: var(--text-secondary);
        }

        .Pages-card {
            text-align: center;
        }

        .screenshot-container {
            position: relative;
            display: inline-block;
            margin: 0 auto;
        }

        .Pages-card img {
            max-width: 250px;
            max-height: 250px;
            width: 100%;
            object-fit: contain;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.1);
            display: block;
        }

        .load-time {
            align-items: baseline;
            gap: 4px;
            padding: 6px 10px;
            background: rgba(0, 0, 0, 0.8);
            border-radius: 6px;
            backdrop-filter: blur(4px);
            z-index: 1;
            max-width: 250px;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .load-time-value {
            font-size: 1.2em;
            font-weight: 600;
            color: var(--primary-color);
            line-height: 1;
        }

        .load-time-label {
            color: var(--text-secondary);
            font-size: 0.8em;
        }

        /* Shimmer effect */
        @keyframes shimmer {
            0% {
                background-position: -200% center;
            }
            100% {
                background-position: 200% center;
            }
        }

        .shimmer {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 0.8) 25%,
                rgba(255, 255, 255, 1) 50%,
                rgba(255, 255, 255, 0.8) 75%,
                rgba(255, 255, 255, 1) 100%
            );
            background-size: 200% auto;
            color: transparent;
            background-clip: text;
            -webkit-background-clip: text;
            animation: shimmer 3s linear infinite;
        }

        .page-header {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .page-header-content {
            flex: 1;
        }

        .page-screenshot {
            max-width: 250px;
            max-height: 250px;
            width: 100%;
            object-fit: contain;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: transform 0.2s;
        }

        .page-screenshot:hover {
            transform: scale(1.05);
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
        }

        .modal.active {
            display: block;
        }

        .modal-content {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 90vh;
            object-fit: contain;
        }

        .modal-close {
            position: absolute;
            right: 25px;
            top: 15px;
            color: #f1f1f1;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
        }

        footer {
            background-color: var(--background-dark);
            padding: 20px 0;
            margin-top: 40px;
        }

        .footer-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .footer-logos img {
            height: 24px;
            width: auto;
            vertical-align: middle;
        }

        .footer-bottom {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.9em;
        }

        .hero-logo {
            max-height: 50px;
            width: auto;
            display: block;
            margin: 0 auto;
        }

        .tester-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .tester-header img {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid var(--primary-color);
            box-shadow: 0 2px 8px rgba(75, 123, 236, 0.15);
            background: var(--background-dark);
        }

        .test-steps {
            display: flex;
            flex-direction: row;
            width: 100%;
            gap: 20px;
            margin: 20px 0;
            overflow-x: auto;
            scroll-behavior: smooth;
            position: relative;
            padding: 10px 0;
            padding-left: 20px;
            padding-right: 20px;
            background: linear-gradient(to bottom, rgba(42, 47, 69, 0.8), var(--background-dark));
            border-radius: 12px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 30px;
        }

        /* Add a subtle glow effect to enhance the raised appearance */
        .test-execution {
            position: relative;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 40px;
        }

        .test-execution h4 {
            margin-bottom: 15px;
            color: var(--text-primary);
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .test-step {
            position: relative;
            margin: 10px;
            flex: 0 0 auto;
            transition: transform 0.3s ease, filter 0.3s ease;
            filter: grayscale(100%);
        }

        .test-step.active {
            filter: grayscale(0%);
            transform: scale(1.15);
            z-index: 10;
        }
        
        .test-step.active > div {
            border: 4px solid transparent !important;
            background: linear-gradient(to right, #4CAF50, #C0C0C0) padding-box,
                        linear-gradient(to right, #4CAF50, #C0C0C0) border-box;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
        }

        .step-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 15px;
        }

        .step-control {
            background: var(--background-card);
            border: none;
            color: var(--text-primary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .step-control:hover {
            background: var(--primary-color);
            transform: scale(1.1);
        }

        .step-indicator {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .step-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .step-dot.active {
            background: var(--primary-color);
            transform: scale(1.3);
        }

        .expand-icon:hover {
            background-color: rgba(75, 123, 236, 0.8) !important;
            transform: scale(1.1);
        }

        .play-pause-button {
            background: var(--background-card);
            border: none;
            color: var(--text-primary);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-left: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .play-pause-button:hover {
            background: var(--primary-color);
            transform: scale(1.1);
        }

        .test-name-container {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .test-details {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .detail-label {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .detail-value {
            color: var(--text-primary);
        }
        
        .nested-details {
            margin-left: 15px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 5px;
        }
        
        .nested-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding-left: 10px;
            border-left: 2px solid rgba(75, 123, 236, 0.3);
        }
        
        .nested-label {
            font-weight: 500;
            color: var(--text-secondary);
        }
        
        .nested-value {
            color: var(--text-primary);
            font-weight: 500;
        }
        
        .nested-reason {
            color: var(--text-secondary);
            font-style: italic;
            font-size: 0.9em;
        }
        
        /* Modern card styles for test details */
        .test-details-container {
            display: none;
            margin-top: 20px;
            border-radius: 8px;
            overflow: hidden;
            background-color: rgba(30, 30, 40, 0.6);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .test-details-container.active {
            display: block;
        }
        
        .test-details-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            margin: 0;
            background-color: rgba(46, 204, 113, 0.1);
            border-bottom: 1px solid rgba(46, 204, 113, 0.2);
            cursor: pointer;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            transition: background-color 0.3s ease;
        }
        
        .test-details-title:hover {
            background-color: rgba(46, 204, 113, 0.15);
        }
        
        .test-details {
            display: none;
            padding: 15px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }
        
        .test-details.active {
            display: grid;
        }
        
        .detail-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .detail-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }
        
        .detail-label {
            font-size: 0.85em;
            font-weight: 600;
            color: var(--ai-primary);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .detail-value {
            font-size: 0.95em;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.5;
        }
        
        .nested-details {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-top: 10px;
        }
        
        .nested-item {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 6px;
            padding: 12px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        
        .nested-label {
            font-weight: 600;
            color: var(--ai-secondary);
            font-size: 0.85em;
        }
        
        .nested-value, .nested-reason {
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.8);
        }
    </style>
</head>
<body>
    <header class="fixed-header">
        <div class="container">
            <div class="header-content">
                <a href="{{brand_url}}" target="_blank" class="logo-section">
                    <img src="{{brand_icon}}" alt="{{brand_name}} Logo" class="hero-logo" style="max-height: 30px;">
                    <span class="brand-name">{{brand_name}}</span>
                </a>
                <h2 class="ai-title" style="margin: 0; padding: 0; text-align: center; flex-grow: 1; display: flex; justify-content: center; align-items: center;">AI Generated Functional Tests</h2>
                
            </div>
        </div>
    </header>
    {% if app_name != "APP" %}
    <header class="hero">
        <div class="container">
            {% if app_icon_url %}
            <div style="display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; text-align: center;">
                <div style="display: flex; align-items: center; margin-bottom: 10px;">
                    <img src="images/logo_clear.png" alt="{{app_name}} Icon" style="height: 40px; width: auto; margin-right: 15px;">
                    <h1 class="app-name">{{app_name}}</h1>
                </div>
                
            </div>
            {% else %}
            <div style="display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; text-align: center;">
                <h1 class="app-name">{{app_name}}</h1>
            </div>
            {% endif %}
        </div>
    </header>
    {% endif %}
    
    <section id="issues" class="Issues">
        <div class="container">
            <style>
                :root {
                    --ai-primary: #2ecc71;
                    --ai-secondary: #f39c12;
                    --ai-accent: #e74c3c;
                    --ai-dark: #1a1a2e;
                    --ai-light: #e2e2e2;
                    --ai-gradient-1: linear-gradient(to right, #2ecc71, #f39c12, #e74c3c);
                    --ai-gradient-2: linear-gradient(to right, #27ae60, #e67e22, #c0392b);
                    --ai-glow: 0 0 15px rgba(58, 134, 255, 0.5);
                    --ai-card-bg: rgba(26, 26, 46, 0.8);
                    --ai-card-border: rgba(58, 134, 255, 0.3);
                }
                
                .test-summary {
                    margin-bottom: 30px;
                }
                
                .summary-container {
                    background: var(--ai-card-bg);
                    border-radius: 16px;
                    padding: 25px;
                    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
                    border: 1px solid var(--ai-card-border);
                    backdrop-filter: blur(10px);
                    -webkit-backdrop-filter: blur(10px);
                    position: relative;
                    overflow: hidden;
                }
                
                .summary-container::before {
                    content: '';
                    position: absolute;
                    top: -50px;
                    right: -50px;
                    width: 200px;
                    height: 200px;
                    background: radial-gradient(circle, rgba(58, 134, 255, 0.1), transparent 70%);
                    z-index: 0;
                }
                
                .summary-title {
                    color: white;
                    margin: 0 0 20px 0;
                    font-size: 1.4em;
                    font-weight: 600;
                    position: relative;
                    display: inline-block;
                    padding-bottom: 10px;
                }
                
                .summary-title::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 60px;
                    height: 2px;
                    background: var(--ai-gradient-1);
                    box-shadow: var(--ai-glow);
                }
                
                .summary-stats {
                    display: grid;
                    grid-template-columns: repeat(1, 1fr);
                    gap: 20px;
                    position: relative;
                    z-index: 1;
                }
                
                @media (min-width: 576px) {
                    .summary-stats {
                        grid-template-columns: repeat(2, 1fr);
                    }
                    
                    .stat-item.total {
                        grid-column: span 2;
                    }
                }
                
                @media (min-width: 992px) {
                    .summary-stats {
                        grid-template-columns: repeat(4, 1fr);
                    }
                    
                    .stat-item.total {
                        grid-column: span 1;
                    }
                }
                
                .stat-item {
                    background: rgba(26, 26, 46, 0.7);
                    border-radius: 12px;
                    padding: 20px;
                    text-align: center;
                    position: relative;
                    overflow: hidden;
                    transition: all 0.3s ease;
                    border-left: 3px solid transparent;
                }
                
                .stat-item:hover {
                    transform: translateY(-5px);
                    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
                }
                
                .stat-item.total {
                    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(131, 56, 236, 0.2));
                    border-left-color: white;
                }
                
                .stat-item.edge {
                    border-left-color: var(--edge-color);
                }
                
                .stat-item.interesting {
                    border-left-color: var(--interesting-color);
                }
                
                .stat-item.ai-unique {
                    border-left-color: var(--ai-unique-color);
                }
                
                .stat-value {
                    font-size: 2.5em;
                    font-weight: 700;
                    color: white;
                    margin-bottom: 5px;
                    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
                }
                
                .stat-label {
                    color: rgba(255, 255, 255, 0.7);
                    font-size: 0.9em;
                    text-transform: uppercase;
                    letter-spacing: 1px;
                    margin-bottom: 15px;
                }
                
                .stat-bar {
                    height: 4px;
                    background: var(--ai-gradient-1);
                    border-radius: 2px;
                    margin-top: 10px;
                    box-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
                    transition: width 1s ease-in-out;
                }
                
                .stat-item.edge .stat-bar {
                    background: linear-gradient(to right, var(--edge-color), rgba(58, 134, 255, 0.7));
                }
                
                .stat-item.interesting .stat-bar {
                    background: linear-gradient(to right, var(--interesting-color), rgba(131, 56, 236, 0.7));
                }
                
                .stat-item.ai-unique .stat-bar {
                    background: linear-gradient(to right, var(--ai-unique-color), rgba(255, 0, 110, 0.7));
                }
                
                .ai-title {
                    font-weight: 700;
                    text-align: left;
                    margin-bottom: 15px;
                    background: linear-gradient(to right, #2ecc71, #f39c12, #e74c3c);
                    -webkit-background-clip: text;
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                    position: relative;
                    display: inline-block;
                    padding: 0;
                    font-size: 1.8em;
                }
                
                .app-name {
                    display: block;
                    font-size: 2.5em;
                    font-weight: 800;
                    margin-bottom: 10px;
                    background: linear-gradient(
                        to right,
                        #f0f0f0, 
                        #c0c0c0, 
                        #ffffff, 
                        #e0e0e0, 
                        #f8f8f8
                    );
                    -webkit-background-clip: text;
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
                    animation: silverShine 3s infinite alternate;
                }
                
                @keyframes silverShine {
                    0% {
                        background-position: 0% 50%;
                    }
                    50% {
                        background-position: 100% 50%;
                    }
                    100% {
                        background-position: 0% 50%;
                    }
                }
                
                .total-test-badge {
                    display: inline-flex;
                    align-items: center;
                    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
                    color: white;
                    padding: 8px 15px;
                    border-radius: 20px;
                    font-weight: 600;
                    margin-bottom: 20px;
                    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                }
                
                .total-test-badge:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4);
                }
                
                .total-test-badge i {
                    margin-right: 8px;
                    font-size: 1.1em;
                }
                
                .test-execution {
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                    border-radius: 12px;
                    overflow: hidden;
                }
                
                .test-execution:hover {
                    transform: translateY(-3px);
                    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
                }
                
                .test-header {
                    cursor: pointer;
                    transition: background-color 0.3s ease;
                }
                
                .test-header:hover {
                    background-color: rgba(255, 255, 255, 0.05);
                }
                
                .toggle-icon {
                    transition: transform 0.3s ease;
                }
                
                .toggle-icon.active {
                    transform: rotate(180deg);
                }
                
                .area-header {
                    transition: background-color 0.3s ease;
                }
                
                .area-header:hover {
                    background-color: rgba(255, 255, 255, 0.05);
                }
                
                .profile-image {
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    object-fit: cover;
                    border: none;
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                    transition: transform 0.3s ease;
                }
                
                .profile-image:hover {
                    transform: scale(1.05);
                }
                
                @keyframes borderRotate {
                    0% {
                        border-image: linear-gradient(0deg, #2ecc71, #f39c12, #e74c3c) 1;
                    }
                    100% {
                        border-image: linear-gradient(360deg, #2ecc71, #f39c12, #e74c3c) 1;
                    }
                }
            </style>
            
            <!-- Total Test Count Badge -->
            
            <div style="text-align: center; margin-bottom: 30px;">
                <div class="total-test-badge">
                    <i class="fas fa-vial"></i> Total Tests: {{ total_tests }}
                </div>
            </div>
            
            
            {% for area_name, test_cases in ai_tests.items %}
            {% if test_cases %}
            <div class="collapsible-area">
                <div class="area-header" onclick="toggleArea(this)">
                    <div style="display: flex; align-items: center; gap: 18px;">
                        {% if area_name == 'edge' %}
                            {% with 'samantha' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-exclamation-triangle" style="color: #2ecc71;"></i> Edge Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% elif area_name == 'interesting' %}
                            {% with 'zara' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-lightbulb" style="color: #f39c12;"></i> Interesting Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% elif area_name == 'ai_unique' %}
                            {% with 'richard' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-robot" style="color: #e74c3c;"></i> AI Unique Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% elif area_name == 'basic' %}
                            {% with 'ravi' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-check-circle" style="color: #4CAF50;"></i> Basic Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% elif area_name == 'long_flow' %}
                            {% with 'jason' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-route" style="color: #FF9800;"></i> Long Flow Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% elif area_name == 'search' %}
                            {% with 'jason' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-search" style="color: #2196F3;"></i> Search Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% elif area_name == 'forms' %}
                            {% with 'carlos' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-clipboard-list" style="color: #9C27B0;"></i> Forms Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% else %}
                            {% with 'aiden' as agent_name %}
                                <img src="images/{{ agent_name }}.jpg" alt="{{ agent_name }}" class="profile-image" style="width: 60px; height: 60px; max-width: 80px; max-height: 80px;">
                                <h3><i class="fas fa-cube" style="color: #607D8B;"></i> {{ area_name|title }} Cases <span style="font-size: 0.8em; color: rgba(255, 255, 255, 0.6);">({{ test_cases|length }})</span></h3>
                            {% endwith %}
                        {% endif %}
                    </div>
                    <span class="toggle-icon"><i class="fas fa-chevron-down"></i></span>
                </div>
                <div class="area-content">
                    {% for test_case in test_cases %}
                    <div class="test-execution">
                        <div class="test-header" onclick="toggleTest(this)">
                            <div style="display: flex; justify-content: space-between; align-items: center;">
                                <h4 style="margin: 0; font-weight: 700; font-size: 1.1em;" class="gradient-text">
                                    <i class="fas fa-vial" style="margin-right: 8px;"></i>{{ test_case.title }}
                                </h4>
                            </div>
                        </div>
                        <div class="test-content">
                            <div style="padding: 15px;">
                                <div class="test-name-container">
                                    <div style="display: flex; align-items: center; gap: 15px;">
                                        <div>
                                            <h4 style="font-weight: 400; font-size: 0.9em; color: rgba(255, 255, 255, 0.8); margin: 0 0 8px 0; cursor: pointer;">{{ test_case.overall_description }}</h4>
                                            <p style="margin: 0; font-size: 0.85em; color: rgba(255, 255, 255, 0.6); cursor: pointer;">{{ test_case.test_description }}</p>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="test-dropdown">
                                    <div class="test-dropdown-header" onclick="toggleTestDropdown(this)">
                                        <div class="test-dropdown-title">
                                            <i class="fas fa-clipboard-check"></i>
                                            <span>Test Details</span>
                                        </div>
                                        <span class="toggle-icon"><i class="fas fa-chevron-down"></i></span>
                                    </div>
                                    <div class="test-dropdown-content">
                                        {% if test_case.id %}
                                        <div class="test-field">
                                            <span class="test-field-label">Test ID</span>
                                            <span class="test-field-value">{{ test_case.id }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.title %}
                                        <div class="test-field">
                                            <span class="test-field-label">Test Name</span>
                                            <span class="test-field-value">{{ test_case.title }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.validation_conditions %}
                                        <div class="test-field">
                                            <span class="test-field-label">Validation Conditions</span>
                                            <span class="test-field-value">{{ test_case.validation_conditions }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.test_steps %}
                                        <div class="test-field">
                                            <span class="test-field-label">Test Steps</span>
                                            <span class="test-field-value">{{ test_case.test_steps }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.priority_reason %}
                                        <div class="test-field">
                                            <span class="test-field-label">Priority Reason</span>
                                            <span class="test-field-value">{{ test_case.priority_reason }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.if_fails_why_fix %}
                                        <div class="test-field">
                                            <span class="test-field-label">If Fails Why Fix</span>
                                            <span class="test-field-value">{{ test_case.if_fails_why_fix }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.probable_impact %}
                                        <div class="test-field">
                                            <span class="test-field-label">Probable Impact</span>
                                            <span class="test-field-value">{{ test_case.probable_impact }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.probable_cause %}
                                        <div class="test-field">
                                            <span class="test-field-label">Probable Cause</span>
                                            <span class="test-field-value">{{ test_case.probable_cause }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.route_to_engineer %}
                                        <div class="test-field">
                                            <span class="test-field-label">Route to Engineer</span>
                                            <span class="test-field-value">{{ test_case.route_to_engineer }}</span>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.data.expected_test_input_parameters and test_case.data.expected_test_input_parameters|length > 0 %}
                                        <div class="test-field">
                                            <span class="test-field-label">Expected Test Input Parameters</span>
                                            <div class="test-field-group">
                                                {% for param in test_case.data.expected_test_input_parameters %}
                                                <div class="test-field-group-item">
                                                    <div><strong>{{ param.name }}</strong>: {{ param.value }}</div>
                                                    {% if param.reason %}<div style="font-size: 0.85em; color: rgba(255, 255, 255, 0.6);">Reason: {{ param.reason }}</div>{% endif %}
                                                </div>
                                                {% endfor %}
                                            </div>
                                        </div>
                                        {% endif %}
                                        
                                        {% if test_case.data.expected_results and test_case.data.expected_results|length > 0 %}
                                        <div class="test-field">
                                            <span class="test-field-label">Expected Results</span>
                                            <div class="test-field-group">
                                                {% for result in test_case.data.expected_results %}
                                                <div class="test-field-group-item">
                                                    <div><strong>{{ result.name }}</strong>: {{ result.value }}</div>
                                                    {% if result.reason %}<div style="font-size: 0.85em; color: rgba(255, 255, 255, 0.6);">Reason: {{ result.reason }}</div>{% endif %}
                                                </div>
                                                {% endfor %}
                                            </div>
                                        </div>
                                        {% endif %}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {% endfor %}
                </div>
            </div>
            {% endif %}
            {% endfor %}
            
            {% if ai_tests.items|length == 0 %}
                <p class="no-data">No test data available.</p>
            {% endif %}
            
            <style>
                .test-dropdown {
                    margin-top: 15px;
                    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 40, 0.8));
                    border-radius: 12px;
                    overflow: hidden;
                    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
                    border: 1px solid rgba(46, 204, 113, 0.1);
                    position: relative;
                }

                .test-dropdown::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    height: 2px;
                    background: linear-gradient(to right, #2ecc71, #f39c12, #e74c3c);
                    opacity: 0.7;
                }
                
                .test-dropdown-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 12px 18px;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    background-color: rgba(255, 255, 255, 0.03);
                }
                
                .test-dropdown-header:hover {
                    background-color: rgba(255, 255, 255, 0.05);
                }
                
                .test-dropdown-title {
                    font-weight: 600;
                    color: rgba(255, 255, 255, 0.9);
                    font-size: 0.95em;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
                
                .test-dropdown-title i {
                    color: #2ecc71;
                    font-size: 1.1em;
                }
                
                .test-dropdown-content {
                    display: none;
                    padding: 0;
                    max-height: 0;
                    overflow: hidden;
                    transition: max-height 0.4s ease, padding 0.4s ease;
                }
                
                .test-dropdown-content.active {
                    display: block;
                    max-height: 2000px;
                    padding: 15px;
                }
                
                .test-field {
                    background: rgba(30, 30, 40, 0.5);
                    border-radius: 10px;
                    margin-bottom: 12px;
                    padding: 15px;
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
                    border-left: 3px solid #2ecc71;
                    transition: transform 0.2s ease, box-shadow 0.2s ease;
                }
                
                .test-field:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
                }
                
                .test-field:last-child {
                    margin-bottom: 0;
                }
                
                .test-field-label {
                    display: block;
                    font-size: 0.7em;
                    font-weight: 600;
                    color: rgba(255, 255, 255, 0.5);
                    margin-bottom: 8px;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                }
                
                .test-field-value {
                    display: block;
                    font-size: 0.95em;
                    color: rgba(255, 255, 255, 0.9);
                    line-height: 1.5;
                    font-weight: 400;
                    padding: 5px 0;
                    border-radius: 4px;
                }
                
                .test-field-empty {
                    font-style: italic;
                    color: rgba(255, 255, 255, 0.4);
                }
                
                .test-field-group {
                    margin-top: 10px;
                    background-color: rgba(255, 255, 255, 0.03);
                    border-radius: 8px;
                    padding: 2px;
                }
                
                .test-field-group-title {
                    font-size: 0.85em;
                    font-weight: 600;
                    color: rgba(255, 255, 255, 0.7);
                    margin-bottom: 8px;
                }
                
                .test-field-group-item {
                    padding: 10px;
                    margin-bottom: 8px;
                    background-color: rgba(255, 255, 255, 0.05);
                    border-radius: 6px;
                    border-left: 2px solid #f39c12;
                }
                
                .test-field-group-item:last-child {
                    margin-bottom: 0;
                }
                
                .test-field-group-item strong {
                    color: #2ecc71;
                    font-weight: 600;
                }
            </style>
            
            <script>
                function toggleArea(element) {
                    const content = element.nextElementSibling;
                    const icon = element.querySelector('.toggle-icon');
                    
                    if (content.classList.contains('active')) {
                        content.classList.remove('active');
                        icon.classList.remove('active');
                    } else {
                        content.classList.add('active');
                        icon.classList.add('active');
                    }
                }
                
                function toggleTestDropdown(element) {
                    const dropdown = element.closest('.test-dropdown').querySelector('.test-dropdown-content');
                    const icon = element.querySelector('.toggle-icon');
                    
                    if (dropdown) {
                        if (dropdown.classList.contains('active')) {
                            dropdown.classList.remove('active');
                            if (icon) icon.classList.remove('active');
                        } else {
                            dropdown.classList.add('active');
                            if (icon) icon.classList.add('active');
                        }
                    }
                }
                
                function toggleTest(element) {
                    const content = element.nextElementSibling;
                    const icon = element.querySelector('.toggle-icon');
                    
                    if (content.classList.contains('active')) {
                        content.classList.remove('active');
                        icon.classList.remove('active');
                    } else {
                        content.classList.add('active');
                        icon.classList.add('active');
                    }
                }
                
                // Expand first area by default and collapse all test cards
                document.addEventListener('DOMContentLoaded', function() {
                    // Expand first area
                    const firstArea = document.querySelector('.collapsible-area');
                    if (firstArea) {
                        const areaHeader = firstArea.querySelector('.area-header');
                        const areaContent = firstArea.querySelector('.area-content');
                        const areaIcon = areaHeader.querySelector('.toggle-icon');
                        
                        areaContent.classList.add('active');
                        areaIcon.classList.add('active');
                        
                        // Expand first test in the first area
                        const firstTest = areaContent.querySelector('.test-execution');
                        if (firstTest) {
                            const testHeader = firstTest.querySelector('.test-header');
                            const testContent = firstTest.querySelector('.test-content');
                            const testIcon = testHeader.querySelector('.toggle-icon');
                            
                            testContent.classList.add('active');
                            if (testIcon) testIcon.classList.add('active');
                            
                            // Expand the first test's dropdown
                            setTimeout(function() {
                                const firstDropdown = testContent.querySelector('.test-dropdown-content');
                                if (firstDropdown) {
                                    firstDropdown.classList.add('active');
                                    const dropdownIcon = testContent.querySelector('.test-dropdown-header .toggle-icon');
                                    if (dropdownIcon) dropdownIcon.classList.add('active');
                                }
                            }, 100);
                        }
                    }
                    
                    // Add smooth scrolling for better UX
                    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                        anchor.addEventListener('click', function (e) {
                            e.preventDefault();
                            document.querySelector(this.getAttribute('href')).scrollIntoView({
                                behavior: 'smooth'
                            });
                        });
                    });
                });
            </script>
        </div>
    </section>
    
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-logos">
                    <img src="{{brand_icon}}" alt="{{brand_name}} Logo" class="{{brand_name}}-logo">
                </div>
                <p>&copy; 2025 {{brand_name}}. All rights reserved.</p>
            </div>
        </div>
    </footer>
</body>
</html>
