.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    /*border-radius: 5px 5px 0 0;*/
    margin: 0;
    transition: all 0.5s;
    flex: 1;
    min-width: 120px;
    text-align: center;

}

.tab:hover {
    background-color: #ddd;
}

.tab.active {
    background-color: #190000ff;
    color: white;
    border-color: #190000ff;
}

.tab-content {
    display: none;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    width: 100%;
    background-color: white;
    overflow-x: auto;
}

.tab-content.active {
    display: block;
}

/* Estilos responsivos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Largura mínima para evitar quebra em telas pequenas */
}

th, td {
    padding: 5px 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    /*background-color: #2c3e50;*/
    background-color: #ffc30cff;
    color: black;
    position: sticky;
    top: 0;
}
td{
  color:black !important;
}

tr {
    display: table-row;
}

tr:hover {
    background-color: #f5f5f5;
    /*background-color: #ffc30cff;*/
}

/* Estilo para telas menores que 768px */
@media screen and (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 100px;
    }

    th, td {
        padding: 5px 5px;
        font-size: 14px;
    }
}

/* Estilo para telas muito pequenas (mobile) */
@media screen and (max-width: 480px) {
    .tabs {
        flex-direction: column;
    }

    .tab {
        margin-right: 0;
        margin-bottom: 5px;
        /*border-radius: 5px;*/
        border-bottom: 1px solid #ddd;
    }

    .tab-content {
        padding: 10px;
    }

    table {
        min-width: 100%;
    }

    th, td {
        padding: 5px 5px;
        font-size: 12px;
    }
}

.card {
    background-color: white;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    padding: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: black;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    /*border-radius: 4px;*/
    box-sizing: border-box;
}

.btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    /*border-radius: 4px;*/
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.btn:hover {
    background-color: #45a049;
}

.btn-edit {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}
