body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #a2c2e2, #b8c6db);
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background: #1e2a38;
    color: #e0e0e0;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #61dafb;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #2f3136;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* Allow vertical scrolling if needed */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar styles for the container */
.container::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.container::-webkit-scrollbar-thumb {
    background-color: #61dafb; /* Color of the scrollbar handle */
    border-radius: 10px; /* Rounded corners for the scrollbar handle */
    border: 2px solid #1e2a38; /* Border around the scrollbar handle */
}

.container::-webkit-scrollbar-track {
    background-color: #1e1e1e; /* Background color of the scrollbar track */
    border-radius: 10px; /* Rounded corners for the scrollbar track */
}

/* Style for each status section */
.status {
    margin-bottom: 20px;
    padding: 20px;
    background: #36393f; /* Dark background for each status section */
    border: 1px solid #4f545c; /* Border color */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.status:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.status-header {
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    align-items: center;
    margin-bottom: 10px;
}

.status-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #e0e0e0;
}

.status-badges {
    display: flex;
    flex-direction: column; /* Stack badges vertically */
    gap: 10px; /* Space between badges */
    align-items: flex-start; /* Align badges to the start of the container */
}

.status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent badge from shrinking */
    max-width: 120px; /* Optional: Set a maximum width to prevent excessive expansion */
    text-align: center; /* Center text within the badge */
}

.status-badge.online {
    background-color: #43b581; /* Green color for online */
}

.status-badge.detected {
    background-color: #a89532; /* Color for detected */
}

.status-badge.uncheckedsafety {
    background-color: #a89532; /* Color for uncheckedsafety */
}

.status-badge.safe {
    background-color: #43b581; /* Color for safe */
}

.status-badge.unsafe {
    background-color: #f04747; /* Color for unsafe */
}

.status-badge.external {
    background-color: #43b581; /* Color for external */
}

.status-badge.offline {
    background-color: #f04747; /* Red color for offline */
}

.status-body p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #b9bbbe; /* Light color for text */
}

footer {
    text-align: center;
    padding: 5px 10px; /* Reduced padding */
    background: #1e2a38;
    color: #e0e0e0;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 0.9em; /* Reduced font size */
}

.intro {
    margin-bottom: 20px;
    padding: 20px;
    background: #2f3136; /* Same background as the container for consistency */
    border: 1px solid #4f545c; /* Same border as the status sections */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro h2 {
    margin: 0;
    font-size: 2em;
    color: #e0e0e0;
}

.intro p {
    font-size: 1.1em;
    color: #b9bbbe;
}
