:root {
    --intecap-blue: #005aa9;
    --intecap-dark: #003466;
    --intecap-bg: #f5f7fa;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--intecap-bg);
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

.navbar-intecap {
    background: linear-gradient(135deg, var(--intecap-dark), var(--intecap-blue));
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

.hero {
    background: radial-gradient(circle at top right, #b4d2ff 0%, transparent 30%), linear-gradient(135deg, #ffffff, #eef5ff);
    border-radius: 0 0 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 60px;
}

    .hero h1 {
        font-weight: 800;
    }

.hero-search {
    max-width: 650px;
}

.metric-card {
    border: none;
    border-radius: 18px;
}

.category-title {
    font-weight: 700;
    color: #495057;
}

.section-divider {
    margin-top: 35px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.service-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

    .service-link:hover {
        color: inherit;
    }

.service-card {
    border: none;
    border-radius: 20px;
    position: relative;
    transition: .3s;
    height: 100%;
    cursor: pointer;
}

.service-link:hover .service-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

.service-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.blue {
    background: #e8f1ff;
    color: #0d6efd;
}

.green {
    background: #e9f8ef;
    color: #198754;
}

.purple {
    background: #f1eafc;
    color: #6f42c1;
}

.orange {
    background: #fff3df;
    color: #fd7e14;
}

.badge-online {
    background: #d1f7df;
    color: #198754;
    border: 1px solid #97dfb0;
}

.badge-maintenance {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe08a;
}

.service-description {
    color: #6c757d;
    min-height: 20px;
}    

.service-footer {
    border-top: 1px solid #ececec;
    margin-top: 0cm;
    padding-top: 0px;
}

.last-update {
    font-size: .75rem;
    color: #6c757d;
}

footer {
    background: #1f2937;
}

.text-purple {
    color: #6f42c1;
}

.text-orange {
    color: #fd7e14;
}

/* Navbar Search Styles */
.navbar-search {
    align-content:center;
    max-width: 50%;
    flex: 1;
}

.navbar-search .input-group {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2px;
    transition: all 0.3s ease;
}

.navbar-search .input-group-text {
    background-color: transparent !important;
    border: none;
    color: #495057;
    padding-left: 15px;
}

.navbar-search .form-control {
    background-color: transparent;
    border: none;
    padding: 8px 15px;
    color: #333;
    font-size: 0.95rem;
}

.navbar-search .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

.navbar-search .form-control:focus {
    background-color: transparent;
    color: #333;
    box-shadow: none;
    outline: none;
}

.navbar-search .input-group:focus-within {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .navbar-search {
        min-width: auto;
        max-width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .navbar-search .input-group {
        padding: 1px;
    }

    .navbar-search .form-control {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .navbar-search .form-control::placeholder {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-search {
        width: 100%;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .container-fluid {
        overflow-x: hidden;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .row > * {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}
