

/* Style the scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
    height: 8px; /* Height of the scrollbar */
}

/* Style the scrollbar track */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light grey background for the track */
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow effect for track */
}

/* Style the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #3498db; /* Solid blue color for the thumb */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a subtle shadow to the thumb */
    transition: background 0.3s, box-shadow 0.3s; /* Smooth transition for background and shadow */
}

/* Style the scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: #2980b9; /* Darker blue on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow on hover */
}


html, body {
    height: auto;  /* Make sure the page takes full height */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Main content wrapper */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Keep content starting at the top */
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
    width: 95%;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}


/* Logo */
#Logo {
    width: 50px;
    height: auto;
}

/* Header Styles */
header {
    background-color: #003366;
    color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);  /* More noticeable shadow */
    top: 0;  /* Keeps it at the top of the page */
    left: 0;  /* Ensures it starts from the left edge */
    width: 100%;  /* Ensures it takes the full width */
    z-index: 10;  /* Makes sure the header stays on top of other content */
    box-sizing: border-box; /* Ensures padding is included in the element's total width and height */
    transition: top 0.3s ease-in-out;  /* Smooth transition for showing/hiding */

}

/* Class to hide the header */
header.header-hide {
    top: -100px;  /* Adjust this to the height of your header */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-direction: row;
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin-left: 10px;
}

/* Navigation Bar */
.navbar nav {
    display: flex;
    align-items: center;
    margin-right: 30px;
    gap: 10px;
}

.navbar nav .navbuttons {
    position: relative;
    color: white;
    text-decoration: none;
    margin: 5px;
    font-size: 1rem;
    border-radius: 5px;
    padding: 10px 15px;
    transition: color 0.3s;
}

.navbuttons.services-btn#servicesToggle {
    padding: 5px 10px;
}

.navbar nav .navbuttons::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar nav .navbuttons:hover {
    color: #ADE8F4;
}

.navbar nav .navbuttons:hover::after {
    width: 100%;
    left: 0;
}

/* Active link indicator */
.navbar nav .navbuttons#active {
    color: #48CAE4; /* Color for active link */
    font-weight: bold; /* Optionally make it bold */
}

.navbar nav .navbuttons#active::after {
    width: 100%;
    left: 0;
    background-color: #48CAE4; /* Active link underline color */
}

/* Active link indicator */
.navbar nav .navbuttons.active {
    color: #48CAE4; /* Color for active link */
    font-weight: bold; /* Optionally make it bold */
}

.navbar nav .navbuttons.active::after {
    width: 100%;
    left: 0;
    background-color: #48CAE4; /* Active link underline color */
}



.navbar .login {
    background-color: #0077B6;
    border: none;
    padding: 0.5rem 1.2rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out; /* Smooth transition */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.navbar .login:hover {
    background-color: #0096c7;
    transform: translateY(-3px); /* Button lifts on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}


nav .dropdown {
    position: relative;
    display: inline-block;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    margin-top: 4px;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

nav .dropdown-content a {
    margin: 10px;
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}
nav .dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* General Section Styling */
section {
    margin: 2rem 0;
    
    transition: all 0.3s ease-in-out;
}

/* Footer Styles */
footer {
    width: 100%;
    margin-top: auto;
}

.footer-main {
    background: linear-gradient(135deg, #003366 0%, #0077B6 100%);
    color: white;
    padding: 50px 0 35px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background animation */
.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-header {
    text-align: left;
    margin-bottom: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 80px;
    height: auto;
    border-radius: 50%;
    background: white;
    padding: 6px;
    transition: all 0.3s ease;
}

.footer-logo:hover .logo-img {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.barangay-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-3px);
}

.footer-section h3 {
    width: 170px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 170px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 10px;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Add background image properties */
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Shine effect overlay */
.social-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    /* Maintain background image on hover */
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Activate shine effect on hover */
.social-icon:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.social-icon:active {
    transform: translateY(-1px) scale(0.98);
}

/* Individual icon backgrounds */
.facebook-icon {
    background-image: url('../assets/icons/footerfacebook.png');
    background-blend-mode: normal, normal;
}

.instagram-icon {
    background-image: url('../assets/icons/instagram.png');
    background-blend-mode: normal, normal;
}

.twitter-icon {
    background-image: url('../assets/icons/x.png');
    background-blend-mode: normal, normal;
}

/* Hover states for individual icons */
.facebook-icon:hover {
    background-image: url('../assets/icons/footerfacebook.png');
}

.instagram-icon:hover {
    background-image: url('../assets/icons/instagram.png');
}

.twitter-icon:hover {
    background-image: url('../assets/icons/x.png');
}

.footer-bottom {
    background-color: #003366;
    padding: 8px 0;
    position: relative;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-bottom:hover p {
    color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-container {
        gap: 40px;
    }
    
    .footer-section {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        flex: 1 1 100%;
    }
    
    .barangay-name {
        font-size: 20px;
    }
    
    .footer-header {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0 25px 0;
    }
    
    .footer-header {
        margin-bottom: 25px;
    }
    
    .barangay-name {
        font-size: 18px;
    }
    
    .footer-container {
        gap: 25px;
    }
    
    .social-icons {
        justify-content: center;
    }
}


/* Profile button style */
.profile-btn {
    display: flex;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px; /* Keep the button font size if you want */
    color: white;
    padding: 0;
}

/* Make the icon smaller */
.profile-btn i {
    font-size: 38px; /* Adjust this value to make the icon smaller */
}

/* Dropdown Container */
.services-dropdown {
    position: relative;
    display: inline-block;
}

/* Services Button */
.services-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.services-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
}

/* Dropdown Links */
.services-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

.services-menu a:hover {
    background-color: #f1f1f1;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    padding-top: 20px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

/* Sidebar Links */
.sidebar a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #cccccc;
}

/* Submenu (Clearances) */
.submenu {
    position: relative;
}

/* Submenu Button */
.submenu-btn {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    transition: 0.3s;
}

/* Submenu Content (Initially Hidden) */
.submenu-content {
    display: none;
    background-color: #d4d4d4;
    padding-left: 20px;
}

/* Show submenu when hovering over "Clearances" */
.submenu:hover .submenu-content {
    display: block;
}

/* Submenu Links */
.submenu-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.submenu-content a:hover {
    background-color: #d1d1d1;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 100%;
    transition: opacity 0.3s ease-in-out;
}
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
}
.modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}
.close-btn:hover {
    color: #0077B6;
}
.modal button {
    background-color: #0077B6;
    color: white;
    border: 2px solid #0077B6;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 16px;
}
.modal button:hover {
    background-color: transparent;
    color: #0077B6;
    border: 2px solid #0077B6;
}
@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Success Container */
.success-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    /* border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    text-align: center;
}

.success-container h2 {
    font-size: 24px;
    color: #374957;
    margin-top: 0;
    margin-bottom: 0;
}

.success-container p {
    font-size: 16px;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
}

/* Reference Number Box */
.reference-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 20px;
}

.ref-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Copy Button */
.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #0056b3;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    background: #0077B6;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}
