/* Ensure the entire body has proper margins and padding */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Header with centered logo and aligned logout button */
header {
    display: flex;
    justify-content: space-between; /* Distribute logo and logout button */
    align-items: center; /* Vertically center the items */
    padding: 10px 20px;
    background-color: #f8f8f8; /* Light background for header */
}

/* Center the logo */
header .logo {
    display: block;
    margin: 0 auto;
    height: 50px; /* You can adjust the height based on your logo size */
}

/* Style for logout button */
header form button {
    background-color: #007bff; /* Blue button */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

header form button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* General container padding */
.container {
    padding: 20px;
}

/* Main content styles */
.main-content {
    text-align: center;
    margin-top: 30px;
}

/* Services Section styling */
.services-box {
    margin-top: 20px;
}

.services-box a {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.services-box a:hover {
    color: #0056b3;

}

.username {
    margin-left: 20px;
    text-align: left;
}
.services-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    width: 300px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: auto; /* Align left */
}
.services-box h2 {
    margin: 10px 0;
}
.services-box a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}
.services-box a:hover {
    background-color: #0056b3;
}
.main-content {
    display: flex;
    flex-direction: row;
    width: 80%;
    margin-top: 20px;
}
.welcome-section {
    flex: 1;
    margin-left: 20px;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    text-align: center;
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 2px solid #dce7f1;
}

header form {
    margin: 0;
}

header button {
    background-color: #008ecc;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1rem;
    
}

header button:hover {
    background-color: #e92020;
}

.logo {
    margin: 20px auto;
    display: block;
}

h1 {
    font-size: 2.5rem;
    color: #007acc;
    margin: 20px 0;
}

.btn {
    text-decoration: none;
    display: inline-block;
    background-color: #007acc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    margin: 20px auto;
}

.btn:hover {
    background-color: #ff1e69;
}

.btn-update-profile {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007acc; /* Light blue background */
    color: #ffffff; /* White text */
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.btn-update-profile:hover {
    background-color: #005a99; /* Darker blue on hover */
}


/* Style for the Important Notice Box */
.important-notice-box {
    position: fixed;   /* Fixes the box in place */
    left: 20px;        /* Distance from the left side */
    bottom: 20px;      /* Distance from the bottom */
    width: 300px;      /* Set a width for the box */
    padding: 15px;     /* Add padding inside the box */
    background-color: #f8d7da; /* Light red background */
    color: #721c24;    /* Dark red text */
    border: 1px solid #f5c6cb; /* Light border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 9999;     /* Make sure the box is on top */
    font-family: Arial, sans-serif; /* Optional font */
}

.important-notice-box h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.important-notice-box ul {
    list-style: none;
    padding: 0;
}

.important-notice-box li {
    margin-bottom: 10px;
}

.important-notice-box p {
    font-size: 14px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    /* Body adjustments */
    body {
        padding: 10px;
    }

    /* Header adjustments */
    header {
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally */
        text-align: center;
    }

    header .logo {
        margin: 10px 0;
        height: 40px; /* Adjust size for smaller screens */
    }

    header form button {
        margin: 10px 0;
        width: 100%; /* Stretch button to full width */
        max-width: 300px;
    }

    /* Main content adjustments */
    .main-content {
        flex-direction: column; /* Stack sections vertically */
        width: 100%;            /* Full width for smaller screens */
        margin-top: 10px;
    }

    .welcome-section {
        margin: 0 0 20px; /* Add spacing below */
    }

    /* Services Section adjustments */
    .services-box {
        position: static; /* Remove fixed positioning */
        margin: 20px auto; /* Center it */
        width: 100%; /* Full width */
        max-width: 350px; /* Limit maximum width */
    }

    .services-box select {
        width: 100%; /* Ensure dropdown fills the container */
    }

    

    /* Button adjustments */
    .btn,
    .btn-update-profile {
        width: 100%; /* Full width for buttons */
        max-width: 300px;
        padding: 10px;
        font-size: 1rem;
        margin: 10px 0;
    }

    /* Dropdown adjustments */
    .services-box label {
        font-size: 14px; /* Slightly smaller text */
    }

    .services-box select option {
        font-size: 14px; /* Adjust font size for options */
    }

    /* H1 font size */
    h1 {
        font-size: 2rem; /* Reduce size slightly for small screens */
    }
}
/* Responsive Styling for Important Notice Box */
@media (max-width: 768px) {
    /* Important Notice Box adjustments for mobile view */
    .important-notice-box {
        position: fixed;
        bottom: 10px; /* Keep it at the bottom */
        left: 50%; /* Center horizontally */
        transform: translateX(-150%); /* Adjust for centering */
        width: 90%; /* Take most of the screen width */
        max-width: 200px; /* Limit maximum width */
        padding: 15px; /* Adequate padding for readability */
        font-size: 14px; /* Smaller font size */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slightly more shadow for better visibility */
    }

    .important-notice-box h2 {
        font-size: 16px; /* Slightly smaller header size */
        margin-bottom: 10px;
    }

    .important-notice-box p,
    .important-notice-box li {
        font-size: 13px; /* Smaller text for mobile readability */
        margin-bottom: 8px; /* Adjust spacing */
    }

    .important-notice-box ul {
        padding-left: 15px; /* Add some padding for the list */
    }
}
