/*  css/styles.php */
/* Estilização do menu dropdown */
.navbar .dropdown-menu {
    min-width: 200px;
}

.navbar .dropdown-menu h6 {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    padding: 8px 20px;
    margin: 0;
    text-transform: uppercase;
    background-color: #f8f9fa;
}

.table th, .table td {
    text-align: center;
    vertical-align: middle;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

.alert-info {
    background-color: #e9f7fd;
    color: #31708f;
}

/* Ícones customizados */
.dropdown-item::before {
    content: "📁"; /* Exemplo de ícone, você pode substituir por ícones de Font Awesome */
    margin-right: 8px;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.5s ease;
}

.loader-wrapper.hidden {
    visibility: hidden;
    opacity: 0;
}

/* Base styling for the table */
.table {
    font-size: 0.8rem; /* Base font size for the table */
}

.table-responsive {
    overflow-x: auto; /* Horizontal scroll for tables with many columns */
}

.table thead th, 
.table tbody td {
    padding: 4px; /* Reduced padding */
    text-align: center; /* Center-align text */
    vertical-align: middle; /* Vertical center-align */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table {
        font-size: 0.7rem; /* Smaller font for tablets */
    }
}

@media (max-width: 576px) {
    .table {
        font-size: 0.6rem; /* Smallest font for mobile */
    }

    .table thead {
        display: none; /* Hide table header on mobile */
    }

    .table tbody td {
        display: block;
        text-align: right;
        padding: 6px 4px;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .table tbody td:before {
        content: attr(data-label); /* Display column name before value */
        float: left;
        font-weight: bold;
        text-transform: capitalize;
        padding-right: 10px;
        color: #333;
    }
}
