/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f7fc;
}

/* Topbar */
.topbar {
    width: 100%;
    height: 3.5em;
    background: linear-gradient(135deg, #5da5ca, #86b18d);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.topbar .brand {
    font-size: 15px;
    font-weight: bold;
}

.topbar .profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: 150px;
    text-align: left;
}

.profile-dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.profile-dropdown-menu a:hover {
    background: #f4f4f4;
}

/* Main Content */
.main-wrapper {
    margin-left: 14em;
    transition: margin-left 0.2s ease-in-out;
}

.content-wrapper, .content-container {
    margin-left: 1em;
    padding-top: 2em;
}

.main-page {
    padding: 3px;
    transition: margin-left 0.3s ease-in-out;
}

/* Responsive Sidebar Behavior */
@media screen and (max-width: 768px) {
    .sidenav {
        width: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }


}

/* Dashboard Cards */
.dashboard-stat {
    display: block;
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-stat:hover {
    transform: scale(1.05);
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-icon {
    display: block;
    font-size: 40px;
    margin-top: 10px;
}

 .row {
    margin-top: 10px;
    scale: 95%;
 }
/* Style for readonly input fields */
input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    pointer-events: none;
}

/* Dark mode styling */
@media (prefers-color-scheme: dark) {
    input[readonly] {
        background-color: #495057;
        color: #adb5bd;
    }
}

/* Required Input Field Styling */
input[required] {
    border: 2px solid #dc3545; /* Red border for required fields */
}

/* Required Input Field Styling */
select[required] {
    border: 2px solid #dc3545; /* Red border for required fields */
}

/* Display red asterisk for required fields */
label.required::after {
    content: " *";
    color: red;
    font-weight: bold;

}

/* Footer Styles */
footer {
    font-size: 14px;
    color: #555;
}
