body, html {
    width: 100%;
    height: 100%; 
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between;
    background: url('../images/background.png') no-repeat center center fixed; 
    background-size: cover; 
}

/* Style khusus untuk halaman login */
body.login-page {
    background: url('../images/frontendlogin.jpg') no-repeat center center fixed;
    background-size: cover;
}

.app-title{
    margin-bottom: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6); /* Shadow for text to enhance visibility */
}

.container {
    background-color: #ffffff;
    border-radius: 50px 50px 0px 0px;
    padding: 5%;
    padding-bottom: 100px; /* Adjust this value to match or be greater than your footer's height */
    height: auto; /* Ensure it can grow as needed */
    min-height: 100vh; /* Full viewport height */
    box-sizing: border-box; /* Includes padding in height calculation */
}

.home-container {
    /*background-image: linear-gradient(#ffffff, #e6fdfd);*/
    background-color: #ffffff;
}

.logo-container {
    text-align: center;
    padding: 30px 0; /* Padding to ensure logo does not stick to the top */
}

.logo {
    width: 200px; /* Proper size for visibility */
    height: auto; /* Maintain aspect ratio */
}

.login-container {
    width: 90%;
    max-width: 350px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Subtle shadow for depth */
    margin-bottom: 50px; /* Push container to bottom */
}



.login-container form {
    margin-top: 10%;
    width: 100%; /* Explicitly set width to 100% */
  }
  

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 8px 0;
    font-size: 16px;
    background-color: transparent;
}

.form-control:focus {
    border-bottom-color: #0056b3;
    outline: none;
}

.focus-border {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    transition: 0.4s;
}

.form-control:focus + .focus-border {
    width: 100%;
}

.toggle-password {
    position:absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.btn-primary {
    width: 100%;
    background-color: #0056b3;
    color: white;
    border-radius: 20px;
    padding: 10px 20px;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    width: 100%; /* Make button width responsive */
    color: white;
}

.forgot-password {
    font-size: 12px;
    color: #0056b3;
    text-decoration: none;
    text-align: left;
    width: 90%; /* Align forgot password with input fields */
    margin-top: 5px;
}

/* Sidenav styles */
/* Header logo and menu button styling */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #e6fdfd; /* Adjust background as needed */
}

.logoheader {
    height: 40px; /* Adjust size as needed */
    width: auto;
}

/* Adjust sidenav to slide from right */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #0056b3;
    color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: #ccc;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #fff;
}

/* Footer navigation */
.footer-nav {
    width: 100%;
    position: fixed;
    bottom: 0;
    background: #0056b3;
    color:white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
    flex-direction: row;
    align-items: center;
}

.footer-nav .nav-item {
    text-align: center;
    flex-direction: column;
}

.footer-nav div{
    display: flex;
}

.footer-nav .nav-item a {
    text-decoration: none;
    color: white;
    display: block;
}

.footer-nav .nav-item i {
    font-size: 24px; /* Bigger icons */
    margin-bottom: 5px;
}

/* Home Page */
.welcome-message {
    text-align: left;
    font-size: 18px;
    margin-top: 20px;
}

.points-container {
    max-width: 400px;
    margin: auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.points-label {
    color: #666;
    font-size: 16px;
}

.points-container .d-flex {
    align-items: center;
}

.points-container h2 {
    font-size: 24px;
    margin-right: 10px; /* Ensure spacing between the text and the button */
    flex-grow: 2; /* Takes up two-thirds of the space */
}

.points-container .btn {
    flex-shrink: 1; /* Takes up one-third of the space */
    padding: 5px 20px; /* Adjust padding to fit the button appropriately */
    width:40%;
}

.reports-page{
    padding-bottom: 100px;
}

.reports-container h4 {
    font-size: 16px;
    color: #333;
}

.reports-container ul {
    padding-left: 20px;
}

.news-container {
    min-height: 50px; /* Placeholder for future content */
}

/* General Form Styles */
form.report-form {
    max-width: 600px; /* Restrict form width for better aesthetics */
    margin: 20px auto; /* Center form and give some margin from top */
    background: #fff; /* Light background for the form */
    padding-top: 30px; /* Padding inside the form */
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 100px;
    border-radius: 20px; /* Rounded corners for the form */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

form.report-form label {
    font-weight: bold; /* Make labels bold for better readability */
    margin-top: 15px; /* Space out elements */
    display: block; /* Ensure labels take their own line */
}

form.report-form input[type="date"],
form.report-form select,
form.report-form input[type="text"],
form.report-form input[type="password"] {
    min-width:95%;
    width: 100%; /* Full width inputs */
    padding: 8px; /* Padding inside inputs */
    margin-top: 5px; /* Margin top for spacing */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 20px; /* Slightly rounded corners for inputs */
}

form.report-form input[type="textarea"]{
    border-radius: 20px;
}

form.report-form button {
    width: 100%; /* Full width button */
    padding: 10px; /* Comfortable padding inside button */
    background-color: #0056b3; /* Brand color for button */
    color: white; /* Text color for button */
    border: none; /* No border for button */
    border-radius: 20px; /* Rounded corners for button */
    margin-top: 20px; /* Space above the button */
    cursor: pointer; /* Pointer cursor on hover */
}

form.report-form button:hover {
    background-color: #004494; /* Slightly darker on hover for feedback */
}


textarea {
    width: 100%;
    border-radius: 20px;
    height: 120px; /* Adjust based on 5 rows height approximation */
    padding: 10px; /* Padding for text inside textarea */
    border: 1px solid #ccc; /* Light border for better visibility */
    resize: none; /* Prevent resizing */
}

/* Toast Notifications Styles */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 20px;
    background-color: #4f4f4f;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s, top 0.5s;
}

.toast.show {
    top: 75%;
    opacity: 1;
}

/* Success and Error specific styles */
.toast.success {
    border-color: #4CAF50; /* Green for success */
    background-color: #4CAF50;
}

.toast.error {
    border-color: #f44336; /* Red for error */
    background-color: #f44336;
}

.status-submitted {
    color: blue;
}
.status-in-progress {
    color: orange;
}
.status-completed {
    color: green;
}

.profile-container {
    max-width: 600px; /* Adjust width as needed */
    margin: 20px auto; /* Center the container */
    padding: 20px;
    background: #fff; /* White background for better readability */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically */
}

.profile-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px;
    border-radius: 50%; /* Circular photo */
    margin-bottom: 20px; /* Space below the photo */
    object-fit: cover; /* Ensure photo covers the area */
}

.user-info {
    text-align: center; /* Center-align the text */
    margin-bottom: 20px; /* Space above actions */
}

.user-info h3 {
    margin-top: 0;
    margin-bottom: 10px; /* Space below the name */
}

.user-info p {
    margin-bottom: 5px; /* Reduce space between lines */
    color: #666; /* Subdued text color */
}

.profile-actions {
    width: 100%; /* Full width to match the container */
    display: flex;
    justify-content: space-around; /* Space between buttons */
    align-items: center;
}

.profile-actions a {
    text-decoration: none;
    color: white; /* White text for buttons */
    background-color: #0056b3; /* Consistent button color */
    border: none;
    padding: 10px 20px;
    border-radius: 20px; /* Rounded button edges */
    cursor: pointer;
}

.profile-actions a:hover {
    background-color: #004494; /* Darker shade on hover */
}

/* Enhance responsive behavior */
@media (max-width: 768px) {
    .profile-container {
        padding: 10px; /* Smaller padding on smaller screens */
    }

    .profile-actions {
        flex-direction: column; /* Stack buttons vertically on small screens */
    }

    .profile-actions a {
        margin-top: 10px; /* Space between stacked buttons */
        width: 80%; /* Wider buttons for easier clickability */
        text-align: center; /* Ensure text is centered */
    }
}


.link-container {
    margin-top: 20px;
    text-align: center;
}

.link {
    color: #004494;
    text-decoration: none;
    font-weight:lighter;
}

.link:hover {
    text-decoration: underline;
}