body {
    background-color: #d3d3d3; /* Light gray body */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #4a4a4a; /* Dark grey header and footer */
    color: white;
    padding: 10px 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

header .header-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ccc;
    object-fit: cover;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2em;
    margin: 0;
    flex-grow: 1;
}

footer {
    text-align: center;
}

footer p {
    font-size: 0.9em;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    display: flex; /* Flex layout for sidebar and main content */
}

.sidebar {
    width: 250px;
    background-color: #f0f0f0; /* Light gray sidebar */
    padding: 20px;
    flex-shrink: 0; /* Prevent shrinking */
}

.sidebar h3 {
    color: #333;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar nav ul li {
    margin: 10px 0;
}

.sidebar nav ul li a {
    color: black;
    text-decoration: none;
    padding: 5px 0;
    display: block;
}

.sidebar nav ul li a:hover {
    text-decoration: underline;
    color: #007BFF; /* Blue hover effect */
}

main {
    flex-grow: 1; /* Allow main content to take remaining space */
    padding: 20px;
    background-color: #e8e8e8; /* Escort grey for main content */
}

h2, h3 {
    color: #333; /* Darker text for headings */
    margin: 10px 0;
}

ul {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 20px;
}

.online {
    color: white;
    background-color: green;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

.offline {
    color: white;
    background-color: red;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

/* Staff profile styling */
.staff-profile {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.staff-profile img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border: 3px solid #007BFF;
}

.staff-profile div {
    flex: 1;
}

.staff-profile h3 {
    margin-top: 0;
    color: #007BFF;
}

/* Contact form styling */
.contact-form {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #333;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.contact-form button {
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.logo {
    display: block;
    margin: 20px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #333;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Server info styling */
.server-info {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.server-info h3 {
    margin-top: 0;
    color: #007BFF;
}

/* Success/Error messages */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 600px) {
    header, footer {
        font-size: 14px;
    }
    
    .container {
        flex-direction: column; /* Stack sidebar and main content vertically */
    }
    
    .sidebar {
        width: 100%;
    }
    
    main {
        padding: 10px;
    }
    
    .staff-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .staff-profile img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* CAPTCHA styling */
.captcha-container {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.captcha-question {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #e8f4fd;
    border: 1px solid #007BFF;
    border-radius: 5px;
    text-align: center;
    color: #333;
}

.captcha-input {
    width: 80px;
    text-align: center;
    font-size: 16px;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.captcha-input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.refresh-captcha {
    background: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.refresh-captcha:hover {
    background: #0056b3;
}

.captcha-help {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive CAPTCHA styling */
@media (max-width: 600px) {
    .captcha-question {
        font-size: 16px;
        padding: 10px;
    }
    
    .captcha-input {
        width: 60px;
        margin-right: 5px;
    }
    
    .refresh-captcha {
        padding: 6px 10px;
        font-size: 11px;
    }
}