/* Reset and base styles with prefix */
        .pqc-container * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        /* Main container with prefix */
        .pqc-container {
            --pqc-primary-color: #3498db;
            --pqc-secondary-color: #2ecc71;
            --pqc-warning-color: #f39c12;
            --pqc-danger-color: #e74c3c;
            --pqc-light-gray: #ecf0f1;
            --pqc-dark-gray: #7f8c8d;
            
            max-width: 100%;
            margin: 0;
            padding: 15px;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            font-size: 16px;
        }

        .pqc-container .pqc-main-box {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        /* Typography */
        .pqc-container h1, 
        .pqc-container h2, 
        .pqc-container h3 {
            color: var(--pqc-primary-color);
            margin-bottom: 15px;
        }

        .pqc-container h1 {
            font-size: 24px;
            border-bottom: 2px solid var(--pqc-light-gray);
            padding-bottom: 10px;
        }

        .pqc-container h2 {
            font-size: 20px;
            margin-top: 25px;
        }

        .pqc-container h3 {
            font-size: 18px;
        }

        /* Upload section */
        .pqc-container .pqc-upload-section {
            border: 2px dashed #ccc;
            padding: 25px 15px;
            text-align: center;
            margin-bottom: 20px;
            border-radius: 8px;
            transition: all 0.3s ease;
            background-color: #fafafa;
        }

        .pqc-container .pqc-upload-section:hover {
            border-color: var(--pqc-primary-color);
            background-color: #f0f8ff;
        }

        .pqc-container .pqc-upload-section.pqc-highlight {
            border-color: var(--pqc-secondary-color);
            background-color: #f0fff4;
        }

        /* Preview section */
        .pqc-container .pqc-preview-container {
            position: relative;
            margin: 20px 0;
            display: none;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .pqc-container .pqc-preview {
            max-width: 100%;
            display: block;
        }

        .pqc-container .pqc-preview-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .pqc-container .pqc-preview-container:hover .pqc-preview-overlay {
            opacity: 1;
        }

        /* Results section */
        .pqc-container .pqc-results {
            margin-top: 20px;
            padding: 15px;
            background-color: var(--pqc-light-gray);
            border-radius: 8px;
            display: none;
        }

        .pqc-container .pqc-result-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #ddd;
        }

        .pqc-container .pqc-result-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .pqc-container .pqc-result-label {
            font-weight: bold;
            margin-bottom: 5px;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .pqc-container .pqc-progress-container {
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            margin-top: 5px;
            overflow: hidden;
        }

        .pqc-container .pqc-progress-bar {
            height: 100%;
            background-color: var(--pqc-secondary-color);
            width: 0%;
            transition: width 0.5s ease;
        }

        /* Tables */
        .pqc-container table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            font-size: 14px;
            overflow-x: auto;
            display: block;
        }

        .pqc-container th, 
        .pqc-container td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        .pqc-container th {
            background-color: var(--pqc-primary-color);
            color: white;
        }

        .pqc-container tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        .pqc-container tr:hover {
            background-color: #e9e9e9;
        }

        /* Status classes */
        .pqc-container .pqc-compliant {
            color: var(--pqc-secondary-color);
            font-weight: bold;
        }

        .pqc-container .pqc-warning {
            color: var(--pqc-warning-color);
            font-weight: bold;
        }

        .pqc-container .pqc-non-compliant {
            color: var(--pqc-danger-color);
            font-weight: bold;
        }

        /* Form elements */
        .pqc-container select, 
        .pqc-container input[type="file"], 
        .pqc-container input[type="number"] {
            padding: 12px;
            margin: 10px 0;
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: white;
            font-size: 16px;
            transition: border 0.3s ease;
        }

        .pqc-container select:focus, 
        .pqc-container input[type="file"]:focus, 
        .pqc-container input[type="number"]:focus {
            outline: none;
            border-color: var(--pqc-primary-color);
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        .pqc-container button {
            background-color: var(--pqc-primary-color);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            margin-top: 10px;
            width: 100%;
        }

        .pqc-container button:hover {
            background-color: #2980b9;
        }

        /* Tooltip */
        .pqc-container .pqc-tooltip {
            position: relative;
            display: inline-block;
            cursor: help;
            margin-left: 5px;
        }

        .pqc-container .pqc-tooltip .pqc-tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: #555;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 14px;
            font-weight: normal;
        }

        .pqc-container .pqc-tooltip:hover .pqc-tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* Color check */
        .pqc-container .pqc-color-check {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }

        .pqc-container .pqc-color-swatch {
            width: 20px;
            height: 20px;
            border: 1px solid #ddd;
            margin-right: 10px;
            border-radius: 3px;
        }

        /* Tabs */
        .pqc-container .pqc-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #ddd;
            overflow-x: auto;
            white-space: nowrap;
        }

        .pqc-container .pqc-tab {
            padding: 10px 15px;
            cursor: pointer;
            border: 1px solid transparent;
            border-bottom: none;
            border-radius: 5px 5px 0 0;
            margin-right: 5px;
            background-color: #f1f1f1;
        }

        .pqc-container .pqc-tab.pqc-active {
            background-color: white;
            border-color: #ddd;
            border-bottom: 1px solid white;
            margin-bottom: -1px;
            font-weight: bold;
            color: var(--pqc-primary-color);
        }

        .pqc-container .pqc-tab-content {
            display: none;
        }

        .pqc-container .pqc-tab-content.pqc-active {
            display: block;
        }

        /* File info */
        .pqc-container .pqc-file-info {
            margin-top: 10px;
            font-size: 14px;
            color: var(--pqc-dark-gray);
        }

        /* Responsive grid for custom settings */
        .pqc-container .pqc-custom-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 10px;
        }

        /* FAQ items */
        .pqc-container .pqc-faq-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }

        .pqc-container .pqc-faq-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        /* Hide file input visually but keep it accessible */
        .pqc-container .pqc-file-input {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

        /* Desktop-specific styles */
        @media (min-width: 768px) {
            .pqc-container {
                padding: 30px;
                max-width: 1200px;
                margin: 30px auto;
            }
            
            .pqc-container .pqc-main-box {
                padding: 30px;
            }
            
            .pqc-container h1 {
                font-size: 28px;
            }
            
            .pqc-container h2 {
                font-size: 22px;
            }
            
            .pqc-container h3 {
                font-size: 19px;
            }
            
            .pqc-container .pqc-upload-section {
                padding: 40px;
            }
            
            .pqc-container .pqc-results {
                padding: 25px;
            }
            
            .pqc-container .pqc-custom-grid {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }
            
            .pqc-container button {
                width: auto;
                padding: 12px 25px;
                min-width: 150px;
            }
            
            .pqc-container .pqc-preview-overlay button {
                margin: 5px;
            }
            
            .pqc-container .pqc-tabs {
                overflow-x: visible;
                white-space: normal;
            }
            
            .pqc-container .pqc-tab {
                padding: 12px 20px;
            }
            
            /* Two-column layout for desktop */
            .pqc-container .pqc-two-column {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 30px;
                margin-top: 25px;
            }
            
            /* Quality checker layout */
            .pqc-container .pqc-checker-layout {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 30px;
                align-items: start;
            }
        }

        /* Large desktop styles */
        @media (min-width: 992px) {
            .pqc-container h1 {
                font-size: 32px;
            }
            
            .pqc-container .pqc-main-box {
                padding: 40px;
            }
            
            .pqc-container .pqc-upload-section {
                padding: 50px;
            }
            
            .pqc-container .pqc-preview-overlay button {
                padding: 14px 30px;
                font-size: 16px;
            }
            
            .pqc-container table {
                font-size: 15px;
            }
            
            .pqc-container th, 
            .pqc-container td {
                padding: 12px 15px;
            }
        }

        /* Mobile-specific adjustments */
        @media (max-width: 767px) {
            .pqc-container {
                padding: 15px;
            }
            
            .pqc-container .pqc-main-box {
                padding: 15px;
            }
            
            .pqc-container .pqc-upload-section {
                padding: 25px 15px;
            }
            
            .pqc-container th, 
            .pqc-container td {
                padding: 8px;
                font-size: 14px;
            }
            
            .pqc-container button {
                padding: 12px;
            }
            
            .pqc-container .pqc-tab {
                padding: 8px 12px;
                font-size: 14px;
            }
            
            .pqc-container .pqc-file-info {
                font-size: 13px;
            }
        }
    </style>