body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 20px;
}
fieldset {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: none;
}
legend {
    font-weight: bold;
    font-size: 1.2em;
}
label {

    margin-top: 10px;
    font-weight: bold;
}
input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.table-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #113260;
    color: white;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
button {
    margin-top: 15px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button[type="submit"] {
    background-color: #113260;
    color: white;
}
button[type="reset"] {
    background-color: crimson;
    color: white;
}
button:hover {
    opacity: 0.8;
}
.licitacoes-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.licitacao {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.licitacao-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.licitacao-header strong {
    display: block;
    margin-bottom: 5px;
}
.comprasnet-link {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
}
.data-publicacao {
    display: block;
    margin-top: 5px;
    color: #666;
}
.licitacao-body {
    margin-bottom: 15px;
}
.info-row {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}
.info-row:last-child {
    border-bottom: none;
}
.licitacao-footer {
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.btn-acessar {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.btn-acessar:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}
#citizen-portal-title-box{
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, #11315F, #0087C7);
    color: white;
    padding: 0.5em !important;
}

#citizen-portal-category-title-box{
    display: flex;
    align-items: center;
    justify-content: left;
    background-image: linear-gradient(to right, #11315F, #0087C7);
    color: white;
    margin: 1em !important;
    padding: 0.5em !important;
    font-size: 0.7em;
}

.btn-citizen-letter{
    display: inline-flex !important;
    flex-direction: row !important;
    background-color: crimson;
    padding: 1em !important;
    font-size: 0.9em;
}

.btn-categories{
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: crimson;
    margin-bottom: 0.5em !important;
    padding: 0em !important;

}

.btn-icon-categories{
    background-color: white !important;
    color: crimson !important;
    border: 2px crimson solid !important;
    display: flex;
    text-align: center;
    flex-grow: 1;
    padding: 1em !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

.btn-categories-text{
    font-size: 0.85em !important;
    flex-grow: 3;
    padding-left: 0.3em !important;
}
.card-body {
    /* Remove any existing border */
    border: none;
    /* French flag-inspired shadow */
    box-shadow: 
        -5px 0 5px -2px #007bb7, /* Blue shadow on the left */
        0 0 10px rgba(0, 0, 0, 0.1), /* Default shadow for depth */
        5px 0 5px -2px #c30510; /* Red shadow on the right */
    background-color: #eae7df; /* White center */
    padding: 20px; /* Keep existing padding */
    color: #241a01 !important;
}
.descricao-limitada {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limita a 4 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona "..." no final se cortado */
    line-height: 1.5em; /* Altura de cada linha (ajuste conforme necessário) */
    max-height: 7.2em; /* 4 linhas * 1.5em por linha */
}
.descricao-limitada {
    line-clamp: 3 !important;
    height: 3em;
    font-size: 0.9rem;
    max-height: 80px;
    display: -webkit-box;           /* Necessário para habilitar line-clamp */
    -webkit-line-clamp: 3;         /* Limita a três linhas */
    -webkit-box-orient: vertical;  /* Define orientação vertical */
    overflow: hidden;              /* Oculta o restante do texto */
    text-overflow: ellipsis;       /* Adiciona "..." no final */
    word-break: break-word;        /* Evita que palavras muito longas quebrem o layout */
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-container th, .table-container td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-container th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table-container tr:hover {
    background-color: #f5f5f5;
}

.btn-container {
    text-align: center;
}

fieldset {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
}

input[type="text"], 
input[type="date"], 
select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="reset"] {
    background-color: #6c757d;
}

button:hover {
    opacity: 0.9;
}

#citizen-portal-title-box {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding: 10px !important;
    }

    .row {
        margin: 0;
    }

    .col-md-2, .col-md-4 {
        padding: 5px;
    }

    input[type="date"],
    input[type="text"],
    select {
        width: 100%;
        margin-bottom: 10px;
    }

    .licitacao {
        padding: 10px;
    }

    .licitacao p {
        margin-bottom: 5px;
    }

    .licitacao strong {
        display: block;
        margin-bottom: 5px;
    }

    /* Ajustes para os botões */
    button[type="submit"],
    button[type="reset"] {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Ajuste para o checkbox do COVID */
    .col-md-4.d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Ajuste para o botão de exportação */
    .col-md-6.p-2.m-2 {
        padding: 5px !important;
        margin: 5px !important;
    }

    .col-md-6.p-2.m-2 button {
        width: 100%;
    }

    .licitacao-header strong {
        font-size: 0.9rem;
    }

    .comprasnet-link {
        display: block;
        margin: 5px 0;
    }

    .data-publicacao {
        font-size: 0.8rem;
    }

    .info-row {
        font-size: 0.9rem;
    }

    .btn-acessar {
        width: 100%;
        text-align: center;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    h3 {
        font-size: 1.2rem;
    }

    .licitacao {
        padding: 8px;
    }

    .licitacao-header strong {
        font-size: 0.85rem;
    }

    .info-row {
        font-size: 0.85rem;
    }
}
