/* Logo */
.logo {
    width: 135px;
    height: auto;
    display: block;
}

/* Título Flutuante */
.header-flutuante {
    background: linear-gradient(135deg, #45b16e 40%, #2db39e 60%);
    color: white;
    padding: 10px 20px;
    font-size: 1.4rem;
    border-radius: 0px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 85px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.container-abas-alinhadas {
    width: 75% !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Barra de Busca */
.search-container {
    position: relative;
    width: 400px;
}

.btn-limpar-busca {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-56%);

    border: none;
    background: none;
    padding: 5px 10px;
    margin: 0;

    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    display: none !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-limpar-busca:hover {
    color: #d9544ff1;
}

#inputBusca {
    padding-right: 35px;
    color: rgba(0, 0, 0, 0.849);
}

#inputBusca::placeholder {
    color: rgba(0, 0, 0, 0.568);
}

#inputBusca {
    border-radius: 20px;
    border: 1px solid #00000010;
    padding-left: 15px;
}

#inputBusca:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Cards */
.btn-tab {
    background-color: #e9ecef;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    transition: 0.3s;
}

.btn-tab.active {
    background-color: #45b16e;
    color: white;
}

/* Grid de Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 75%;
    max-width: 1500px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.item-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #1d3527;
    margin-bottom: 20px;
    /* Garante espaço entre os cards */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #28a745;
    cursor: pointer;
}

.badge-id {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f1f1f1;
    color: #555;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

#corpoTabela td:first-child {
    padding-left: 15px;
    width: 50px;
}

#cabecalhoTabela th:first-child {
    padding-left: 15px;
}

.item-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1d3527;
    margin-bottom: 10px;
}

.item-card p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #555;
}

.label-card {
    font-weight: 600;
    color: #212529;
}

body {
    background-color: #f4f7f6;
    font-family: 'Kanit', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #333;
    padding-top: 100px;
}

/* Card da tabela */
.card-tabela {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px;
    width: 95%;
    margin: 0 auto 50px auto;
    border: none;
    width: 75%;
    max-width: 1500px;
}

.table {
    margin-bottom: 0;
    border: none !important;
}

#cabecalhoTabela th {
    background-color: #292721 !important;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 10px 5px !important;
    text-align: center;
    vertical-align: middle;
}

#corpoTabela td {
    font-weight: 300;
    font-size: 0.85rem;
    padding: 8px 5px !important;
    vertical-align: middle;
    text-align: center;
}

/* Zebra Striping */
.table-striped tbody tr:nth-of-type(even) {
    background-color: #f8fbfb !important;
}

.table-hover tbody tr:hover {
    background-color: #eef3f2 !important;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.card-footer-custom {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-top: 15px;
    font-weight: 300;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ajuste para telas pequenas */
@media (max-width: 768px) {
    .header-flutuante {
        font-size: 1rem;
        width: 100%;
    }

    .card-tabela {
        width: 100%;
        padding: 10px;
    }
}