/* --- Main Body and General Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* --- Layout Panels and Containers --- */
.nav-panel {
    width: 80%;
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-container {
    margin-bottom: 0; /* Adjusted from 30px as nav-panel provides margin */
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.section-container h2 {
    color: #3498db; /* A friendly blue */
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* --- Table Styles for Links and Status --- */
.section-container table {
    width: 100%;
    border-collapse: collapse;
}

.section-container table td {
    padding: 10px 5px;
    border-bottom: 1px solid #f0f0f0;
}

.section-container table tr:last-child td {
    border-bottom: none;
}

/* Styles for Links (from your original CSS) */
.section-container table a {
    text-decoration: none;
    color: #2980b9;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.section-container table a:hover {
    color: #1abc9c; /* A friendly green for hover */
    padding-left: 5px;
    text-decoration: none;
}

/* --- Specific Styles for the Server Status Section --- */
.status-cell {
    text-align: right; /* Aligns badges and bars to the right */
    width: 160px;      /* Gives a fixed width to align items vertically */
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    min-width: 70px;
    text-align: center;
}

.status-ok { background-color: #28a745; }
.status-down { background-color: #dc3545; }
.status-info { background-color: #17a2b8; }

.progress-bar {
    display: inline-block;
    width: 150px;
    height: 22px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    vertical-align: middle; /* Aligns better within the table cell */
}

.progress-bar-inner {
    height: 100%;
    background-color: #007bff;
    text-align: center;
    color: white;
    font-size: 13px;
    line-height: 22px; /* Match the height of the progress bar */
    font-weight: bold;
}

/* --- Responsive Styles for Mobile --- */
@media (max-width: 600px) {
    .nav-panel {
        width: 95%;
        padding: 15px;
    }
    .section-container h2 {
        font-size: 1.3em;
    }
    .section-container table {
        font-size: 0.9rem;
    }
    .status-cell {
        width: 130px; /* Slightly smaller for mobile */
    }
    .progress-bar {
        width: 120px;
    }
}
 /* --- START OF YOUR ORIGINAL CSS --- */
        .status-indicator {
            height: 15px;
            width: 15px;
            border-radius: 50%;
            display: inline-block;
            vertical-align: middle;
            box-shadow: 0 0 7px rgba(0, 0, 0, 0.4);
        }
        .status-indicator-green {
            background-color: #28a745; /* Green */
        }
        .status-indicator-red {
            background-color: #dc3545; /* Red */
        }
        /* --- END OF YOUR ORIGINAL CSS --- */

        /* --- START OF NEW CSS FOR SERVER STATUS --- */
        .status-cell {
            text-align: right;
            width: 160px;
        }
        .status-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: bold;
            color: white;
            min-width: 70px;
            text-align: center;
        }
        .status-ok { background-color: #28a745; }
        .status-down { background-color: #dc3545; }
        .status-info { background-color: #17a2b8; }
        .progress-bar {
            display: inline-block;
            width: 150px;
            height: 22px;
            background-color: #e9ecef;
            border-radius: 5px;
            overflow: hidden;
            vertical-align: middle;
        }
        .progress-bar-inner {
            height: 100%;
            background-color: #007bff;
            text-align: center;
            color: white;
            font-size: 13px;
            line-height: 22px;
            font-weight: bold;
        }
        /* --- END OF NEW CSS --- */

        /* --- START OF CSS FOR REVENUE SECTION --- */
        .revenue-table {
            width: 100%;
            border-collapse: collapse;
        }
        .revenue-table td {
            padding: 8px;
            border: 1px solid #ddd;
            width: 25%; /* Distribute width equally among 4 columns */
        }
        .revenue-label {
            font-weight: bold;
            background-color: #f9f9f9; /* Light background for labels */
        }
        .revenue-value {
            text-align: right;
        }
        /* --- END OF CSS FOR REVENUE SECTION --- */