body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Slightly softer background */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px; /* Max width for better readability on larger screens */
    margin: 30px auto; /* Centered with some top/bottom margin */
    background-color: #fff;
    padding: 25px 30px; /* More padding */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

h1 {
    color: #2c3e50; /* Darker, more professional blue */
    margin-bottom: 10px;
    text-align: center;
}

p {
    margin-bottom: 15px;
    color: #555;
}

.input-group { /* Using a class for the input and button container */
    display: flex;
    margin-bottom: 25px;
}

input[type="text"]#websiteUrl {
    flex-grow: 1; /* Allows input to take available space */
    padding: 12px 15px; /* Larger padding */
    border: 1px solid #ccd1d9; /* Softer border color */
    border-radius: 5px 0 0 5px; /* Rounded corners on the left */
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding and border are inside the element's_width/height */
}

input[type="text"]#websiteUrl:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

button#scanButton {
    padding: 12px 20px; /* Larger padding */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0; /* Rounded corners on the right */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
}

button#scanButton:hover {
    background-color: #0056b3;
}

#loading {
    display: none;
    text-align: center;
    padding: 25px;
    font-size: 1.1rem;
    color: #555;
}

#loading p::before { /* Simple spinner using border */
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-infinite;
    vertical-align: middle;
}

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

#results {
    margin-top: 25px;
}

#results h2 {
    color: #34495e; /* Another shade of dark blue/grey */
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.result-item {
    background-color: #fdfdfd; /* Slightly off-white for items */
    border: 1px solid #e9ecef; /* Lighter border for items */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left-width: 5px; /* Keep the colored left border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.result-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem; /* Slightly larger heading for items */
    color: #333;
}

.result-item p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #454545;
}

.result-item p small {
    font-size: 0.85rem;
    color: #6c757d; /* Bootstrap's text-muted color */
    display: block; /* Make details take full width */
    margin-top: 5px;
    word-break: break-all; /* For long detail strings */
}

/* Status-specific styles */
.status-OK { border-left-color: #28a745; /* Green */ }
.status-WARNING { border-left-color: #ffc107; /* Yellow/Orange */ }
.status-ERROR { border-left-color: #dc3545; /* Red */ }
.status-INFO { border-left-color: #17a2b8; /* Teal/Blue */ }
.status-SKIPPED { border-left-color: #6c757d; /* Grey */ }
.status-UNDEFINED { border-left-color: #adb5bd; /* Lighter Grey */ } /* For undefined/malformed status */

/* Style for the status text itself within the h3 tag */
.status-text {
    font-weight: bold;
}
.status-OK .status-text { color: #28a745; }
.status-WARNING .status-text { color: #b08000; } /* Darker yellow for text */
.status-ERROR .status-text { color: #dc3545; }
.status-INFO .status-text { color: #17a2b8; }
.status-SKIPPED .status-text { color: #6c757d; }
.status-UNDEFINED .status-text { color: #495057; }


/* Responsive adjustments (optional, but good practice) */
@media (max-width: 600px) {
    .container {
        margin: 15px;
        padding: 20px;
    }

    .input-group {
        flex-direction: column; /* Stack input and button on small screens */
    }

    input[type="text"]#websiteUrl {
        border-radius: 5px; /* Full rounded corners when stacked */
        margin-bottom: 10px; /* Space between input and button */
    }

    button#scanButton {
        border-radius: 5px; /* Full rounded corners when stacked */
        width: 100%; /* Make button full width */
    }

    .result-item h3 {
        font-size: 1rem;
    }

    .result-item p {
        font-size: 0.9rem;
    }
}