* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.test-section {
    margin-bottom: 3rem;
}

.test-button {
    display: block;
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.test-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.test-button:active {
    transform: translateY(0);
}

.test-button.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.test-button.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.results.hidden {
    display: none;
}

.overall-result {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.overall-result.pass {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.overall-result.fail {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.overall-result.warn {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.status {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.message {
    font-size: 1.1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.results-header h3 {
    margin: 0;
    color: #495057;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox:hover .checkmark {
    border-color: #5a67d8;
    background: #f7fafc;
}

.filter-checkbox input[type="checkbox"]:checked:hover + .checkmark {
    background: #5a67d8;
}

.test-details {
    display: grid;
    gap: 0.75rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0.5rem 0;
    margin-top: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.category-header:first-child {
    margin-top: 0;
}

.category-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-stats {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.test-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

.test-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-name {
    font-weight: 500;
    color: #495057;
}

.test-result {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.test-result.pass {
    background: #28a745;
    color: white;
}

.test-result.fail {
    background: #dc3545;
    color: white;
}

.test-result.warn {
    background: #ffc107;
    color: #212529;
}

.test-result.tested {
    background: #6c757d;
    color: white;
}

.score-breakdown {
    text-align: left;
    margin-bottom: 10px;
}

.score-breakdown div {
    margin-bottom: 5px;
}

.fingerprint-item .fingerprint-value {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.875rem;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-info {
    background: #e3f2fd;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-left: 4px solid #2196f3;
}

.fix-suggestion {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3e0;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
    font-size: 0.9rem;
}

.fix-header {
    color: #e65100;
    margin-bottom: 0.5rem;
}

.fix-description {
    margin-bottom: 0.75rem;
    color: #5d4037;
}

.fix-steps {
    margin-bottom: 0.75rem;
}

.fix-steps ol {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.fix-steps li {
    margin-bottom: 0.25rem;
    color: #5d4037;
}

.fix-extension {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f3e5f5;
    border-radius: 4px;
    color: #4a148c;
    font-size: 0.85rem;
}

.fix-link {
    text-align: right;
}

.fix-link a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.fix-link a:hover {
    text-decoration: underline;
}

.test-info {
    flex: 1;
}

.test-item.passed-hidden {
    display: none;
}

.info-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-section h3 {
    margin-bottom: 1rem;
    color: #495057;
}

.info-section p {
    margin-bottom: 1rem;
    color: #6c757d;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.test-categories {
    margin: 1.5rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.category-grid > div {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    font-size: 0.9rem;
}

.category-grid strong {
    color: #495057;
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .test-button {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-checkbox {
        font-size: 0.85rem;
    }
} 