/* API Key Tester - Modern Styles with Custom Color Scheme */

/* CSS Custom Properties for Salient-inspired design */
:root {
    /* Primary Colors - More sophisticated palette */
    --primary-900: #0c4a6e;
    --primary-800: #075985;
    --primary-700: #0369a1;
    --primary-600: #0284c7;
    --primary-500: #0ea5e9;
    --primary-400: #38bdf8;
    --primary-300: #7dd3fc;
    --primary-200: #bae6fd;
    --primary-100: #e0f2fe;
    --primary-50: #f0f9ff;
    
    /* Neutral Colors - Cleaner grays */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    
    /* Accent Colors */
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --rose-600: #dc2626;
    --rose-500: #ef4444;
    
    /* White */
    --white: #ffffff;
    
    /* Legacy support */
    --dark-blue: var(--primary-800);
    --blue: var(--primary-600);
    --light-blue: var(--primary-400);
    --sky-blue: var(--primary-200);
    --slate-900: var(--gray-900);
    --slate-800: var(--gray-800);
    --slate-700: var(--gray-700);
    --slate-600: var(--gray-600);
    --slate-500: var(--gray-500);
    --slate-400: var(--gray-400);
    --slate-300: var(--gray-300);
    --slate-200: var(--gray-200);
    --slate-100: var(--gray-100);
    --slate-50: var(--gray-50);
    --emerald: var(--emerald-500);
    --emerald-light: var(--emerald-500);
    --amber: var(--amber-500);
    --amber-light: var(--amber-500);
    --rose: var(--rose-500);
    --rose-light: var(--rose-500);
    --jet: var(--gray-800);
    --silver: var(--gray-400);
    --persian-red: var(--rose-500);
    --chili-red: var(--rose-500);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
    background: var(--white);
    color: var(--gray-900);
    padding: 3rem 0 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    pointer-events: none;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.subtitle .highlight {
    color: var(--primary-600);
    font-weight: 600;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-indicator svg {
    width: 16px;
    height: 16px;
    color: var(--emerald-500);
}

/* Navigation */
nav {
    margin-top: 1rem;
}

/* Main Content */
main {
    padding: 3rem 4rem 4rem 0;
    background: var(--white);
    min-height: calc(100vh - 200px);
    margin-top: 0;
    /* border-radius: 20px 20px 0 0; */
}

/* Intro Section */
.intro {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin: 0 0 3rem 0;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.3s ease;
}

.intro:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.intro h2 {
    color: var(--gray-900);
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.025em;
}

.intro ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.intro li {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid var(--primary-500);
}

.intro li:hover {
    background: var(--primary-50);
    border-left-color: var(--primary-600);
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2), 0 2px 4px -1px rgba(14, 165, 233, 0.1);
}

.intro li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue) 0%, var(--light-blue) 100%);
    border-radius: 0 2px 2px 0;
}

/* Filters */
.filters {
    margin-bottom: 3rem;
}

.filters h3 {
    margin-bottom: 1.5rem;
    color: var(--slate-800);
    font-size: 1.8rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.filter-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: var(--primary-50);
}

.filter-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--white);
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}


/* Providers Grid */
.providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--emerald-500) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.provider-card:hover::before {
    transform: scaleX(1);
}

.provider-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
    border-color: var(--primary-300);
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.provider-header h4 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    flex: 1;
    letter-spacing: -0.025em;
}

.provider-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.success {
    background: var(--emerald-100);
    color: var(--emerald-800);
    border: 1px solid var(--emerald-200);
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.badge.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge.info {
    background: var(--primary-100);
    color: var(--primary-800);
    border: 1px solid var(--primary-200);
}

.provider-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

.provider-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3), 0 2px 4px -1px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4), 0 4px 6px -2px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Documentation Link */
.docs-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.docs-link:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Provider Info Page */
.provider-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
}

.provider-info .provider-header {
    margin-bottom: 1.5rem;
}

.provider-info h2 {
    color: var(--gray-900);
    font-size: 1.875rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.provider-links {
    margin-top: 1.5rem;
}

/* White Container */
.white-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.3s ease;
}

.white-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Test Form */
.test-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
}

.test-form h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2), 0 2px 4px -1px rgba(245, 158, 11, 0.1);
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.warning-box h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box p {
    color: #92400e;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border: 2px solid var(--primary-300);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2), 0 2px 4px -1px rgba(14, 165, 233, 0.1);
}

.info-box::before {
    content: '💻';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.info-box h3 {
    color: var(--primary-800);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    color: var(--primary-700);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.curl-box {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1f2937 100%);
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.curl-box::before {
    content: '$';
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--emerald-400);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: bold;
    font-size: 1rem;
}

.curl-box code {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--gray-100);
    word-break: break-all;
    background: transparent;
    padding: 0;
    margin-left: 1.5rem;
}

/* Curl Instructions */
.curl-instructions {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.curl-instructions h4 {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.curl-instructions ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.curl-instructions li {
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.curl-instructions li strong {
    color: var(--gray-900);
    font-weight: 600;
}

.terminal-tips {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 8px;
    padding: 1rem;
}

.terminal-tips h5 {
    color: var(--primary-800);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-tips ul {
    margin: 0;
    padding-left: 1.25rem;
}

.terminal-tips li {
    margin-bottom: 0.5rem;
    color: var(--primary-700);
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-tips code {
    background: var(--primary-100);
    color: var(--primary-800);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Results */
.results {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 1px solid var(--slate-200);
    position: relative;
    overflow: hidden;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--light-blue) 100%);
}

.status {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid;
}

.status.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: var(--emerald);
}

.status.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: var(--rose);
}

.status.blocked {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: var(--amber);
}

.result-details p {
    margin-bottom: 0.5rem;
}

.response-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.response-preview h4 {
    margin-bottom: 1rem;
    color: var(--slate-800);
}

.response-preview pre {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
    max-height: 300px;
}

/* Footer */
footer {
    background: var(--white);
    color: var(--gray-600);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue) 50%, var(--light-blue) 100%);
}

/* Shadow utilities */
.shadow-strong {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .providers {
        grid-template-columns: 1fr;
    }
    
    .provider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .provider-actions {
        width: 100%;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .docs-link {
        text-align: left;
        justify-content: flex-start;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .curl-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .curl-box code {
        word-break: break-all;
    }
}

/* Loading States */
.btn-loading {
    display: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Typography improvements for info sections */
.use-cases h3,
.supported-responses h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.use-cases ul,
.supported-responses ul {
    list-style: none;
    padding: 0;
}

.use-cases li,
.supported-responses li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.use-cases li::before,
.supported-responses li::before {
    content: '•';
    color: var(--primary-500);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.tester-intro p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* API Key Instructions */
.api-key-instructions {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.api-key-instructions h3 {
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructions-content {
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.6;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.instructions-content br {
    margin-bottom: 0.5rem;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-600);
    font-weight: 600;
    font-size: 0.875rem;
}

.success-indicator::before {
    content: '✓';
    background: var(--emerald-100);
    color: var(--emerald-600);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--emerald-50);
    color: var(--emerald-700);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--emerald-200);
}

.security-badge::before {
    content: '🔒';
    font-size: 0.875rem;
}

/* Accessibility */
.btn:focus,
.filter-btn:focus,
input:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Troubleshooting Section */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.issue-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.issue-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.issue-card h4 {
    margin: 0 0 0.5rem 0;
    color: #dc3545;
    font-size: 1.1rem;
}

.issue-card p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.issue-card strong {
    color: #495057;
}

/* Key Format Section */
.format-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.format-example {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid;
}

.format-example.valid {
    background: #d4edda;
    border-color: #c3e6cb;
}

.format-example.invalid {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.format-example h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.format-example code {
    display: block;
    background: rgba(0,0,0,0.1);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.format-example p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* FAQ Section */
.faq-list {
    margin-top: 1rem;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-item h4:hover {
    color: #007bff;
}

.faq-item p {
    margin: 0;
    line-height: 1.6;
    color: #6c757d;
}

/* Related Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-card {
    display: block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.tool-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.tool-card h4 {
    margin: 0 0 0.5rem 0;
    color: #007bff;
    font-size: 1.1rem;
}

.tool-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Enhanced Info Section */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

/* Popular Testers Section */
.popular-testers {
    margin: 3rem 0;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.popular-testers h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #495057;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.popular-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.popular-card h3 {
    margin: 0 0 0.75rem 0;
    color: #007bff;
    font-size: 1.2rem;
}

.popular-card p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.popular-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Home FAQ Section */
.home-faq {
    margin: 3rem 0;
    padding: 2rem 0;
}

.home-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #495057;
}

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

.home-faq .faq-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.home-faq .faq-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-faq .faq-item h3 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1.1rem;
}

.home-faq .faq-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.home-faq .faq-item a {
    color: #007bff;
    text-decoration: none;
}

.home-faq .faq-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    
    .format-examples {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-testers {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .home-faq {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
}

/* Print Styles */
@media print {
    .btn,
    .filter-buttons,
    .test-form,
    .warning-box,
    .troubleshooting-section,
    .faq-section,
    .related-tools {
        display: none;
    }
    
    .provider-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .format-examples {
        grid-template-columns: 1fr;
    }
}
