/* Estilos base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 1em;
}
.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.banner-image {
    width: 100%;
    height: 200px; /* Define a altura da imagem do banner */
    object-fit: cover; /* Garante que a imagem cubra totalmente o espaço definido */
    margin-bottom: 20px;
}
.menu {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.menu button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
}
.menu button:hover {
    background-color: #45a049;
}
.tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.tools input {
    width: 60%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.view-toggle, .sort-toggle {
    display: flex;
    align-items: center;
}
.view-toggle button, .sort-toggle button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}
.view-toggle button:hover, .sort-toggle button:hover {
    background-color: #45a049;
}
.filter-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-section, .tracking-section, .services-section, .dashboard-section, .config-section, .change-password-section {
    margin: 20px 0;
}
.form-section h2, .tracking-section h2, .services-section h2, .dashboard-section h2, .config-section h2, .change-password-section h2 {
    color: #4CAF50;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ddd;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
/* Estilos dos cards */
.service-card {
    position: relative;
    border: 1px solid #ddd;
    padding: 0;
    border-radius: 10px;
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.service-card .card-content {
    padding: 15px;
}
.service-card .card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.service-card .card-details {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}
.service-card .card-details p {
    margin: 5px 0;
}
.service-card .edit-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.service-card .edit-button img {
    width: 20px;
    height: 20px;
}
/* Grid View */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.grid-view .service-card {
    height: auto;
}
/* List View */
.list-view .service-card {
    display: flex;
    align-items: center;
}
.list-view .service-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
}
.list-view .service-card .card-content {
    flex: 1;
}
.list-view .service-card .card-title {
    margin-top: 0;
}
.list-view .service-card .card-details {
    margin-bottom: 0;
}
