/* Header styles */
.custom-header {
    background-color: #003580; 
    padding: 15px 20px;
    color: white;
    position: relative;
}

.custom-header .navbar-brand {
    position: absolute;
    top: 50%; /* Centers the logo vertically relative to its container */
    transform: translateY(-50%); /* Moves the logo up by half its own height */
}

.custom-header .navbar-brand img {
    height: 90px; /* Aumente o tamanho da logo sem aumentar a barra */
}

.custom-header .navbar-brand .app-title {
    margin-left: 15px; /* Add spacing between logo and title */
    font-size: 1.5rem;
    font-weight: bold;
}

.custom-header .nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
}

.custom-header .user-name {
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.custom-header .user-name img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.custom-header .btn-login {
    background-color: white;
    color: #003580;
    border-radius: 20px;
    padding: 5px 20px;
    font-weight: bold;
}

.custom-header .btn-login:hover {
    background-color: #ecf0f1;
}

body, html {
    height: 100%;
    margin: 0;
}

/* Sidebar and map layout */
.container-fluid {
    display: flex;
    height: calc(100% - 80px);
    padding: 0;
}

.sidebar {
    width: 30%;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    position: relative;
}

.filter-container {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    padding-bottom: 10px;
    padding-top: 20px; /* Added space between header and filters */
    display: flex;
    align-items: center;
}

.filter-container input, .filter-container select {
    width: calc(100% - 70px); /* Adjust for larger button */
}

.filter-container button {
    height: 45px; /* Increased height for larger button */
    margin-left: 20px;
    background-color: #003580;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px; /* Increased padding for larger button */
    display: flex;
    align-items: center;
}

.filter-container button i {
    margin-right: 5px;
    color: white; /* Set the icon color to white */
}

.map-container {
    width: 70%;
    height: 100%;
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
}

/* Provider list styles */
#providerList {
    display: grid;
    grid-template-columns: 1fr; /* One card per row */
    gap: 10px;
}

.provider-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.provider-item:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.provider-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.provider-info {
    flex-grow: 1;
}

.provider-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.provider-service {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.provider-contact {
    font-size: 0.9rem;
    color: #333;
}

/* Mobile layout */
@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 0 20px;
        max-height: 350px;
        overflow-y: auto;
        position: relative;
        background-color: #f8f9fa;
    }

    #providerList {
        display: grid;
        grid-template-columns: 1fr; /* One card per row */
        gap: 10px;
    }

    .provider-item {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .provider-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .provider-name {
        text-align: center;
    }

    .map-container {
        width: 100%;
        height: calc(100vh - 350px); /* Fill remaining space below cards */
        margin-top: 15px;
    }
}

.verified-badge {
    background-color: #1DA1F2; /* Twitter blue */
    color: white;
    border-radius: 50%;
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    margin-left: 5px;
    font-size: 12px;
    vertical-align: middle;
}
