/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0; /* Light gray background for the body */
    color: #333;
    padding-top: 80px; /* Adds space for the fixed header */
}

/* Top section (Home button on the left and search bar centered) */
.top-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4e73df, #1e3a8a); /* Gradient background */
    padding: 14px 20px;
    display: flex;
    justify-content: space-between; /* Space out elements: left for home button, right for site title */
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
    z-index: 1000;
}

/* Home button */
.top-section .home-btn {
    position: absolute;
    left: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px; /* Rounded corners */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1100; /* Ensure it's above other elements */
}

.top-section .home-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.top-section .home-btn:active {
    background-color: #003d82;
}

/* Site title */
.site-title {
    color: white; /* White text color for visibility */
    font-size: 24px; /* Adjust font size as needed */
    font-weight: 700;
    text-align: right; /* Align title to the right */
    margin-right: 20px; /* Space from the right edge */
}

/* Search bar styling */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centers the search bar */
}

.search-bar input {
    width: 40%;
    padding: 12px 18px;
    border-radius: 30px; /* Rounded corners */
    border: none;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: box-shadow 0.3s ease;
}

.search-bar input:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Larger shadow on focus */
}

/* Main content container */
.container {
    text-align: center;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    margin-top: 120px; /* Adjusted space to avoid gap below fixed header */
}

.container h1 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

.container p {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

/* Button styling */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 30px; /* Rounded button */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    font-size: 18px;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn:active {
    background-color: #003d82;
}

/* Button container for Fee Calculator and Inventory */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .search-bar input {
        width: 80%;
    }

    .container {
        max-width: 90%;
    }

    .top-section .home-btn {
        padding: 10px 18px;
    }

    .top-section .site-title {
        font-size: 20px;
    }

    /* Adjust button size on small screens */
    .btn {
        padding: 10px 18px;
    }
}
