:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --text-primary: #1a1a2e;
    --text-blue: #2563eb;
    --text-grey: #6b7280;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #e8e8e8 0%, #f5f5f5 50%, #e0e0e0 100%);
    min-height: 100vh;
    padding: 2rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
}

.container {
    max-width: 700px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-img {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

main {
    background: var(--bg-card);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

.test-status {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.test-status p {
    font-size: 1.35rem;
    color: var(--text-grey);
    font-family: 'Roboto', sans-serif;
}

.results {
    display: block;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    gap: 2rem;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.label {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 140px;
    font-size: 1.25rem;
}

.value-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex: 1;
}

.value {
    font-family: 'Roboto', sans-serif;
    color: var(--text-blue);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
    font-size: 1.25rem;
    line-height: 1.5;
}

.hostname {
    font-family: 'Roboto', sans-serif;
    color: var(--text-grey);
    font-size: 1rem;
    text-align: right;
    word-break: break-all;
    line-height: 1.4;
}

.status-message {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    color: #ef4444;
    font-size: 1.25rem;
    font-weight: 600;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-size: 14px;
    font-weight: bold;
    vertical-align: middle;
}

.status-icon.success {
    background-color: #10b981;
    color: white;
}

.status-icon.warning {
    background-color: #f59e0b;
    color: white;
    border-radius: 0.3rem;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding-top: 4px;
}

@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
        padding-top: 2rem;
    }
    
    .logo-img {
        height: 110px;
    }
    
    header {
        margin-bottom: 1.5rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }
    
    .label {
        min-width: auto;
        font-size: 1.25rem;
    }
    
    .value-container {
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .value {
        text-align: left;
        font-size: 1.15rem;
    }
    
    .hostname {
        text-align: left;
        font-size: 1rem;
    }
    
    .status-message {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        font-size: 1.15rem;
    }
}
