* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.required-filed{
    color: red;
}

.file-upload-wrapper:hover {
    background-color: #f1f7ff;
    border-color: #4b9eff;
}

.form-check-input {
    border: 1px solid;
}

.file-upload-wrapper {
    --file-name: "Clique ou arraste um arquivo aqui";
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}

.file-upload-wrapper::before {
    content: var(--file-name);
    color: #4a5568;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    position: absolute;
    pointer-events: none;
    transition: color 0.25s ease;
}

.file-upload-wrapper:hover::before {
    color: #2563eb;
}

.file-input:focus-visible,
.file-upload-wrapper:focus-within {
    outline: none;
    border-color: #4b9eff;
    box-shadow: 0 0 0 3px rgba(75, 158, 255, 0.2);
}

.lblheader {
    position: absolute;
    top: 20px;
    font-weight: bold;
    font-size: 25px;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-fechar-modal,
.btn-salvar-modal,
.my-btn {
    color: white;
    background: #308dc7;
    border: 2px solid #308dc7;
}

.btn-salvar-modal:hover,
.btn-fechar-modal:hover,
.my-btn:hover {
    background-color: #166ca1 !important;
    border: 2px solid #166ca1 !important;
    color: white !important;
}

.form-control,
.form-select {
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
    outline: none;
}

.modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


#cards-container .card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

#cards-container .card:hover {
    transform: translateY(-4px);
}

#searchInput,
#perfilSelect,
#searchInputAp,
#filterBtn {
    margin-right: 12px;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-container button {
    font-size: 14px;
    padding: 6px 12px;
}

.text-danger {
    font-size: 13px;
    color: #e74c3c;
}

.form-label {
    font-weight: 600;
}

.btn-view {
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.btn-view:hover {
    border-color: #0d6efd !important;
    background: #0d6efd17 !important;
}

.btn-edit {
    border: 2px solid #ffc107;
    color: #ffc107;
}

.btn-edit:hover {
    border-color: #ffc107 !important;
    background: #ffc1071c !important;
}

.btn-trash {
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-trash:hover {
    border-color: #dc3545 !important;
    background: #dc354517 !important;
}

.btn-logar {
    border: 2px solid #10d535;
    color: #10d535;
}

.btn-logar:hover {
    border: 2px solid #10d535 !important;
    background: #9effb0 !important;
}

.dropdown-item:hover{
    background: #308dc733 !important;
}

.table-modern {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.table-modern thead tr th {
    background: #f3f4f6;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px;
    color: #333;
}

.table-modern tbody tr {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-modern tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.table-modern td {
    padding: 12px;
    vertical-align: middle;
    border: none;
}

.table-modern .valor {
    font-weight: 600;
    color: #2b7a0b;
}

.visibility-hidden {
    visibility: hidden !important;
}

.mainIcons{
    display: flex;
    justify-content: center;
}

.user-card p strong + span,
.user-card p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@media (max-width: 768px) {
    .table-modern thead {
        display: none;
    }

    .visibility-hidden {
        visibility: hidden !important;
    }
    
    .select-mobile{
        width: 100%;
        margin-right: 1px !important;
    }

    .table-modern tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 10px;
    }

    .table-modern tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .table-modern tbody td:last-child {
        border-bottom: 0;
    }

    .table-modern tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        margin-right: 10px;
    }
    
    .lblheader{
        position: static;
        display: flex;
        justify-content: center;
    }

    .d-flex {
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
    }

    .mainIcons{
        display: flex;
        justify-content: center;
    }

    .form-select,
    .form-control,
    .searchInput,
    .fullWidth{
        width: 100% !important;
    }
}