body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f6f5 0%, #e9ecef 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 0 0 8px 8px;
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    background: linear-gradient(45deg, #007bff, #00b4d8); /* Gradient text */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #007bff;
    padding: 0;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #0056b3;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 12px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

nav a i {
    margin-right: 6px;
    color: #007bff;
}

nav a:hover {
    color: #007bff;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.hero h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #007bff;
    letter-spacing: -0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 i {
    margin-right: 10px;
    color: #17a2b8;
}

.hero p {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.tool-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tool-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.ad-sidebar-left, .ad-sidebar-right {
    width: 160px;
    display: none;
}

.ad-banner-bottom {
    text-align: center;
    margin: 20px auto;
    max-width: 728px;
}

.tool-container h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    letter-spacing: -0.3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-container h2 i {
    margin-right: 8px;
    color: #28a745;
}

.instructions {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
}

.health-form {
    display: grid;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
}

label i {
    margin-right: 6px;
    color: #007bff;
}

input[type="number"], select, input[type="email"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="number"]:focus, select:focus, input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

button {
    background: linear-gradient(45deg, #007bff, #00b4d8);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.2px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button i {
    margin-right: 6px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#result, #recommendations {
    margin-top: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#result table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#result th {
    background: linear-gradient(to right, #006d77, #008b9a);
    color: #fff;
    padding: 10px;
    font-weight: 600;
    text-align: center;
}

#result td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

#result tr:nth-child(even) {
    background-color: #f1f3f5;
}

#result tr:nth-child(odd) {
    background-color: #fff;
}

#result strong {
    font-weight: 600;
    color: #007bff;
}

#emailSection {
    margin-top: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#emailBtn {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    width: auto;
    padding: 10px 20px;
}

#emailBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

#copyBtn {
    background: linear-gradient(45deg, #6c757d, #adb5bd);
    width: auto;
    padding: 10px 20px;
}

#copyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

#copyFeedback {
    display: none;
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    width: 100%;
    text-align: center;
}

#saveBtn {
    background: linear-gradient(45deg, #28a745, #52c777);
    margin-top: 15px;
}

#saveBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.content-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 20px auto;
}

.content-section h1 {
    font-size: 26px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.content-section p {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
}

footer {
    text-align: center;
    padding: 15px;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    color: #666;
    font-size: 13px;
    font-weight: 400;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
}

footer a {
    color: #007bff;
    text-decoration: none;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
}

footer a i {
    margin-right: 4px;
}

footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-feedback {
    color: #28a745;
    font-weight: 600;
}

.footer-feedback:hover {
    color: #218838;
}

@media (min-width: 768px) {
    .ad-sidebar-left, .ad-sidebar-right {
        display: block;
    }
}

@media (max-width: 600px) {
    header {
        padding: 10px 15px;
        position: relative;
        display: flex;
        align-items: center;
    }
    .logo {
        margin-right: auto;
    }
    .logo a {
        font-size: 20px; /* Slightly smaller on mobile */
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 0 0 8px 8px;
    }
    nav.active {
        display: block;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    nav li {
        margin: 10px 0;
    }
    .hero {
        padding: 20px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 15px;
    }
    .tool-section {
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }
    .tool-container {
        padding: 0;
    }
    .ad-banner-bottom {
        max-width: 100%;
    }
    input[type="number"], select, input[type="email"] {
        padding: 12px;
    }
    button {
        padding: 14px;
    }
    footer a {
        margin: 0 4px;
    }
    #result table {
        font-size: 12px;
    }
    #result th, #result td {
        padding: 6px;
    }
    #emailSection {
        flex-direction: column;
    }
    #emailBtn, #copyBtn {
        width: 100%;
    }
}