body {
    position: relative;
    background-color: #f3f4f6;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://guerreroservicos.com.br/wp-content/uploads/2022/09/Logo-Guerrero-Nova-2022.png') no-repeat center center;
    background-size: 30%;
    opacity: 0.2;
    z-index: -1;
}

.header {
    background: #f3f4f6;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
}

.nav-links a {
    color: #000;
    margin-left: 15px;
    text-decoration: none;
}

.red-bar {
    background: #C8102E;
    height: 50px;
    width: 100%;
}

.content {
    flex: 1;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.container {
    max-width: 1100px; /* Largura máxima centralizada */
    margin: 0 auto; /* Alinha tudo no centro */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Camada branca com transparência igual você queria */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}


.footer {
    background: #f3f4f6;
    color: #000;
    text-align: center;
    padding: 20px;
    position: relative;
    margin-top: auto;
}

.footer .contact-info {
    margin-top: 10px;
    font-size: 14px;
}

.footer .towers {
    position: absolute;
    left: 10px;
    bottom: 0;
    opacity: 0.8;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}
/* Cor da tabela na pagina principal de contratos */
table th {
    background: #4d4d4d;
    color: white;
    text-transform: uppercase;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: rgba(208, 28, 38, 0.1);
}
/* Alinhamento dos cards */
/* Alinhamento dos cards */
.row {
    display: flex; /* Alinha lado a lado */
    justify-content:  space-between; /* Espaço igual entre os cards */
    flex-wrap: wrap; /* Quebra em telas menores */
    gap: 5px; /* Espaçamento entre os cards */
    margin-bottom: 20px;
}
.col-md-4 {
    width: 31%; /* Em vez de 33%, assim cabe mais cards na linha */
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Sombra mais suave */
    border-radius: 10px; /* Bordas arredondadas */
    overflow: hidden; /* Garante que nada saia da borda */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff; /* Fundo branco */
    border: 1px solid #e0e0e0; /* Borda sutil */
    margin: 0 5px; /* Diminui o espaço lateral dos cards */
}

.card:hover {
    transform: translateY(-5px); /* Efeito sutil de levitação */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Sombra mais intensa no hover */
}

.card-header {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: #f8f9fa; /* Cinza claro no cabeçalho */
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333;
    text-align: left;
    gap: 10px;
}

.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.card a {
    align-self: flex-end;
    padding: 8px 12px;
    background: #dc3545; /* Vermelho bonito */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.card a:hover {
    background: #c82333; /* Vermelho mais escuro no hover */
}

@media (max-width: 768px) {
    .row {
        flex-direction: column; /* Empilha os cards */
    }

    .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
}

.btn-dark {
    display: block; /* Faz o botão ocupar toda a largura */
    text-align: center;
    margin-top: 10px;
    border: none;
    background: #343a40; /* Preto chique */
    transition: background 0.3s ease;
}

.btn-dark:hover {
    background: #1d2124; /* Preto mais escuro */
}
.btn-danger {
    padding: 5px 10px;
    background: #C8102E;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 5px;
    transition: background 0.3s ease;
}
.btn-danger:hover {
    background: #a8121b;
}
.btn-warning {
    padding: 5px 10px;
    background: #ffbf00;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 5px;
    transition: background 0.3s ease;
}
.btn-warning:hover {
    background: #ed9121;
}
/* texto "LISTA DE CONTRATOS" */
.title-lista {
    text-align: center;
    margin-bottom: 20px; /* Espaçamento opcional */
    font-size: 24px; /* Aumenta o tamanho da fonte */
    font-weight: bold; /* Negrito pra dar mais destaque */
    letter-spacing: 1px; /* Espaçamento entre letras */
    color: black /* Mesma cor vermelha que você tá usando */
}

/* Botão "NOVO CONTRATO" */
.btn-primary {
    padding: 5px 10px;
    background: #1152d2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 5px;
    transition: background 0.3s ease;
}

/* CSS DOS FORMULARIOS */
.container-form {
    max-width: 900px; /* Deixa o formulário mais centralizado */
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.container-form h2 {
    text-align: center;
    color: #B0171F; /* Vermelho igual da barra */
    margin-bottom: 20px;
    font-weight: bold;
}

form input, form select, form textarea {
    margin-bottom: 15px;
}

.btn {
    margin-right: 10px;
}

textarea {
    resize: none;
}

