/* 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: 0; /* Removed padding-top to avoid extra gap */
}

/* Top section (Home button on the left, site title on the right, and search bar centered) */
.top-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4e73df, #1e3a8a); /* Gradient background */
    padding: 30px 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 aligned to the top right */
.site-title {
    color: white; /* White text color for visibility */
    font-size: 24px; /* Adjust font size as needed */
    font-weight: 700;
    margin-right: 20px; /* Space from the right edge */
    text-align: right; /* Ensure the title aligns to the right */
}

/* 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 */
}

/* Container for Fee Calculator */
.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 input {
    width: 70%;
    padding: 12px;
    border-radius: 30px;
    font-size: 16px;
    margin: 10px 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.container button {
    padding: 12px 30px;
    padding-bottom: 10px;
    font-size: 18px;
    border-radius: 30px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

/* Fee results section */
#results {
    margin-top: 7px; /* Added space to move results below the button */
    padding-top: 7px; /* Ensure there is space above the first result */
}

.fee-result {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.fee-result:last-child {
    border-bottom: none;
}

.fee {
    font-weight: bold;
}

.profit {
    color: #4CAF50;
}

/* 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;
    }
}
