body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

* {
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin-bottom: 8px;
}

header p {
    color: #666;
}

main {
    max-width: 1100px;
    margin: auto;
}

.tool-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    transform: translateY(0);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.calculator-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    transform: translateY(0);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

}


.tool-card h3 {
    margin-top: 0;
}

.tool-card p {
    color: #555;
}

.tool-card a {
    display: inline-block;
    margin-top: 10px;
    background-color: #2563eb;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.tool-card a {
    display: inline-block;
    margin-top: 10px;
    background-color: #3a3a3a;
    color: #f5f3ef;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.tool-card a:hover {
    background-color: #1f1f1f;
}


.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.hero p {
    color: #666;
    font-size: 18px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: 0.3s ease;
}

nav a:hover {
    color: #000;
}

#theme-toggle {
    margin-top: 20px;
    background-color: #3a3a3a;
    color: #f5f3ef;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

#theme-toggle:hover {
    background-color: #1f1f1f;
}

body.dark-mode {
    background-color: #181818;
    color: #f5f3ef;
}

body.dark-mode .hero,
body.dark-mode .tool-card {
    background-color: #242424;
    border-color: #333;
}

body.dark-mode header p,
body.dark-mode .tool-card p {
    color: #cfcfcf;
}

body.dark-mode nav a {
    color: #cfcfcf;
}

body.dark-mode nav a:hover {
    color: white;
}

body.dark-mode .calculator-card {
    background-color: #242424;
    border-color: #333;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 8px;
    margin-bottom: 16px;

    background-color: #f7f7f7;
    color: #222;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 16px;

    transition: border-color 0.3s ease;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

#calculate-button {
    width: 100%;
    background-color: #3a3a3a;
    color: #f5f3ef;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


#calculate-button:hover {
    background-color: #1f1f1f;
}

body.dark-mode input {
    background-color: #2b2b2b;
    color: #f5f3ef;
    border: 1px solid #3a3a3a;
}

input:focus {
    outline: none;
    border-color: #666;
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    nav a {
        font-size: 18px;
    }

    .tool-card h3 {
        font-size: 22px;
    }

    input,
    button {
        font-size: 18px;
    }

}

.status {
    display: inline-block;
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.live {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.soon {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}