body {
    font-family: century gothic;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

/* Header */
.header-container {
    background-color: #3300ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo img {
    height: 80px;
    width: 80px;
    margin-right: 20px;
    border-radius: 50%;
    border: 2px solid #5d92b9;
}

.header-text {
    flex-grow: 1;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.header-text h2 {
    font-size: 0.9rem;
    font-weight: normal;
    margin: 0;
}

/* Main Container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px); /* Adjust height for the header */
    padding: 20px;
    box-sizing: border-box;
}

/* Login Panel */
.login-panel {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 350px;
    margin-right: 2em;
    text-align: center;
}

h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5em;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5em;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5em;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
}

.login-btn,
.cancel-btn {
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    margin: 0 5px;
}

.login-btn {
    background-color: #3d5a80;
    color: white;
}

.login-btn:hover {
    background-color: #293241;
}

.cancel-btn {
    background-color: #e07a5f;
    color: white;
}

.cancel-btn:hover {
    background-color: #d15d45;
}

/* Admin Panel */
.admin-panel {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
}

.admin-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
}

.admin-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px dashed #999;
    border-radius: 50%;
}

h4 {
    font-size: 1.5rem;
    margin-top: 1em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    animation: slideDown 0.3s ease;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Modal Form Inputs */
.modal-content label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 0.7em;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Modal Submit Button */
.modal-content button[type="submit"] {
    width: 100%;
    padding: 0.8em;
    background-color: #3d5a80;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    background-color: #293241;
}

/* Optional: Smooth modal animation */
@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Success and Error Message Styles */
.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.5s ease-out;
}

/* Success Message */
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error Message */
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Optionally: Fade out the message after auto-dismiss */
.message.fade-out {
    opacity: 0;
    display: none;
}