/* Base styles */
body {
    height: 100vh;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    background-color: #dadae4;
    display: grid;
    overflow-x: hidden;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 90px 1fr;
    grid-template-areas: 
        "side header"
        "side main";
         font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
label {
    font-family: 'Roboto', Arial, sans-serif;
}

input, select, textarea {
    font-family: 'Roboto', Arial, sans-serif;
}

/* Styles for header */
.header {
    background-color: #1868d7;
    font-size: 2rem;
    color: #fff;
    grid-area: header;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo and menu button */
    font-family: 'Montserrat', sans-serif;
    margin-left: 1px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Shadow with 30% opacity */
}

img {
    max-width: 100%;
    height: auto;
}

/* Hamburger menu button */
.menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
}



/* Styles for main content */
.main {
    background-color: rgb(254, 254, 254); /* Use the background color */
    grid-area: main;
    padding: 1rem;
    color: rgb(12, 13, 13);
    margin: 25px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 8px; /* Rounded corners for a softer look */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Soft shadow for floating effect */
    transition: transform 0.2s ease; /* Transition for hover effect */
}

/* Optional: Add hover effect for further enhancement */
.main:hover {
    transform: translateY(-5px); /* Move slightly up on hover */
}



/* Styles for sidebar */
.sidebar {
    background-color: #1868d7;
    border-radius: 2px;
    grid-area: side;
    padding: 1rem;
    overflow: auto;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Shadow with 30% opacity */
    transition: transform 0.3s ease; /* For sliding animation */
}

/* Styles for logo */
.logo {
    margin: 0;
    display: flex; /* Use flexbox for logo alignment */
    align-items: center; /* Center logo vertically */
    justify-content: center; /* Center logo horizontally if needed */
}

.logo-img {
    max-width: 80%; /* Adjust logo size */
    height: auto;
    padding-bottom: 25px;
}

ul {
    list-style-type: none;
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Arrange items in a column */
    align-items: flex-start; /* Align items to the left */
}

ul li {
    width: 100%; /* Ensure li takes the full width */
}

ul li a {
    display: block; /* Ensure the anchor fills the li element */
    padding: 10px; /* Add padding to the anchor */
    text-decoration: none !important; /* Remove underline from links, using !important */
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    color: #fff; /* Change link color to white */
    text-align: left; /* Align text to the left */
}

ul li a:hover {
    background-color: #fff; /* Full hover color */
    color: #1868d7; /* Change hover text color to blue */
    border-radius: 0 25px 25px 0; /* Apply border-radius only to the right */
    opacity: 1; /* Full opacity on hover */
    padding-left: 15px; /* Optional: add padding for visual effect */
    padding-right: 15px; /* Optional: add padding for visual effect */
    transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease; /* Smooth transitions */
}

ul li a i {
    margin-right: 10px; /* Space between icon and text */
}


table {
    width: 100%;
    border-collapse: separate; /* Allow spacing between rows */
    border-spacing: 0 5px; /* Adds vertical space between rows (10px example) */
}

tr td {
    padding: 3px;
}

input[type="text"], input[type="date"], select {
    width: 100%; /* Make inputs and selects span full width of the cell */
    padding: 8px; /* Add padding inside the input */
    box-sizing: border-box; /* Ensure padding is included in element’s total width */
}


/*Child Immunization card_style*/
.custom-container {
    border: 2px solid #0394fc;  /* Adds a blue border */
    border-radius: 10px;        /* More rounded corners */
    width: 50%;                 /* Adjusts the width */
    margin: 0 auto;             /* Centers the container horizontally */
    padding: 50px;
    background-color: #fff;     /* White background to make it pop */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* Adds shadow for floating effect */
    transition: transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transitions for hover */
    position: relative;         /* So it can float */
    z-index: 1;                 /* Ensure it's above background elements */
}

.custom-container:hover {
    transform: translateY(-10px); /* Moves the container up slightly on hover */
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.3); /* Deepens the shadow on hover */
}


/* Hero Section Styles */
.hero-section {
    background-image: url('public/municipal.png'); /* Put the link to your image here */
    background-size: cover; /* Ensures the background image covers the whole section */
    background-position: center; /* Centers the image in the background */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    color: white;
    padding: 100px 0; /* Padding for top and bottom space */
    position: relative; /* Allows us to add an overlay */
}

/* Optional: Adding an overlay to darken the background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 1;
}

/* Ensures text is above the overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.5rem;
}

.btn-outline-light {
    font-size: 1.2rem;
}


.features-section {
    padding: 40px 0;
}
.features-section h2 {
    margin-bottom: 20px;
}
.contact-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: 80px 1fr;
        grid-template-areas: 
            "header"
            "main";
    }

    .sidebar {
        transform: translateX(-100%); /* Hide sidebar offscreen */
        position: absolute;
        width: 250px;
        height: 100vh;
        top: 0;
        left: 0;
        z-index: 1000; /* Ensure it overlays the content */
    }

    .sidebar.active {
        transform: translateX(0); /* Slide in sidebar */
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
    }
}

@media (max-width: 480px) {
    .header {
        font-size: 1.2rem; /* Slightly larger font size for better readability */
    }

    .sidebar {
        font-size: 1rem; /* Adjust font size to ensure readability */
    }

    .main {
        font-size: 1rem; /* Consistent font size for main content */
        height: 100vh;
        overflow-y: auto;

    }


    
    
}
