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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
}

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

h1 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tabs-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab.active {
    color: #667eea;
    background: white;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.tab-content {
    display: none;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.test-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.test-section h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
}

.test-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.test-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.url {
    font-family: 'Courier New', monospace;
    color: #495057;
    font-weight: 600;
    margin-bottom: 6px;
    word-break: break-all;
    font-size: 0.9em;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 6px;
}

.status.testing {
    background: #ffc107;
    color: #000;
}

.status.success {
    background: #28a745;
    color: white;
}

.status.error {
    background: #dc3545;
    color: white;
}

.details {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 6px;
}

.image-preview {
    max-width: 250px;
    max-height: 250px;
    margin-top: 8px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    display: none;
}

.image-preview.show {
    display: block;
}

.summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.summary h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.summary-number {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.85em;
    opacity: 0.9;
}

.refresh-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

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

    100% {
        transform: rotate(360deg);
    }
}

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

.info-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-size: 0.75em;
    color: #6c757d;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1em;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}
