@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    width: 100%;
    text-align: center;
}

header .logo {
    max-width: 150px;
    margin-bottom: 15px;
}

header h1 {
    color: #222;
    margin-top: 0;
    margin-bottom: 25px;
}

.platform-selector-container {
    margin: 20px 0;
    text-align: left;
}

.platform-selector-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

#platformSelector {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
}

#runTestsBtn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 10px;
}

#runTestsBtn:hover {
    background-color: #0056b3;
}

#runTestsBtn:active {
    transform: scale(0.98);
}

#runTestsBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#results {
    margin-top: 30px;
    text-align: left;
}

#results h2 {
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#results ul {
    list-style-type: none;
    padding: 0;
}

#results li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
}

#results .endpoint-name {
    font-weight: 500;
    margin-bottom: 5px;
    width: 100%;
}

#results code {
    background-color: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
}

.status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-top: 5px;
    flex-shrink: 0;
}

.status.pending {
    color: #555;
    background-color: #e0e0e0;
}

.status.success::before {
    content: '✓ ';
    color: #1d643b;
}
.status.success {
    color: #1d643b;
    background-color: #d4edda;
}

.status.failure::before {
    content: '✗ ';
    color: #721c24;
}
.status.failure {
    color: #721c24;
    background-color: #f8d7da;
}

#summary {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    border-left: 5px solid;
}
#summary h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
}
#summary h3::before {
    font-size: 1.5em;
    margin-right: 10px;
}
#summary p, #summary ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.summary-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.summary-success h3::before {
    content: '✓';
    color: #28a745;
}

.summary-failure {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}
.summary-failure h3::before {
    content: '⚠️';
    color: #ffc107;
}

.recommendation-box {
    margin-top: 30px;
    padding: 20px;
    border: 2px dashed #007bff;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.recommendation-box h3 {
    margin-top: 0;
    color: #004085;
}

.command-block {
    display: block;
    background-color: #212529;
    color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid #444;
}

footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #999;
}

footer small {
    display: block;
    margin-top: 5px;
}