/* ==========================================================================
   OFFCANVAS EMPRESAS - TEMPLATE E FORMULÁRIO (APPLE INSPIRED)
   ========================================================================== */
#offcanvasEmpresa {
    background: rgba(20, 20, 25, 0.85) !important;
    backdrop-filter: blur(35px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
    width: 520px;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff;
}

#offcanvasEmpresa .offcanvas-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
}

#offcanvasEmpresa .offcanvas-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

#offcanvasEmpresa .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: 0;
}

#offcanvasEmpresa .form-control,
#offcanvasEmpresa .form-select {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.7rem 0.95rem;
    font-size: 0.925rem;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#offcanvasEmpresa .form-control:focus,
#offcanvasEmpresa .form-select:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25) !important;
}

#offcanvasEmpresa .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   LISTA DE EMPRESAS (TENANTS CARDS)
   ========================================================================== */
#listaEmpresas .shadow-sm {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 18px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#listaEmpresas .shadow-sm:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.avatar-inicial {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1.35rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Badge Styles - iOS Pill Badge */
.badge {
    padding: 0.4em 0.85em;
    font-weight: 600;
    border-radius: 980px !important;
}

.bg-success-subtle {
    background-color: rgba(48, 209, 88, 0.15) !important;
    color: #30d158 !important;
    border: 1px solid rgba(48, 209, 88, 0.25) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 159, 10, 0.15) !important;
    color: #ff9f0a !important;
    border: 1px solid rgba(255, 159, 10, 0.25) !important;
}

.bg-secondary-subtle {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #98989d !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#listaEmpresas .btnEditarEmpresa i,
#listaEmpresas .btnDeletarEmpresa i,
#listaEmpresas .btnVisualizarEmpresa i {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

#listaEmpresas .btnEditarEmpresa:hover i {
    transform: rotate(-10deg) scale(1.1);
}

#listaEmpresas .btnDeletarEmpresa:hover i {
    transform: scale(1.2);
}

#listaEmpresas .btnVisualizarEmpresa:hover i {
    transform: scale(1.2);
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 768px) {
    #offcanvasEmpresa {
        width: 100% !important;
    }
}