/* Clean Minimalist SaaS Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    /* Slate 50 */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */

    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    --radius: 8px;
    /* Standard rounded */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}

.logo i {
    color: var(--primary);
}

.logo .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    min-width: 200px;
    z-index: 10;
    padding: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: var(--text-main);
    border-radius: 4px;
}

.dropdown-content a:hover {
    background: var(--bg-surface);
}

/* Hero */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    color: var(--text-main);
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-search {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.hero-search input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.hero-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.hero-search button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    border-radius: 4px;
    cursor: pointer;
}

/* Category Grid */
.category-section {
    padding: 40px 0;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.calc-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s ease;
}

.calc-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.calc-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Calculator Page */
.breadcrumb {
    margin: 24px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb .active {
    color: var(--text-main);
    font-weight: 600;
}

.calculator-container-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.sidebar-links a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--bg-surface);
}

.sidebar-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.sidebar-links i {
    margin-right: 8px;
    font-size: 0.8em;
}

/* Main Calc Area */
.calculator-main {}

.calculator-main h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.calculator-app {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 40px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Results */
.result-box {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.result-box h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

/* Footer */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Ads */
.ad-slot div {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: none !important;
}

@media (max-width: 768px) {
    .calculator-container-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}