/* Global Typography & Layout */
body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

/* Fixed Footer Layout with Extra Breathing Room */
.site-footer {
    margin-top: 240px; /* Provides several rows of space above the disclaimer */
    padding: 40px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background: #ffffff;
}

.disclaimer {
    max-width: 850px;
    margin: 0 auto 30px auto;
    font-size: 0.95rem;     /* Slightly larger for readability */
    color: #475569;         /* Darker slate color for better contrast */
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;       /* Medium weight to make it "heavier" */
    padding: 0 20px;        /* Side padding for mobile safety */
}

.footer-links p {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links a {
    color: #64748b;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* Card Styling for Index Page Links */
.tool-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid #e2e8f0;
    display: block; /* Restores the individual box look */
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.tool-title {
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
}

.tool-desc {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
}

/* Calculator Utility Classes for Individual Tools */
.calc {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-weight: 700;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
    text-align: center;
}
