/* =========================================================
   GLOBAL BASE
========================================================= */
* {
    /*outline: 1px solid rgba(255, 0, 0, 0.08);*/
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: #ffffff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

h4 {
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 0px;
}
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
button {
    border-radius: 0px;
    font-weight: 500;
}

#result {
    border-radius: 0px;
}

/* =========================================================
   NAVBAR
========================================================= */

.custom-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

/* Logo */
.lego-logo {
    font-weight: 800;
    letter-spacing: 2px;
    color: #163e81;
    text-decoration: none;
    font-size: 1.4rem;
}

/* Navigation buttons */
.nav-btn {
    background: #163e81;
    color: #fff !important;
    border-radius: 0;
    padding: 6px 16px 9px 16px;
    font-weight: normal;
    transition: 0.2s ease;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: #f2f2f2;
    color: #000 !important;
}

/* Active state */
.nav-btn.current,
.nav-btn.active {
    background: #f2f2f2;
    color: #000 !important;
    font-weight: 600;
}

/* =========================================================
   CALCULATOR CARD
========================================================= */

.calculator-card {
    width: 100%;
    max-width: 680px;
    border-radius: 0px;
    border: 1px solid #e5e7eb;
    background: white;
}

/* =========================================================
   PAGE SPLIT
========================================================= */

.split-left {
    border-right: 1px solid #e5e7eb;
}

/* =========================================================
   SEARCH / HOMEPAGE UI
========================================================= */

.search-hero {
    text-align: center;
    margin: 1.5rem 0 1rem 0;
}

.search-logo {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #163e81, #2a5ea8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.search-tagline {
    color: #4b5563;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.search-container {
    max-width: 650px;
    margin: 0 auto;
}

.input-group-custom {
    border-radius: 48px;
    background: white;
    border: 1px solid #dfe1e5;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}

.input-group-custom:hover,
.input-group-custom:focus-within {
    border-color: #163e81;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    flex: 1;
}

.search-btn {
    background: transparent;
    border: none;
    color: #163e81;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    transition: 0.2s;
}

.search-btn:hover {
    color: #0f2c5a;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary-custom {
    background: #163e81;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    transition: 0.2s;
}

.btn-primary-custom:hover {
    background: #0f2c5a;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 500;
    color: #3c4043;
}

.btn-outline-custom:hover {
    background: #f8f9fa;
    border-color: #163e81;
}

.btn-dark {
	border-radius:0px;
}
/* =========================================================
   TOOLS GRID
========================================================= */

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tool-badge {
    background: white;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-badge i {
    color: #163e81;
    font-size: 0.9rem;
}

.tool-badge:hover {
    background: #f3f4f6;
    border-color: #163e81;
    transform: translateY(-1px);
}

/* =========================================================
   SUGGESTIONS
========================================================= */

.suggestion-box {
    background: white;
    border-radius: 24px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
    width: 100%;
}

.suggestion-item {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: 0.1s;
    color: #1e293b;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8fafc;
}

.suggestion-icon {
    width: 28px;
    color: #163e81;
    font-weight: 500;
}

.ai-badge {
    background: #eef2ff;
    border-radius: 20px;
    font-size: 0.7rem;
    padding: 2px 8px;
    color: #163e81;
    margin-left: 0.75rem;
}

/* =========================================================
   FOOTER / UTILITIES
========================================================= */

.footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.highlight {
    background-color: #fff3c9;
    font-weight: 500;
}

.result-message {
    font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 10px;
    }

    .nav-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .search-logo {
        font-size: 2.8rem;
    }

    .tools-grid {
        gap: 0.6rem;
    }

    .tool-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
}